From: Julien Biard Date: 2010-04-01T17:05:32+09:00 Subject: Mysql gem installation --000e0cdfd7e6798e1804832853d3 Content-Type: text/plain; charset=ISO-8859-1 Hi I have recently installed a gentoo bootstrap prefix on os x, but when I want to install the mysql gem, I have this issue : %<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%< env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /opt/gentoo/usr/bin/ruby18 extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config checking for mysql_ssl_set()... no checking for rb_str_set_len()... no checking for rb_thread_start_timer()... no checking for mysql.h... yes creating Makefile make x86_64-apple-darwin10-gcc -I. -I. -I/opt/gentoo/usr/lib/ruby/1.8/x86_64-darwin10 -I. -DHAVE_MYSQL_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/mysql/include -g -Os -arch x86_64 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -fno-common -O2 -pipe -march=nocona -fno-strict-aliasing -fno-common -pipe -fno-common -c mysql.c cc1: erreur: option "-arch" de la ligne de commande non reconnue make: *** [mysql.o] Erreur 1 %<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%< It seems that the -arch option is not recognized by my gentoo compiler. So, I have tried to reproduce the gem process : %<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%< -> gem fetch mysql -> gem unpack mysql-2.8.1.gem Unpacked gem: '/Users/jbiard/tmp/mysql-2.8.1' -> cd mysql-2.8.1/ext/mysql_api/ -> /opt/gentoo/usr/bin/ruby18 extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config [ Here I have modified the Makefile generated to remove -arch option, and it works ! ] -> make && make install x86_64-apple-darwin10-gcc -I. -I. -I/opt/gentoo/usr/lib/ruby/1.8/x86_64-darwin10 -I. -DHAVE_MYSQL_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/mysql/include -g -Os -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -fno-common -O2 -pipe -march=nocona -fno-strict-aliasing -fno-common -pipe -fno-common -c mysql.c cc -dynamic -bundle -undefined suppress -flat_namespace -o mysql_api.bundle mysql.o -L. -L/opt/gentoo/usr/lib -L. -lruby18 -L/usr/local/mysql/lib -lmysqlclient -lz -lm -lmygcc -ldl -lobjc /opt/gentoo/usr/bin/install -c -m 0755 mysql_api.bundle /opt/gentoo/usr/lib/ruby/site_ruby/1.8/x86_64-darwin10 ??? %<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%<%< Finally, the bundle is installed, but my gem is not yet installed. Could you tell me which steps I have to do to finalize my gem installation ? Best regards, Julien --000e0cdfd7e6798e1804832853d3--