Mysql gem on Mac OSX 10.4

L

Lukas Mosser

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
 
R

Roger Pack

Traditionally I have to build it using
gem install mysql -- --mysql-config=/whatever/mysql_config5 # or
wherever your msql config binary is
GL!
-R
 

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
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top