Mysql-ruby on MacOSX/darwin

Need more info???

What happens when you try to install?
What is the response?

Try uninstalling the fink->mysql package first.
Then install Mark Liyanage @ http://www.entropy.ch/software/macosx/
After you install this mysql package, try installing mysql-ruby.

Hi

Sorry, took a little bit longer as www.entropy.ch was down over the weekend.

The installation of the Package from entropy.ch (3.23.53) didn’t
result in a mysqlclient library. Thus still the same problem.

What happens? [On the system with the libs in /usr/lib/mysql/ and the
header files in /usr/include/mysql/.]

bhb@server:~/mysql-ruby-2.4.3a$ ruby extconf.rb
–with-mysql-include=/usr/include --with-mysql-lib=/usr/lib
checking for mysql_query() in -lmysqlclient… no

···

mkmf.log:

gcc -o conftest -I/usr/lib/ruby/1.6/powerpc-darwin6.0 -g -Os -pipe -no-cpp-pr
ecomp -pipe -pipe -no-precomp -I/usr/include -I/usr/include -L/usr/lib co
nftest.c -lmysqlclient -lobjc
gcc: unrecognized option -no-precomp' cc1: warning: changing search order for system directory "/usr/include" cc1: warning: as it has already been specified as a non-system directory ld: can't locate file for: -lmysqlclient gcc -o conftest -I/usr/lib/ruby/1.6/powerpc-darwin6.0 -g -Os -pipe -no-cpp-pr ecomp -pipe -pipe -no-precomp -I/usr/include -I/usr/include -L/usr/lib co nftest.c -lmysqlclient -lobjc gcc: unrecognized option -no-precomp’
cc1: warning: changing search order for system directory “/usr/include”
cc1: warning: as it has already been specified as a non-system directory
ld: can’t locate file for: -lmysqlclient
gcc -o conftest -I/usr/lib/ruby/1.6/powerpc-darwin6.0 -g -Os -pipe -no-cpp-pr
ecomp -pipe -pipe -no-precomp -I/usr/include -I/usr/include -L/usr/lib -L
/usr/lib/mysql conftest.c -lmysqlclient -lobjc
gcc: unrecognized option `-no-precomp’
cc1: warning: changing search order for system directory “/usr/include”
cc1: warning: as it has already been specified as a non-system directory
ld: Undefined symbols:
_compress
_uncompress


or:

bhb@server:~/mysql-ruby-2.4.3a$ ruby extconf.rb
–with-mysql-include=/usr/inclde/mysql --with-mysql-lib=/usr/lib/mysql
checking for mysql_query() in -lmysqlclient… no

mkmf.log:

gcc -o conftest -I/usr/lib/ruby/1.6/powerpc-darwin6.0 -g -Os -pipe -no-cpp-p
recomp -pipe -pipe -no-precomp -I/usr/include -I/usr/include/mysql -L/us
r/lib/mysql conftest.c -lmysqlclient -lobjc
gcc: unrecognized option -no-precomp' cc1: warning: changing search order for system directory "/usr/include" cc1: warning: as it has already been specified as a non-system directory ld: Undefined symbols: _compress _uncompress gcc -o conftest -I/usr/lib/ruby/1.6/powerpc-darwin6.0 -g -Os -pipe -no-cpp-p recomp -pipe -pipe -no-precomp -I/usr/include -I/usr/include/mysql -L/us r/lib/mysql conftest.c -lmysqlclient -lobjc gcc: unrecognized option -no-precomp’
cc1: warning: changing search order for system directory “/usr/include”
cc1: warning: as it has already been specified as a non-system directory
ld: Undefined symbols:
_compress
_uncompress
gcc -o conftest -I/usr/lib/ruby/1.6/powerpc-darwin6.0 -g -Os -pipe -no-cpp-p
recomp -pipe -pipe -no-precomp -I/usr/include -I/usr/include/mysql -L/us
r/lib/mysql -L/usr/lib/mysql/mysql conftest.c -lmysqlclient -lobjc
gcc: unrecognized option `-no-precomp’
cc1: warning: changing search order for system directory “/usr/include”
cc1: warning: as it has already been specified as a non-system directory
ld: warning -L: directory name (/usr/lib/mysql/mysql) does not exist
ld: Undefined symbols:
_compress
_uncompress

Regards

Beat H.