Francis's Octopress Blog

A blogging framework for hackers.

Rvm下安装gem编译失败 Linecache19

rvm下安装gem编译失败 linecache19

报错:An error occured while installing linecache19 (0.5.12), and Bundler cannot continue.


ruby -v

then manually use —force to bypass version check:

gem install ruby_core_source

gem install linecache19 —force

if you faced with another error starting with following lines:

checking for vm_core.h… no

extconf.rb failed

You have to explicitly set the source path to vm_core.h

In my case:

$ which ruby


$ echo $rvm_path


so to install linecache19 :

gem install ruby_core_source

gem install linecache19 —force — —with-ruby-include=$rvm_path/src/ruby-1.9.2-rc2/

ruby-debug19 has a similar issue:

gem install ruby-debug19 —force — —with-ruby-include=$rvm_path/src/ruby-1.9.2-rc2/

That’s all!



gem install ruby_core_source

if cannot rvm pkg install openssl   sudo rvm pkg install openssl end

rvm remove 1.9.2-p290 rvm install 1.9.2-p290 —with-openssl-dir=$rvm_path/usr

ruby-debug and ruby 1.9

If you have trouble installing ruby-debug19 try installing with the following command:

$ rvm reinstall 1.9.2 --patch debug --force-autoconf
$ gem install ruby-debug19 -- --with-ruby-include="${MY_RUBY_HOME/rubies/src}"