Question about mysql gem

M

msiles

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
 
L

Luis Lavena

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

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top