2015-01-31 5 views
1

를 설치할 수 없습니다, 나는 ruby-debug-base를 설치하려고하지만 오류가 발생했습니다 :내가 맥 OS X 오전 루비 - 디버그 - 기본

$ sudo gem install ruby-debug-base 
Password: 
Fetching: rbx-require-relative-0.0.9.gem (100%) 
Successfully installed rbx-require-relative-0.0.9 
Fetching: linecache-0.46.gem (100%) 
Building native extensions. This could take a while... 
ERROR: Error installing ruby-debug-base: 
    ERROR: Failed to build gem native extension. 

    /Users/Apple/.rvm/rubies/ruby-2.1.5/bin/ruby -r ./siteconf20150131-1058-139jyp3.rb extconf.rb 
Can't handle 1.9.x yet 
*** 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 
    --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/Apple/.rvm/rubies/ruby-2.1.5/bin/ruby 

extconf failed, exit code 1 

Gem files will remain installed in /Users/Apple/.rvm/rubies/ruby-2.1.5/lib/ruby/gems/2.1.0/gems/linecache-0.46 for inspection. 
Results logged to /Users/Apple/.rvm/rubies/ruby-2.1.5/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-11/2.1.0/linecache-0.46/gem_make.out 

답변

0
당신은 루비 소스가 설치된 위치를 지정해야 할 수도 있습니다

, 예를 들면 :

gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=/Users/Apple/.rvm/rubies/ruby-2.1.5