/Applications/EdUtils/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/bin/ruby
extconf.rb install mysql
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lm… no
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lz… no
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lsocket… no
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lnsl… no
checking for mysql_query() in -lmysqlclient… no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Gem files will remain installed in
/Applications/EdUtils/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mysql-2.7
for inspection.
Results logged to
/Applications/EdUtils/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out
MBPEduCirilo:kshema098 eduardocirilo$
And when I type the rake command it shows:
MBPEduCirilo:kshema098 eduardocirilo$ rake db:migrate
(in /Users/eduardocirilo/Documents/WWW/kshema098)
Missing these required gems:
mysql
You’re running:
ruby 1.8.4 at
/Applications/EdUtils/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/bin/ruby
rubygems 1.3.1 at /Users/eduardocirilo/.gem/ruby/1.8,
/Applications/EdUtils/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8
Run rake gems:install to install the missing gems.
MBPEduCirilo:kshema098 eduardocirilo$
What can I do to resolve this problem? I really need some help m8s.
Run rake gems:install to install the missing gems.
MBPEduCirilo:kshema098 eduardocirilo$ rake gems:install
(in /Users/eduardocirilo/Desktop/kshema098)
gem install mysql
WARNING: Installing to ~/.gem since /opt/local/lib/ruby/gems/1.8 and
/opt/local/bin aren’t both writable.
WARNING: You don’t have /Users/eduardocirilo/.gem/ruby/1.8/bin in your
PATH,
gem executables will not run.
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/opt/local/bin/ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lm… yes
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lz… yes
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lsocket… no
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lnsl… no
checking for mysql_query() in -lmysqlclient… no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Gem files will remain installed in
/Users/eduardocirilo/.gem/ruby/1.8/gems/mysql-2.7 for inspection.
Results logged to
/Users/eduardocirilo/.gem/ruby/1.8/gems/mysql-2.7/gem_make.out
Building native extensions. This could take a while…
Loaded suite /opt/local/bin/rake
Started
Finished in 0.000433 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
MBPEduCirilo:kshema098 eduardocirilo$ rake db:migrate
(in /Users/eduardocirilo/Desktop/kshema098)
Missing these required gems:
mysql
You’re running:
ruby 1.8.7.72 at /opt/local/bin/ruby
rubygems 1.3.1 at /Users/eduardocirilo/.gem/ruby/1.8,
/opt/local/lib/ruby/gems/1.8
Run rake gems:install to install the missing gems.
MBPEduCirilo:kshema098 eduardocirilo$
I’m having the same issue except it happens when I simply do:
sudo gem install mysql
Does anyone know of a fix?
you need to tell the install scripts where the mysql libraries/headers
are (eg see the link Brent posted)
I’ve tried just about everything.
While I’m sure you may feel that way (I’m sure we can all empathise
with that) it’s a singularly unhelpful thing to say, you could very
easily put off the person with the answer by making them think “oh,
he’s probably already tried what I was going to suggest”.
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.