【发布时间】:2014-04-24 18:52:46
【问题描述】:
到目前为止,我在新 Mac 上的快乐旅程中遇到了障碍。 我已经将 RVM 设置为在 rails 2.3.8 上使用 ruby 1.8.7,并且在 Rmagick 之前一切都安装顺利。 下面是错误和 mkmf.log 输出 我是开发新手,无法弄清楚出了什么问题
Mkmf.log
checking for Ruby version >= 1.8.5... -------------------- yes
--------------------
find_executable: checking for /usr/bin/clang... -------------------- yes
--------------------
find_executable: checking for Magick-config... -------------------- no
--------------------
Can't install RMagick 2.13.2. Can't find Magick-config in /Users/puranisu/.rvm/gems/ruby-1.8.7-p374/bin:/Users/puranisu/.rvm/gems/ruby-1.8.7-p374@global/bin:/Users/puranisu/.rvm/rubies/ruby-1.8.7-p374/bin:/$
错误
[puranisu @ /Users]$ gem install rmagick
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/Users/puranisu/.rvm/rubies/ruby-1.8.7-p374/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for /usr/bin/clang... yes
checking for Magick-config... no
Can't install RMagick 2.13.2. Can't find Magick-config in /Users/puranisu/.rvm/gems/ruby-1.8.7-p374/bin:/Users/puranisu/.rvm/gems/ruby-1.8.7- p374@global/bin:/Users/puranisu/.rvm/rubies/ruby-1.8.7- p374/bin:/Users/puranisu/bin:/usr/local/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin :/usr/local/bin:/Users/puranisu/.rvm/bin
*** 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=/Users/puranisu/.rvm/rubies/ruby-1.8.7-p374/bin/ruby
Gem files will remain installed in /Users/puranisu/.rvm/gems/ruby-1.8.7-p374/gems/rmagick-2.13.2 for inspection.
Results logged to /Users/puranisu/.rvm/gems/ruby-1.8.7-p374/gems/rmagick- 2.13.2/ext/RMagick/gem_make.out
【问题讨论】:
标签: ruby macos rubygems gem rvm