[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

mysql module on powerpc mac

Ben Aroia

4/12/2008 8:14:00 PM

I get this:
LoadError: Failed to load
/usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.0/mysql.bundle

when I run my ruby script. I'm working on a iBook G4 (PowerPC 10.4.11)
with MySQL MySQL 5.0.51a and ruby 1.8.6

I downloaded 2.7.4 package from http://tmtm.org/downloads/m...
and set to work trying to install it.

I followed most of the instructions from
http://www.railsdev.ws/blog/9/compiling-mysql-ruby-fo...

Now everything installed fine, I've got the /powerpc-darwin8.0 file,
make ran cleanly as well as install.

My ruby script goes like this:

#!/usr/bin/ruby

require 'net/http'
require 'mysql'
require 'date'

.../ more stuff

Now when I run the script, I get the above mentioned error. I had been
having trouble running the install using gems so I opted for this
approach. Anybody know whats going on? ;) Thanks.
--
Posted via http://www.ruby-....

2 Answers

Roger Pack

4/15/2008 5:22:00 AM

0

Might be some kind of version conflict between your mysql bundle and
your mysql libs that are installed.
I installed mysql and mysql-dev using macports, then installed the mysql
gem using -- --with-config=/opt/local/bin/mysql_config5 # or something
like that and it worked on my PPC.
GL!
-R

Ben Aroia wrote:
> I get this:
> LoadError: Failed to load
> /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.0/mysql.bundle
>
--
Posted via http://www.ruby-....

Ben Aroia

4/15/2008 10:14:00 AM

0

Roger Pack wrote:
> Might be some kind of version conflict between your mysql bundle and
> your mysql libs that are installed.
> I installed mysql and mysql-dev using macports, then installed the mysql
> gem using -- --with-config=/opt/local/bin/mysql_config5 # or something
> like that and it worked on my PPC.
> GL!
> -R
>
> Ben Aroia wrote:
>> I get this:
>> LoadError: Failed to load
>> /usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.0/mysql.bundle
>>

It could be, but it's not the most important thing in the world so I
just re-wrote everything in Python. :D
I had once messed around with Fink and MacPorts and ended up with like 3
copies of Ruby on my system. Because the programs themselves edit the
$PATH, they never know where to look, or they look everywhere and you
don't know which version your running without checking every time.
--
Posted via http://www.ruby-....