You are not logged in.
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
Do you have the MySQL package installed?
dnyy in IRC & Urban Terror
Offline
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
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
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
Well point it to the relative path. Wherever MySQL is installed (don't have it atm, been usin' sqlite or I'd look for ya).
dnyy in IRC & Urban Terror
Offline
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
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.
Last edited by dannytatom (2009-03-23 21:20:04)
dnyy in IRC & Urban Terror
Offline
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
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
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
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
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
Hah, do you have the msyql-ruby package as well?
dnyy in IRC & Urban Terror
Offline
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