Mysql gem not buidling on OSX 10.4.6

When I sudo gem install mysql I get the following:

–snip–

$ sudo gem install mysql
Attempting local installation of ‘mysql’
Local gem file not found: mysql*.gem
Attempting remote installation of ‘mysql’
Updating Gem source index for: http://gems.rubyforge.org
/usr/local/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.6.0]

Abort trap

–snip–

Here is my system info

$ ruby -v
ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]
$ gem -v
0.8.11
$ rails -v
Rails 1.1.2
$ mysql -v
-bash: mysql: command not found
$ mysql -v
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 278 to server version: 5.0.22-max

Help PLEASE!

-silent11

Try this:

sudo gem install mysql – --with-mysql-dir=/usr/local/mysql

from this page:
http://wiki.rubyonrails.com/rails/pages/HowtoInstallOnOSXTiger

-Vince

will willis wrote:

When I sudo gem install mysql I get the following:

–snip–

$ sudo gem install mysql
Attempting local installation of ‘mysql’
Local gem file not found: mysql*.gem
Attempting remote installation of ‘mysql’
Updating Gem source index for: http://gems.rubyforge.org
/usr/local/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.6.0]

Abort trap

–snip–

Here is my system info

$ ruby -v
ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]
$ gem -v
0.8.11
$ rails -v
Rails 1.1.2
$ mysql -v
-bash: mysql: command not found
$ mysql -v
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 278 to server version: 5.0.22-max

Help PLEASE!

-silent11

On 13 Jun 2006, at 04:48, will willis wrote:

When I sudo gem install mysql

Try ‘sudo gem install mysql – --with-mysql-dir=/usr/local/mysql’

[Assumes MySQL is installed in /usr/local]

On Jun 12, 2006, at 8:48 PM, will willis wrote:

When I sudo gem install mysql I get the following:

From an old post by TJ Stankus, try this, it’s always worked for me:

sudo gcc_select 3.3

(this is all one long command)
sudo gem install mysql – --with-mysql-dir=/usr/local/mysql
–with-mysql-include=/usr/local/mysql/include/
–with-mysql-lib=/usr/local/mysql/lib/
–with-mysql-config=/usr/local/mysql/bin/mysql_config


_Deirdre http://deirdre.net

or of course you could try using darwinports:
http://duncandavidson.com/essay/2006/04/portsandbox

or closely follow dan’s ever referenced article:
http://duncandavidson.com/essay/2006/04/portsandbox