[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Mysql gem on Mac OSX 10.4

Lukas Mosser

4/13/2008 4:00:00 PM

Ok so I just installed ruby and rails and everything everything would
work also got a test server working.
I already have mysql installed on my Mac (it's a macbook pro) now when I
either try to configure my ruby (I don't know where) or when I try to
install the mysql gem I always get error messages....

Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb install mysql --
--with-dir=/usr/local/mysql
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
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


Gem files will remain installed in
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out


I have Xcode installed obviously but somehow this doesn't work....

Would be great if you could help!
Thanks!

Lukas
--
Posted via http://www.ruby-....

1 Answer

Roger Pack

4/15/2008 5:19:00 AM

0

Traditionally I have to build it using
gem install mysql -- --mysql-config=/whatever/mysql_config5 # or
wherever your msql config binary is
GL!
-R
> checking for mysql_query() in -lmysqlclient... no
--
Posted via http://www.ruby-....