I''ve had more luck just building the bindings directly...
curl -O http://tmtm.org/downloads/mysql/ruby/mysql-ruby-2.7.tar.gz
tar -xvzf mysql-ruby-2.7.tar.gz
cd mysql-ruby-2.7
ruby extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config
make
sudo make install
cd ..
rm -rf mysql-ruby-2.7
rm mysql-ruby-2.7.tar.gz
--ryan
On 10/7/05, Travis Briggs
<audiodude-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''m trying to manually install the MySQL binding using gems.
Here''s what I
> get:
>
> prompt$ sudo gem install mysql --
> --with-mysql-dir=/usr/local/mysql
> Attempting local installation of ''mysql''
> Local gem file not found: mysql*.gem
> Attempting remote installation of ''mysql''
> Building native extensions. This could take a while...
> ERROR: While executing gem ... (RuntimeError)
> ERROR: Failed to build gem native extension.
> Gem files will remain installed in
> /usr/lib/ruby/gems/1.8/gems/mysql-2.6 for inspection.
> ruby extconf.rb install mysql --
> --with-mysql-dir=/usr/local/mysql
>
> I''ve already run the ruby fix here
(http://tech.rufy.com/entry/46). Why
> else would I be unable to install this?
>
> Thanks in advance for any help,
> -Travis
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
--
Ryan Raaum
http://www.rockefeller.edu -- Bacterial Pathogenesis and Immunology
http://www.worldmartial.com -- Black Belt Instructor
http://locomotive.sourceforge.net -- Self contained one-click Rails for Mac OS X