Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
gem install mysql
Redd Vinylene
9/29/2008 5:17:00 PM
I'm having some problems installing the MySQL Ruby gem here on Cygwin.
Anybody know what's up?
$ uname -a
CYGWIN_NT-5.1 papaia 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
$ gem install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe 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.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-nsllib
--without-nsllib
--with-mysqlclientlib
--without-mysqlclientlib
Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out
I guess this is a bit pathetic:
$ gem install mysql -- --with-mysql-config="/cygdrive/c/Program
Files/MySQL/MySQL Server 5.0/bin/MySQLInstanceConfig.exe"
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe extconf.rb install mysql --
--with-mysql-config=/cygdrive/c/Program Files/MySQL/MySQL Server
5.0/bin/MySQLInstanceConfig.exe
extconf.rb:1: command not found: /cygdrive/c/Program --cflags
*** 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.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
--with-mysql-config
Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out
--
http://www.home.no/re...
2 Answers
Dejan Dimic
9/29/2008 8:01:00 PM
0
On Sep 29, 7:16 pm, Redd Vinylene <reddvinyl...@gmail.com> wrote:
> I'm having some problems installing the MySQL Ruby gem here on Cygwin.
> Anybody know what's up?
>
> $ uname -a
> CYGWIN_NT-5.1 papaia 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
>
> $ gem install mysql
> Building native extensions. This could take a while...
> ERROR: Error installing mysql:
> ERROR: Failed to build gem native extension.
>
> /usr/bin/ruby.exe 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.
>
> Provided configuration options:
> --with-opt-dir
> --without-opt-dir
> --with-opt-include
> --without-opt-include=${opt-dir}/include
> --with-opt-lib
> --without-opt-lib=${opt-dir}/lib
> --with-make-prog
> --without-make-prog
> --srcdir=.
> --curdir
> --ruby=/usr/bin/ruby
> --with-mysql-config
> --without-mysql-config
> --with-mysql-dir
> --without-mysql-dir
> --with-mysql-include
> --without-mysql-include=${mysql-dir}/include
> --with-mysql-lib
> --without-mysql-lib=${mysql-dir}/lib
> --with-mysqlclientlib
> --without-mysqlclientlib
> --with-mlib
> --without-mlib
> --with-mysqlclientlib
> --without-mysqlclientlib
> --with-zlib
> --without-zlib
> --with-mysqlclientlib
> --without-mysqlclientlib
> --with-socketlib
> --without-socketlib
> --with-mysqlclientlib
> --without-mysqlclientlib
> --with-nsllib
> --without-nsllib
> --with-mysqlclientlib
> --without-mysqlclientlib
>
> Gem files will remain installed in
> /usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
> Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out
>
> I guess this is a bit pathetic:
>
> $ gem install mysql -- --with-mysql-config="/cygdrive/c/Program
> Files/MySQL/MySQL Server 5.0/bin/MySQLInstanceConfig.exe"
> Building native extensions. This could take a while...
> ERROR: Error installing mysql:
> ERROR: Failed to build gem native extension.
>
> /usr/bin/ruby.exe extconf.rb install mysql --
> --with-mysql-config=/cygdrive/c/Program Files/MySQL/MySQL Server
> 5.0/bin/MySQLInstanceConfig.exe
> extconf.rb:1: command not found: /cygdrive/c/Program --cflags
> *** 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.
>
> Provided configuration options:
> --with-opt-dir
> --without-opt-dir
> --with-opt-include
> --without-opt-include=${opt-dir}/include
> --with-opt-lib
> --without-opt-lib=${opt-dir}/lib
> --with-make-prog
> --without-make-prog
> --srcdir=.
> --curdir
> --ruby=/usr/bin/ruby
> --with-mysql-config
>
> Gem files will remain installed in
> /usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
> Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out
>
> --
http://www.home.no/re...
you need mysql source files to be able to build the mysql ruby gem.
There are lot of information dealing with this cygwin issue. Try
google it.
For start look at:
http://xiaoboonrails.blogspot.com/2008/02/run-ruby-gems-rails-and-mysql-on-c...
Redd Vinylene
9/30/2008 6:41:00 AM
0
On Mon, Sep 29, 2008 at 10:04 PM, Dejan Dimic <dejan.dimic@gmail.com> wrote:
>
> you need mysql source files to be able to build the mysql ruby gem.
> There are lot of information dealing with this cygwin issue. Try
> google it.
> For start look at:
http://xiaoboonrails.blogspot.com/2008/02/run-ruby-gems-rails-and-mysql-on-c...
>
Thank you so much man ;)
--
http://www.home.no/re...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
gem install mysql
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password