[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

mysql/ruby bindings (GEM Issue

Shalev NessAiver

2/17/2005 9:57:00 PM

If this isn't the right place for this... please let me know. I'm
trying to get Rails working on OS X using DarwinPorts.
So I set up mysql (sudo port install mysql) and then tried to run the
gem to install the mysql/ruby bindings...

$sudo gem install mysq
Attempting remote installation of 'mysql'
Updating Gem source index for: http://gems.rub...
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
/opt/local/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... 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

I have not clue what this means.
What's funny is that I can't remember ever having to install these
bindings before.
Last time I tried Rails all I needed was "gem install rails", however
the "TODO list"
tutorial says to install the ruby-mysql bindings too ?

Thanks
-Shalev



2 Answers

Shalev NessAiver

2/18/2005 1:39:00 AM

0

Never mind. It had to do with Darwinports.
However, I would still like to know if this is the right place for such
issues (in the future).

-Shalev


On Feb 17, 2005, at 4:57 PM, Shalev NessAiver wrote:

> If this isn't the right place for this... please let me know. I'm
> trying to get Rails working on OS X using DarwinPorts.
> So I set up mysql (sudo port install mysql) and then tried to run the
> gem to install the mysql/ruby bindings...
>
> $sudo gem install mysq
> Attempting remote installation of 'mysql'
> Updating Gem source index for: http://gems.rub...
> 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
> /opt/local/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... 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
>
> I have not clue what this means.
> What's funny is that I can't remember ever having to install these
> bindings before.
> Last time I tried Rails all I needed was "gem install rails", however
> the "TODO list"
> tutorial says to install the ruby-mysql bindings too ?
>
> Thanks
> -Shalev
>
>



Chad Fowler

2/18/2005 2:33:00 PM

0

On Fri, 18 Feb 2005 10:39:04 +0900, Shalev NessAiver
<shalev@simplyphysics.com> wrote:
> Never mind. It had to do with Darwinports.
> However, I would still like to know if this is the right place for such
> issues (in the future).
>
> -Shalev
>

Yes, this would be a good place to ask this. You could also ask
rubygems questions on the rubygems-developers list on RubyForge.

--
Chad Fowler
http://chad...
http://rubyc...
http://ruby...
http://rubygems.rub... (over 100,000 gems served!)