首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装linecache19 gem bundler rvm时出错

安装linecache19 gem bundler rvm时出错
EN

Stack Overflow用户
提问于 2012-07-10 05:09:53
回答 1查看 2.4K关注 0票数 1

我无法通过捆绑器在aptosid (即debian sid)上安装linecache19 1.9.2的rvm gem。

我是ruby的新手,但是我的ruby安装显然没有完全配置错误,因为我已经能够安装rails和一些gem了。

我得到的输出如下:

代码语言:javascript
复制
    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.

我已经尝试了通常建议的解决方案:

代码语言:javascript
复制
 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

我对输出中报告的路径中出现的"1.9.1“感到困惑--我想知道这是否是debian ruby包的遗留问题以及我的问题的根源。

ps这一切都是为了帮助安装最小的联合维基。我鼓励读者看看这个项目。

EN

回答 1

Stack Overflow用户

发布于 2012-07-10 15:27:53

在终端中输入rvm requirements

它将为您提供如下内容

代码语言:javascript
复制
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所需的所有依赖项。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11403203

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档