[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

help installing mysql-ruby on Tiger

Joseph Alotta

6/18/2005 8:53:00 PM

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



2 Answers

derekgr

6/18/2005 11:01:00 PM

0

Hi Joe,

From a terminal,
sudo gem install fixrbconfig
sudo fixrbconfig

and then reinstall the mysql gem.

- Derek

On 2005-06-18 14:53:03 -0600, Joseph Alotta <jalotta@earthlink.net> said:

> 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


Joseph Alotta

6/19/2005 9:04:00 PM

0

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


Joe.


On Jun 18, 2005, at 6:05 PM, Derek Greentree wrote:

> Hi Joe,
>
> From a terminal,
> sudo gem install fixrbconfig
> sudo fixrbconfig
>
> and then reinstall the mysql gem.
>
> - Derek
>
> On 2005-06-18 14:53:03 -0600, Joseph Alotta <jalotta@earthlink.net>
> said:
>
>
>> 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
>>
>
>
>
>