error安装linecache19 gem bundler rvm
我无法安装linecache19 gem通过捆绑软件安装ruby 1.9.2在aptosid(即debian sid)上的rvm安装。error安装linecache19 gem bundler rvm
我是新来的红宝石,但我的红宝石安装显然不完全错误配置,因为我已经能够安装轨道和一堆宝石。
输出我得到的是以下几点:
Installing linecache19 (0.5.12) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/caz/.rvm/rubies/ruby-1.9.2-p320/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:
/home/caz/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- openssl (LoadError)
ms/custom_require.rb:36:in `require'
in `<top (required)>'
ms/custom_require.rb:36:in `require'
from /home/caz/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/caz/.rvm/gems/ruby-1.9.2-p320/gems/ruby_core_source-0.1.5/lib/contrib/uri_ext.rb:11:in `<top (required)>'
from /home/caz/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/caz/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/caz/.rvm/gems/ruby-1.9.2-p320/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:6:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:33:in `require'
from <internal:lib/rubygems/custom_require>:33:in `rescue in require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from extconf.rb:2:in `<main>'
Gem files will remain installed in /home/caz/.rvm/gems/ruby-1.9.2-p320/gems/linecache19-0.5.12 for inspection.
Results logged to /home/caz/.rvm/gems/ruby-1.9.2-p320/gems/linecache19-0.5.12/ext/trace_nums/gem_make.out
An error occured while installing linecache19 (0.5.12), and Bundler cannot continue.
Make sure that `gem install linecache19 -v '0.5.12'` succeeds before bundling.
我已经试过这通常是建议的解决方案:
gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-p320
我一直在使用没有成功--force选项也尝试按以下内容:
Installing Gems without rvm, as root, with explicit version of ruby
我CON在产出报告的路径中出现了“1.9.1”的融合 - 我想知道这是否是debian ruby软件包的宿醉和我的问题的根源。
ps这些都是为了安装Smallest Federated Wiki。我鼓励读者看看这个项目。
进入rvm requirements
它会为您提供类似
Additional Dependencies:
# For Ruby/Ruby HEAD (MRI, Rubinius, & REE), install the following:
ruby: /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
接着复制命令并运行它。它将安装运行ruby所需的所有依赖项。
谢谢你的回应。我已经做到了。我应该提到这一点,但是当我写这篇文章的时候,我非常沮丧。后期我会更新我的问题,并详细介绍我所做的事情。 – maninalift 2012-07-10 14:55:46
这正是我需要解决的问题。唯一的解决办法是如果你已经安装了Ruby解释器,用'rvm reinstall 1.9.3'来跟踪该命令。 – 2012-09-16 04:38:54
啊是的。我很抱歉,我也应该提到这一点。 – sohaibbbhatti 2012-09-17 06:41:16
可能缺少libopenssl软件包或其他东西? – rogerdpack 2012-07-09 22:21:40
也许你只需要用调试器替换ruby-debug19,它包含了所有东西的头文件。看到我在这个问题的答案http://*.com/a/10414984/773690 – iblue 2012-07-20 19:38:30
试图安装调试器有同样的问题。最后是什么解决了它是删除我的系统openssl包(这一步我认为没有必要),在本地安装rvm openssl包并指向它的ruby。这个解决方案实际上是在我喜欢的问题中的其中一个snwers中描述的.... Duh! – maninalift 2012-08-13 20:22:09