Mysql/ruby + gcc 3.2?

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

I’m sorry if I’m being dense, but what’s the problem? Looks like the
build finishes fine.

b

On 2/14/06, Ben M. [email protected] wrote:

I’m sorry if I’m being dense, but what’s the problem? Looks like the build finishes fine.

b

I thought so too, but indications from my rails app are that it is
still using the native ruby bindings.

The same thing happened on my powerbook, then I recompiled with gcc 4,
and everything worked fine. Unfortunately, I don’t have that option
on the production server.

-Kyle