You are not logged in.

#1 2009-03-23 20:54:52

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

gem install mysql fails

any ideas?

root redmine > 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 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.

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

[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#2 2009-03-23 21:05:44

dannytatom
Member
From: Seattle, WA
Registered: 2009-02-02
Posts: 229
Website

Re: gem install mysql fails

Do you have the MySQL package installed?


dnyy in IRC & Urban Terror

Offline

#3 2009-03-23 21:06:17

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: gem install mysql fails

yes =P


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#4 2009-03-23 21:08:20

dannytatom
Member
From: Seattle, WA
Registered: 2009-02-02
Posts: 229
Website

Re: gem install mysql fails

Heh, I only ask becuase it's always worked for me with no problem.

Try this: sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config


dnyy in IRC & Urban Terror

Offline

#5 2009-03-23 21:11:45

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: gem install mysql fails

I don't have a /usr/local/mysql folder


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#6 2009-03-23 21:13:19

dannytatom
Member
From: Seattle, WA
Registered: 2009-02-02
Posts: 229
Website

Re: gem install mysql fails

Well point it to the relative path. tongue  Wherever MySQL is installed (don't have it atm, been usin' sqlite or I'd look for ya).


dnyy in IRC & Urban Terror

Offline

#7 2009-03-23 21:15:39

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: gem install mysql fails

ok found it. same error

Last edited by Stythys (2009-03-23 21:16:38)


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#8 2009-03-23 21:18:07

dannytatom
Member
From: Seattle, WA
Registered: 2009-02-02
Posts: 229
Website

Re: gem install mysql fails

sudo gem install mysql -- --with-mysql-config=/usr/bin/mysql_config

Edit: Ah, hmm then, I'm out of ideas.  That seems to be the only response I can find from googelin', sorry.  hmm

Last edited by dannytatom (2009-03-23 21:20:04)


dnyy in IRC & Urban Terror

Offline

#9 2009-03-23 21:20:03

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: gem install mysql fails

yeah that's what I ran. nothing =/


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#10 2009-03-23 21:21:09

dannytatom
Member
From: Seattle, WA
Registered: 2009-02-02
Posts: 229
Website

Re: gem install mysql fails

Another suggestion, though not really fixing your problem, is using sqlite maybe?  If you're using mysql for Rails at least, swithing to mysql when you send it to production only takes editing the config/database.yml file.


dnyy in IRC & Urban Terror

Offline

#11 2009-03-23 21:23:04

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: gem install mysql fails

well, I'm installing this as a prerequisite to redmine. I don't think I can just switch to sqlite

Last edited by Stythys (2009-03-23 21:23:24)


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#12 2009-03-23 21:25:28

dannytatom
Member
From: Seattle, WA
Registered: 2009-02-02
Posts: 229
Website

Re: gem install mysql fails

http://www.redmine.org/boards/2/topics/2768

Redmine is a rails app, so switching between the two for production/development should be just as easy.  SQLite takes less resources and is pretty quick, so when you're the only one using it (development), it only makes sense to use it.


dnyy in IRC & Urban Terror

Offline

#13 2009-03-23 21:32:04

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: gem install mysql fails

ok well running gem install sqlite gives the same error


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#14 2009-03-23 21:39:20

dannytatom
Member
From: Seattle, WA
Registered: 2009-02-02
Posts: 229
Website

Re: gem install mysql fails

Hah, do you have the msyql-ruby package as well?


dnyy in IRC & Urban Terror

Offline

#15 2009-03-23 22:07:37

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: gem install mysql fails

installed it. same error


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

Board footer

Powered by FluxBB