2012-06-09 27 views
0

试图获得一个新的rails应用,并且无法在没有安装bundle的情况下启动服务器。我得到这个错误。我尝试了其他堆栈无济于事。预先感谢任何指导!在rails os上运行bundle安装时出错x 10.7.4 xcode 4.3.2 rvm 1.14.1

Using coffee-rails (3.1.1) 
Using columnize (0.3.6) 
Using country_select (0.0.2) 
Using daemon_controller (1.0.0) 
Using database_cleaner (0.7.2) 
Using multipart-post (1.1.5) 
Using databasedotcom (1.3.0) 
Using debugger-ruby_core_source (1.1.2) 
Installing debugger-linecache (1.1.1) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb 
*** 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=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 
extconf.rb:2:in `require': no such file to load -- debugger/ruby_core_source (LoadError) 
    from extconf.rb:2 


Gem files will remain installed in /Users/jahrichie/.bundler/tmp/2264/gems/debugger-linecache-1.1.1 for inspection. 
Results logged to /Users/jahrichie/.bundler/tmp/2264/gems/debugger-linecache-1.1.1/ext/trace_nums/gem_make.out 
An error occured while installing debugger-linecache (1.1.1), and Bundler cannot continue. 
Make sure that `gem install debugger-linecache -v '1.1.1'` succeeds before bundling. 

回答

2

它看起来像你已经错过了在使用ruby用红宝石或安装捆绑及捆绑安装在系统红宝石(但相当并非如此),尝试:

rvm use 1.9.3 --install 

它将确保您使用红宝石并且已安装。

+0

我的rvm安装是怪异的。每次运行新shell时都需要我运行rvm使用系统。但是,这解决了我的问题,希望孤立在我的贫民窟环境。 – jahrichie

相关问题