Forum: Ruby on Rails mysql/ruby + gcc 3.2 ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4bd34a2216dc8bdbf1f017f64e4d59e8?d=identicon&s=25 Kyle Maxwell (Guest)
on 2006-02-14 23:18
(Received via mailing list)
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
4005a47a8f2ceee49670b920593c1d52?d=identicon&s=25 Ben Munat (Guest)
on 2006-02-15 05:20
(Received via mailing list)
I'm sorry if I'm being dense, but what's the problem? Looks like the
build finishes fine.

b
4bd34a2216dc8bdbf1f017f64e4d59e8?d=identicon&s=25 Kyle Maxwell (Guest)
on 2006-02-15 18:01
(Received via mailing list)
On 2/14/06, Ben Munat <bent@munat.com> 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
This topic is locked and can not be replied to.