Не удается обработать ошибку 1.9.x при попытке установить linecache с Ruby 2.1.1
Я пытаюсь установить linecache с RVM на Ruby 2.1.1.
$ ruby --version
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
Я запускаю пакетную установку
$ bundle install
Удивительно, что он не совместим с 1.9.x, когда я запускаю пакетную установку:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/g/.rvm/rubies/ruby-2.1.2/bin/ruby 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
--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=/home/g/.rvm/rubies/ruby-2.1.2/bin/ruby
extconf failed, exit code 1
Gem files will remain installed in /home/g/.rvm/gems/ruby-2.1.2/gems/linecache-0.46
for inspection.
Results logged to /home/g/.rvm/gems/ruby-2.1.2/extensions/x86_64-linux/2.1.0
/linecache-0.46/gem_make.out
An error occurred while installing linecache (0.46), and Bundler cannot continue.
Make sure that `gem install linecache -v '0.46'` succeeds before bundling.
Есть идеи, что здесь происходит?
1 ответ
Linecache не обновлялся 3 года, последнее обновление было до версии 1.9.3. Если вы не вытаскиваете его из чужой вилки, поскольку вы используете 2.1.1, гем не будет работать. Скорее всего, сообщение об ошибке не было обновлено, поэтому оно просто сообщает, что оно недействительно для 1.9.x, так как не знает ни о каких более новых версиях.