小编Shi*_*Bee的帖子

ruby bundle install require:没有这样的文件加载错误

我通过捆绑安装从我通过git克隆的应用程序安装宝石遇到了麻烦.

以下是bundle install的输出结果:

bundle install
/usr/lib/ruby/vendor_ruby/bundler/rubygems_ext.rb:8:in `require': no such file to load --     rubygems (LoadError)
from /usr/lib/ruby/vendor_ruby/bundler/rubygems_ext.rb:8
from /usr/lib/ruby/vendor_ruby/bundler.rb:11:in `require'
from /usr/lib/ruby/vendor_ruby/bundler.rb:11
from /usr/bin/bundle:4:in `require'
from /usr/bin/bundle:4
Run Code Online (Sandbox Code Playgroud)

我读了谷歌和其他stackoverflow问题,但上面指出的文件是在红宝石文件夹中,所以它不应该与应用程序有关(理论上这意味着我将无法捆绑任何应用程序的安装).任何方式如何解决这个问题?

任何帮助将深表感谢!

ruby ruby-on-rails ruby-on-rails-3.2

14
推荐指数
1
解决办法
2万
查看次数

Ruby on rails应用程序在本地工作但不适用于heroku

我正在做michael hartl关于ruby on rails的教程,一切都在本地工作正常,但在应用程序部署时没有在heroku上...这个问题出现在本书第7章之前:http://ruby.railstutorial.org/ruby-on- Rails的教程书#顶部

你需要调试这个问题的细节吗?请告诉我.....

这是heroku日志:

$ 2012-07-18T06:10:26+00:00 app[web.1]:     6:         <ul class="nav pull-right">

2012-07-18T06:10:26+00:00 app[web.1]: ActionView::Template::Error (undefined met
hod `find_by_remember_token' for #<Class:0x00000004960740>):
2012-07-18T06:10:26+00:00 app[web.1]:     7:           <li><%= link_to "Home", r
oot_path %></li>
2012-07-18T06:10:26+00:00 app[web.1]:     8:           <li><%= link_to "Help", h
elp_path %></li>
2012-07-18T06:10:26+00:00 app[web.1]:     9:           <% if signed_in? %>
2012-07-18T06:10:26+00:00 app[web.1]:     10:             <li><%= link_to "Users
", users_path %></li>
2012-07-18T06:10:26+00:00 app[web.1]:     11:             <li id="fat-menu" clas
s="dropdown">
2012-07-18T06:10:26+00:00 app[web.1]:     12:               <a href="#" class="d
ropdown-toggle" data-toggle="dropdown">
2012-07-18T06:10:26+00:00 app[web.1]:   app/helpers/sessions_helper.rb:10:in `cu
rrent_user' …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails heroku ruby-on-rails-3

8
推荐指数
1
解决办法
4555
查看次数

使用rbenv BUILD FAILED安装ruby-2.0.0-p0

所以我尝试在我运行在VirtualBox上的新ubuntu 12.04LTS上通过rbenv安装ruby.

我从rbenv https://github.com/sstephenson/rbenv和红宝石打造https://github.com/sstephenson/ruby-build.

然后我运行以下但构建失败:(

rbenv install 2.0.0-p0
Downloading ruby-2.0.0-p0.tar.gz...
-> http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz
Installing ruby-2.0.0-p0...

BUILD FAILED

Inspect or clean up the working tree at /tmp/ruby-build.20130506102349.2564
Results logged to /tmp/ruby-build.20130506102349.2564.log

Last 10 log lines:
installing default gems:      /home/shivin/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0     (build_info, cache, doc, gems, specifications)
                          bigdecimal 1.2.0
                          io-console 0.4.2
                          json 1.7.7
                          minitest 4.3.2
                          psych 2.0.0
                          rake 0.9.6
                          rdoc 4.0.0
                          test-unit 2.0.0.0
The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
Run Code Online (Sandbox Code Playgroud)

任何帮助,将不胜感激.如果您需要更多详细信息,请与我们联系.谢谢!

ruby install rbenv

8
推荐指数
1
解决办法
6458
查看次数