Can not install mysql-binding

G

Gunnar

Hi all
I cannot install native MySQL-binding on my iMac G5 using OSX 10.4.4, ie
"sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql"
fails with <snipped>:
Attempting local installation of 'mysql'
Local gem file not found: mysql*.gem
Attempting remote installation of 'mysql'
Updating Gem source index for: http://gems.rubyforge.org
Building native extensions. This could take a while...
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
The mkmf.log's first part:
iMac:/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 gunnar$ more mkmf.log
find_library: checking for mysql_query() in -lmysqlclient... -------------------- no

"gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin8.4.0 -I/usr/local/mysql/include -g -O2 -pipe -fno-common conftes
t.c -L"/usr/local/mysql/lib" -L"/usr/local/lib" -lruby-static -lmysqlclient -ldl -lobjc "
/usr/bin/ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of contents exte
nds past the end of the table of contents, can't load from it)
collect2: ld returned 1 exit status
Is there anything I can do to make it install OK?
Regards
Gunnar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,663
Latest member
josh5959

Latest Threads

Top