# Mysql module on powerpc mac

**URL:** <https://www.ruby-forum.com/t/mysql-module-on-powerpc-mac/134610>\
**Category:** Ruby\
**Created:** [April 12, 2008, 10:13pm UTC](https://www.ruby-forum.com/t/mysql-module-on-powerpc-mac/134610 "2008-04-12T22:13:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/df788c/32.png) [@ben](https://www.ruby-forum.com/u/ben)\
**Post date:** [April 12, 2008, 10:13pm UTC](https://www.ruby-forum.com/t/mysql-module-on-powerpc-mac/134610/1 "2008-04-12T22:13:31Z")

</div>

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/mysql/ruby/](http://tmtm.org/downloads/mysql/ruby/)  
and set to work trying to install it.

I followed most of the instructions from  
[http://www.railsdev.ws/blog/9/compiling-mysql-ruby-for-powerpc/](http://www.railsdev.ws/blog/9/compiling-mysql-ruby-for-powerpc/)

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.

---

<div class="post-metadata">

**Author:** ![ben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/df788c/32.png) [@ben](https://www.ruby-forum.com/u/ben)\
**Post date:** [April 15, 2008, 7:22am UTC](https://www.ruby-forum.com/t/mysql-module-on-powerpc-mac/134610/2 "2008-04-15T07:22:08Z")

</div>

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 A. wrote:

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

---

<div class="post-metadata">

**Author:** ![ben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/df788c/32.png) [@ben](https://www.ruby-forum.com/u/ben)\
**Post date:** [April 15, 2008, 12:13pm UTC](https://www.ruby-forum.com/t/mysql-module-on-powerpc-mac/134610/3 "2008-04-15T12:13:41Z")

</div>

Roger P. 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 A. 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. 😃  
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.
