I am currently installing Redmine and following these steps (And I am in installation process-> step2 )
and when I am trying to do bundle install --without development test rmagick
I got error as bellow .
OUTPUT
$sudo bundle install --without development test rmagick
Fetching gem metadata from http://rubygems.org/....... Using rake (0.9.2.2) Using activesupport (2.3.14)
Using rack (1.1.3) Using actionpack (2.3.14)
Using actionmailer (2.3.14) Using activerecord (2.3.14)
Using activeresource (2.3.14) Using coderay (1.0.7) Using fastercsv (1.5.5) Using i18n (0.4.2) Installing mysql (2.8.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension./usr/bin/ruby1.8 extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config extconf.rb:10: command not found: /usr/local/mysql/bin/mysql_config --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/ruby1.8
--with-mysql-configGem files will remain installed in /var/lib/gems/1.8/gems/mysql-2.8.1 for inspection. Results logged to /var/lib/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
An error occured while installing mysql (2.8.1), and Bundler cannot continue. Make sure that
gem install mysql -v '2.8.1'
succeeds before bundling.
Then I followed THIS tutorial and removed .bundle/config
and tried again but its still not working .
and also THIS one also not helped(same error) .
Here is the CAT of /var/lib/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
UPDATE:1
But I do not have the folder mysql folder in /usr/local/
and also I can not locate bin/mysql_config
UPDATE:2
I over come the first problem(mysql problem it was a path issue) and I end up with another : Please check :
sudo bundle install --without development test rmagick
Fetching gem metadata from http://rubygems.org/.......
Using rake (0.9.2.2)
Using activesupport (2.3.14)
Using rack (1.1.3)
Using actionpack (2.3.14)
Using actionmailer (2.3.14)
Using activerecord (2.3.14)
Using activeresource (2.3.14)
Using coderay (1.0.7)
Using fastercsv (1.5.5)
Using i18n (0.4.2)
Using mysql (2.8.1)
Using net-ldap (0.3.1)
Installing pg (0.14.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** 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/ruby1.8
--with-pg
--without-pg
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
Gem files will remain installed in /var/lib/gems/1.8/gems/pg-0.14.0 for inspection.
Results logged to /var/lib/gems/1.8/gems/pg-0.14.0/ext/gem_make.out
An error occured while installing pg (0.14.0), and Bundler cannot continue.
Make sure that `gem install pg -v '0.14.0'` succeeds before bundling.