Anyone succeed in installing the mysql/ruby C bindings (2.7) with gcc
3.2? I am not able to install gcc 4. Any help or direction would be
appreciated!
-Kyle
[root@server1 root]# gem install mysql –
–with-mysql-config=/usr/bin/mysql_config
Attempting local installation of ‘mysql’
Local gem file not found: mysql*.gem
Attempting remote installation of ‘mysql’
Building native extensions. This could take a while…
Makefile:111: warning: overriding commands for target
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib' Makefile:109: warning: ignoring old commands for target
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib’
Makefile:111: warning: overriding commands for target
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib' Makefile:109: warning: ignoring old commands for target
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib’
ruby extconf.rb install mysql –
–with-mysql-config=/usr/bin/mysql_config
checking for mysql_ssl_set()… yes
checking for mysql.h… yes
creating Makefile
make
gcc -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i686-linux
-I/usr/local/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_SSL_SET
-DHAVE_MYSQL_H -I/usr/include/mysql -mcpu=i486 -fno-strength-reduce
-c mysql.c
gcc -shared -L’/usr/local/lib’ -Wl,-R’/usr/local/lib’ -o mysql.so
mysql.o -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc
-lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv
-ldl -lcrypt -lm -lc
make install
/usr/bin/install -c -m 0755 mysql.so
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib
Successfully installed mysql-2.7