Unnsse Khan
2005-Dec-01 07:54 UTC
Problem installing MySQL driver for OS X Tiger using RubyGems...
Hello there, I am experiencing a problem installing the Ruby MySQL driver for OS X Tiger using RubyGems... When I tried to install the mysql driver, I received the following error message: Raven:~ untz$ sudo su root Password: Raven:/Users/untz root# gem install 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... *** 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 --with-opt-include=${opt-dir}/include --with-opt-lib=${opt-dir}/lib --with-make-prog=make --srcdir=. --curdir --ruby=/usr/local/bin/ruby --with-mysql-config --with-mysql-dir=/usr/local --with-mysql-include=${mysql-dir}/include --with-mysql-lib=${mysql-dir}/lib --with-mysqlclientlib=mysqlclient --with-mlib=m --with-mysqlclientlib=mysqlclient --with-zlib=z --with-mysqlclientlib=mysqlclient --with-socketlib=socket --with-mysqlclientlib=mysqlclient --with-nsllib=nsl --with-mysqlclientlib=mysqlclient ERROR: While executing gem ... (RuntimeError) ERROR: Failed to build gem native extension. Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/ mysql-2.7 for inspection. ruby extconf.rb install mysql\nchecking 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 BTW, I am using MySQL 5 Community Edition database engine installed in /usr/local/ Many, many thanks! -Unnsse
David Felstead
2005-Dec-01 08:14 UTC
Re: Problem installing MySQL driver for OS X Tiger using RubyGems...
Try using: sudo gem install mysql -- --with-mysql-config Cheers! -DF On 12/1/05, Unnsse Khan <untz-4gRRR9OwMYbQT0dZR+AlfA@public.gmane.org> wrote:> Hello there, > > I am experiencing a problem installing the Ruby MySQL driver for OS X > Tiger using RubyGems... > > When I tried to install the mysql driver, I received the following > error message: > > > Raven:~ untz$ sudo su root > Password: > Raven:/Users/untz root# gem install 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... > *** 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 > --with-opt-include=${opt-dir}/include > --with-opt-lib=${opt-dir}/lib > --with-make-prog=make > --srcdir=. > --curdir > --ruby=/usr/local/bin/ruby > --with-mysql-config > --with-mysql-dir=/usr/local > --with-mysql-include=${mysql-dir}/include > --with-mysql-lib=${mysql-dir}/lib > --with-mysqlclientlib=mysqlclient > --with-mlib=m > --with-mysqlclientlib=mysqlclient > --with-zlib=z > --with-mysqlclientlib=mysqlclient > --with-socketlib=socket > --with-mysqlclientlib=mysqlclient > --with-nsllib=nsl > --with-mysqlclientlib=mysqlclient > ERROR: While executing gem ... (RuntimeError) > ERROR: Failed to build gem native extension. > Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/ > mysql-2.7 for inspection. > ruby extconf.rb install mysql\nchecking 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 > > BTW, I am using MySQL 5 Community Edition database engine installed > in /usr/local/ > > Many, many thanks! > > -Unnsse > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
untz
2005-Dec-01 21:07 UTC
Re: Problem installing MySQL driver for OS X Tiger using RubyGems...
David, Thanks this worked! Here''s the positive feedback: make install mkdir -p /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib /usr/bin/install -c -m 0755 mysql.bundle /usr/local/lib/ruby/gems/1.8/ gems/mysql-2.7/lib Successfully installed mysql-2.7 Now, my question is... I am using MySQL 5 Community Edition and would like to know if this driver (I''m a bit confused since this driver is version 2.7) will work with it? Kindest regards, Unnsse On Dec 1, 2005, at 12:14 AM, David Felstead wrote:> Try using: > > sudo gem install mysql -- --with-mysql-config > > Cheers! > > -DF > > On 12/1/05, Unnsse Khan <untz-4gRRR9OwMYbQT0dZR+AlfA@public.gmane.org> wrote: >> Hello there, >> >> I am experiencing a problem installing the Ruby MySQL driver for OS X >> Tiger using RubyGems... >> >> When I tried to install the mysql driver, I received the following >> error message: >> >> >> Raven:~ untz$ sudo su root >> Password: >> Raven:/Users/untz root# gem install 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... >> *** 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 >> --with-opt-include=${opt-dir}/include >> --with-opt-lib=${opt-dir}/lib >> --with-make-prog=make >> --srcdir=. >> --curdir >> --ruby=/usr/local/bin/ruby >> --with-mysql-config >> --with-mysql-dir=/usr/local >> --with-mysql-include=${mysql-dir}/include >> --with-mysql-lib=${mysql-dir}/lib >> --with-mysqlclientlib=mysqlclient >> --with-mlib=m >> --with-mysqlclientlib=mysqlclient >> --with-zlib=z >> --with-mysqlclientlib=mysqlclient >> --with-socketlib=socket >> --with-mysqlclientlib=mysqlclient >> --with-nsllib=nsl >> --with-mysqlclientlib=mysqlclient >> ERROR: While executing gem ... (RuntimeError) >> ERROR: Failed to build gem native extension. >> Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/ >> mysql-2.7 for inspection. >> ruby extconf.rb install mysql\nchecking 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 >> >> BTW, I am using MySQL 5 Community Edition database engine installed >> in /usr/local/ >> >> Many, many thanks! >> >> -Unnsse >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
David Felstead
2005-Dec-01 22:35 UTC
Re: Problem installing MySQL driver for OS X Tiger using RubyGems...
Hi Unnsse - according to the library''s webpage: http://www.tmtm.org/en/mysql/ruby/ It should support MySQL 4.0.22/4.1.13/5.0.11 Good luck! -DF On 12/2/05, untz <untz786-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> David, > > Thanks this worked! > > Here''s the positive feedback: > > make install > mkdir -p /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib > /usr/bin/install -c -m 0755 mysql.bundle /usr/local/lib/ruby/gems/1.8/ > gems/mysql-2.7/lib > Successfully installed mysql-2.7 > > Now, my question is... I am using MySQL 5 Community Edition and would > like to know if this driver (I''m a bit confused since this driver is > version 2.7) > will work with it? > > Kindest regards, > > Unnsse > > On Dec 1, 2005, at 12:14 AM, David Felstead wrote: > > > Try using: > > > > sudo gem install mysql -- --with-mysql-config > > > > Cheers! > > > > -DF > > > > On 12/1/05, Unnsse Khan <untz-4gRRR9OwMYbQT0dZR+AlfA@public.gmane.org> wrote: > >> Hello there, > >> > >> I am experiencing a problem installing the Ruby MySQL driver for OS X > >> Tiger using RubyGems... > >> > >> When I tried to install the mysql driver, I received the following > >> error message: > >> > >> > >> Raven:~ untz$ sudo su root > >> Password: > >> Raven:/Users/untz root# gem install 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... > >> *** 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 > >> --with-opt-include=${opt-dir}/include > >> --with-opt-lib=${opt-dir}/lib > >> --with-make-prog=make > >> --srcdir=. > >> --curdir > >> --ruby=/usr/local/bin/ruby > >> --with-mysql-config > >> --with-mysql-dir=/usr/local > >> --with-mysql-include=${mysql-dir}/include > >> --with-mysql-lib=${mysql-dir}/lib > >> --with-mysqlclientlib=mysqlclient > >> --with-mlib=m > >> --with-mysqlclientlib=mysqlclient > >> --with-zlib=z > >> --with-mysqlclientlib=mysqlclient > >> --with-socketlib=socket > >> --with-mysqlclientlib=mysqlclient > >> --with-nsllib=nsl > >> --with-mysqlclientlib=mysqlclient > >> ERROR: While executing gem ... (RuntimeError) > >> ERROR: Failed to build gem native extension. > >> Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/ > >> mysql-2.7 for inspection. > >> ruby extconf.rb install mysql\nchecking 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 > >> > >> BTW, I am using MySQL 5 Community Edition database engine installed > >> in /usr/local/ > >> > >> Many, many thanks! > >> > >> -Unnsse > >> _______________________________________________ > >> Rails mailing list > >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails > >> > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >