当我在mac上安装rjb时,出现了一些错误,如下所示:构建本地扩展。这可能需要一段时间。错误:安装rjb时出错:错误:无法构建gem本机扩展。
/Users/twer/.rvm/rubies/ruby-1.8.7-p352/bin/ruby extconf.rb
extconf.rb failed
由于某种原因,可能缺少所需的库和/或头文件,无法创建Makefile。有关更多详细信息,请查看mkmf.log文件。您可能需要配置选项。
提供的配置选项:
--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/twer/.rvm/rubies/ruby-1.8.7-p352/bin/ruby
extconf.rb:45:in `open': No such file or directory - /System/Library/Frameworks/JavaVM.framework/Headers (Errno::ENOENT)
from extconf.rb:45
Gem文件将保留安装在/Users/twer/.rvm/gems/ruby-1.8.7-p352@home-ideas/gems/rjb-1.3.3
中以供检查。结果记录到/Users/twer/.rvm/gems/ruby-1.8.7-p352@home-ideas/gems/rjb-1.3.3/ext/gem_make.out
然后我尝试安装Java developer包来解决这个问题。但no/System/Library/Frameworks/JavaVM.framework/Headers directory
仍然存在。
请帮帮我。
发布于 2012-11-28 07:33:37
我刚安装了rjb,但我的版本是1.9.3-p327...也许是rvm install 1.9.3-p327
,看看你的进展如何?
https://stackoverflow.com/questions/13599627
复制相似问题