help installing mysql-ruby on Tiger

J

Joseph Alotta

Greetings,

I am trying to install mysql-ruby on Tiger. I loaded the
serverlogics package which put at the headers in /Library/MySQL and
MySQL works okay from the command line.

I used the following command which used to work in Panther:
sudo gem install mysql -- --with-mysql-dir=/Library/MySQL


Can someone please help?


Joe.






[user-11fahlg:~] jja% setenv
PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/
Users/jja/bin:./
SECURITYSESSIONID=72833b0
HOME=/Users/jja
SHELL=/bin/bash
USER=jja
__CF_USER_TEXT_ENCODING=0x1F5:0:0
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=133
TERM=xterm-color
HOSTTYPE=powermac
VENDOR=apple
OSTYPE=darwin
MACHTYPE=powerpc
SHLVL=1
PWD=/Users/jja
LOGNAME=jja
GROUP=jja
HOST=user-11fahlg.dsl.mindspring.com
RUBYOPT=rrubygems
[user-11fahlg:~] jja% sudo gem install mysql -- --with-mysql-dir=/
Library/MySQL
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...
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/
mysql-2.5.1 for inspection.
ruby extconf.rb install mysql -- --with-mysql-dir=/Library/MySQL
\nchecking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no


Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.5.1/gem_make.out
[user-11fahlg:~] jja% sudo gem install mysql 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...
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/
mysql-2.5.1 for inspection.
ruby extconf.rb install mysql\nchecking for mysql_query() in -
lmysqlclient... no
checking for main() in -lm... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no


Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.5.1/gem_make.out
 
J

Joseph Alotta

Thanks, Derek, you are the best. This worked.


Joe.


Hi Joe,

From a terminal,
sudo gem install fixrbconfig
sudo fixrbconfig

and then reinstall the mysql gem.

- Derek

Greetings,
I am trying to install mysql-ruby on Tiger. I loaded the
serverlogics package which put at the headers in /Library/MySQL
and MySQL works okay from the command line.
I used the following command which used to work in Panther:
sudo gem install mysql -- --with-mysql-dir=/Library/MySQL
Can someone please help?
Joe.
[user-11fahlg:~] jja% setenv
PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/
Users/jja/bin:./
SECURITYSESSIONID=72833b0
HOME=/Users/jja
SHELL=/bin/bash
USER=jja
__CF_USER_TEXT_ENCODING=0x1F5:0:0
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=133
TERM=xterm-color
HOSTTYPE=powermac
VENDOR=apple
OSTYPE=darwin
MACHTYPE=powerpc
SHLVL=1
PWD=/Users/jja
LOGNAME=jja
GROUP=jja
HOST=user-11fahlg.dsl.mindspring.com
RUBYOPT=rrubygems
[user-11fahlg:~] jja% sudo gem install mysql -- --with-mysql-dir=/
Library/MySQL
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...
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/
mysql-2.5.1 for inspection.
ruby extconf.rb install mysql -- --with-mysql-dir=/Library/
MySQL \nchecking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.5.1/
gem_make.out
[user-11fahlg:~] jja% sudo gem install mysql 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...
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/
mysql-2.5.1 for inspection.
ruby extconf.rb install mysql\nchecking for mysql_query() in -
lmysqlclient... no
checking for main() in -lm... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.5.1/
gem_make.out
 

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

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top