Forum: Ruby on Rails mysql gem not buidling on OSX 10.4.6

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0e2f226c18b86514b1bffbd16d89693f?d=identicon&s=25 Will W. (silent11)
on 2006-06-13 05:48
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
A68e38809ace8356ec2fa6aa1d13246b?d=identicon&s=25 Vince W. (vince)
on 2006-06-13 05:55
Try this:

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

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

-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
Derek Chesterfield (Guest)
on 2006-06-13 09:40
(Received via mailing list)
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]
unknown (Guest)
on 2006-06-13 23:35
(Received via mailing list)
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
Deirdre Saoirse Moen (Guest)
on 2006-06-14 00:18
(Received via mailing list)
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
This topic is locked and can not be replied to.