ruby-debug install error: failed to build gem native extension

前端 未结 8 1996
忘了有多久
忘了有多久 2021-01-30 02:46

I\'m running 1.9.2 with rails 3.

I\'m using rvm.

I did:

sudo gem install ruby-gem

and got:

Building native exte         


        
8条回答
  •  攒了一身酷
    2021-01-30 03:06

    For windows, search your ruby dir for vm_core.h and then use that dir as your include path. For me, that's

    gem install ruby-debug-base19 -- --with-ruby-include=C:\JRuby\lib\native\include\ruby-1.9.3-p392
    

    Then I had to check:

    C:\JRuby\lib\ruby\gems\shared\gems\linecache19-0.5.12\ext\trace_nums\gem_make.out
    

    and move ruby/ruby.h into the include directory above.

    Now I have some other error, fix it a bit later...

提交回复
热议问题