我目前安裝管理平臺及以下these steps(而且我在安裝流程 - >第二步:) ,當我試圖做bundle install --without development test rmagick
我誤差波紋管。捆綁安裝不工作
輸出
$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.
然後我跟着THIS教程和刪除.bundle/config
,並再次嘗試,但它仍然沒有工作。
還有THIS也沒有幫助(同樣的錯誤)。
以下爲/var/lib/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
UPDATE的CAT:1
但我沒有文件夾MySQL的文件夾中/usr/local/
,也是我不能locate bin/mysql_config
更新:2
我到這兒來的第一個問題(MySQL的問題,這是一個路徑問題),我結束了另:請檢查:
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.
謝謝,這是一個路徑問題(不需要安裝mysql),但我最終與另一個請檢查第二個更新。 –
哦解決了它。謝謝你 –