Skip to main content

Thread: Lucid: attempting install of ruby gem 'mysql'


==========
note: subsequent posting, attempted use gem 'mysql' , worked. odd considering errors emitted below. anyway, can proceed study.
==========


greetings,

environment:
running 10.04
mysql version: mysql ver 14.14 distrib 5.1.41, debian-linux-gnu (i486) using readline 6.1
ruby: ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]

trying install ruby gem 'mysql'.
reading, should able a:
$gem install mysql

way, using sudo or not has same result.

disappointing because have done lot of work learn mysql discover can not use ruby (at least gem).

routinely use $mysql "guess" mysqlclient working.

appreciated.
steve.



here errors:
holocene@crypt:~/mysql-ruby-2.8.2$ sudo gem install mysql
[sudo] password holocene:
building native extensions. take while...
error: error installing mysql:
error: failed build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking mysql_query() in -lmysqlclient... no
checking main() in -lm... yes
checking mysql_query() in -lmysqlclient... no
checking main() in -lz... no
checking mysql_query() in -lmysqlclient... no
checking main() in -lsocket... no
checking mysql_query() in -lmysqlclient... no
checking main() in -lnsl... yes
checking mysql_query() in -lmysqlclient... no
checking main() in -lmygcc... no
checking mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
not create makefile due reason, lack of
necessary libraries and/or headers. check mkmf.log file more
details. may need configuration options.

i believe need install header files resolve issue

try

sudo apt-get install ruby1.8-dev

, try again


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Lucid: attempting install of ruby gem 'mysql'


Ubuntu

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support