Question about mysql gem

Hi all,

sorry if this question shouldn’t be here, but when I tried to install
the mysql gem I getting the following error

When I ran gem install mysql

gem install mysql
ERROR: While executing gem … (Errno::EACCES)
Permission denied - /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/
COPYING

when I ran sudo gem install mysql

Building native extensions. This could take a while…
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
mkmf.rb can’t find header files for ruby at /System/Library/Frameworks/
Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/
mysql-2.8.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/ext/
mysql_api/gem_make.out

I’m not sure what could be the problem :S

thanks

On Mar 3, 3:30 pm, msiles [email protected] wrote:

COPYING
Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/
mysql-2.8.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/ext/
mysql_api/gem_make.out

I’m not sure what could be the problem :S

What version of OSX are you using?

Do you have mysql installed either by macports or from binary package?

If so, is mysql_config or mysql_config5 available in the path? (which
mysql_config will tell you if so)

To build mysql you need mysql installed.

HTH,

Luis L.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs