[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

ruby / osx / mysql

d c

9/30/2006 12:29:00 PM

hi list -

on windows i was able to install mysql drivers for ruby simply with gem.

on osx, these seem not to work (pure ruby drivers) with current
versions of mysql... is it really true i have to go through compiling
/ make / make instal etc to get mysql working with ruby on OSX?

did this once, but have a few machines to setup.

after compiling, where do the libraries end up? are they compiled
specific to each mac, or can the libs just be copied with eg a full
ruby/lib/ directory tree from one mac to another?

thanks for any tips!

/dc
--
-------------------------------------------
David "DC" Collier
mailto:dc@pikkle.com
+81 (0)80 6521 9559
skype: callto://d3ntaku
-------------------------------------------
Pikkle ????
http://www....
-------------------------------------------

4 Answers

Jonas Hartmann

9/30/2006 12:49:00 PM

0

dc wrote:
> hi list -
>
> on windows i was able to install mysql drivers for ruby simply with gem.
>
> on osx, these seem not to work (pure ruby drivers) with current
> versions of mysql... is it really true i have to go through compiling
> / make / make instal etc to get mysql working with ruby on OSX?
>
> did this once, but have a few machines to setup.
>
> after compiling, where do the libraries end up? are they compiled
> specific to each mac, or can the libs just be copied with eg a full
> ruby/lib/ directory tree from one mac to another?
>
> thanks for any tips!
>
> /dc

This will help you:
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_m...

Good luck.

d c

9/30/2006 1:08:00 PM

0

hiya -

> > after compiling, where do the libraries end up? are they compiled
> > specific to each mac, or can the libs just be copied with eg a full
> > ruby/lib/ directory tree from one mac to another?

> This will help you:
> http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_m...

yes, i went through that process already and it works on my local
machine (in fact i think someone else has a shell script that does the
whole thing).

but it seems unlikely that all the people doing ruby/rails dev on osx
are compiling mysql drivers, so i thought i must be missing something.

/dc

Jonas Hartmann

9/30/2006 1:32:00 PM

0

dc wrote:
> hiya -
>
>> > after compiling, where do the libraries end up? are they compiled
>> > specific to each mac, or can the libs just be copied with eg a full
>> > ruby/lib/ directory tree from one mac to another?
>
>> This will help you:
>> http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_m...
>
> yes, i went through that process already and it works on my local
> machine (in fact i think someone else has a shell script that does the
> whole thing).
>
> but it seems unlikely that all the people doing ruby/rails dev on osx
> are compiling mysql drivers, so i thought i must be missing something.
>
> /dc

i dont see the problem.

you can use locomotive[1] if you dont want to intall x-code with gcc.

it lets you create rails enviroments with a few mouseclicks (OS X only)

though, last time i used it, it was not up to date (regarding rails)

and you still have to get mysql up and runnning, there might be (i
dont know) some mysql shipping with os, but i'd install a recent version.

[1] http://locomotive....


Reprisal

9/30/2006 4:24:00 PM

0

You can install rb-mysql 2.7.1 via ports, for some reason gems only
has 2.7.0.

12:21:06~[14]>port installed | grep mysql
mysql5 @5.0.24_0+darwin_8+server (active)
rb-mysql @2.7.1_0 (active)

Working out great for me, with no hand compiling.


On Sep 30, 2006, at 9:32 AM, Jonas Hartmann wrote:

> dc wrote:
>> hiya -
>>> > after compiling, where do the libraries end up? are they compiled
>>> > specific to each mac, or can the libs just be copied with eg a
>>> full
>>> > ruby/lib/ directory tree from one mac to another?
>>> This will help you:
>>> http://hivelogic.com/articles/2...
>>> ruby_rails_lighttpd_mysql_tiger
>> yes, i went through that process already and it works on my local
>> machine (in fact i think someone else has a shell script that does
>> the
>> whole thing).
>> but it seems unlikely that all the people doing ruby/rails dev on osx
>> are compiling mysql drivers, so i thought i must be missing
>> something.
>> /dc
>
> i dont see the problem.
>
> you can use locomotive[1] if you dont want to intall x-code with gcc.
>
> it lets you create rails enviroments with a few mouseclicks (OS X
> only)
>
> though, last time i used it, it was not up to date (regarding rails)
>
> and you still have to get mysql up and runnning, there might be (i
> dont know) some mysql shipping with os, but i'd install a recent
> version.
>
> [1] http://locomotive....
>
>