作者热门文章
- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
当我运行 bundle 时,出现以下错误
~/rails_apps/redmine]# bundle
/usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [RedCloth-4.2.9, ZenTest-4.8.2, actionmailer-2.3.14, actionpack-2.3.14, activerecord-2.3.14, activeresource-2.3.14, activesupport-2.3.14, cgi_multipart_eof_fix-2.5.0, daemons-1.1.5, eventmachine-0.12.10, fastercsv-1.5.5, fastthread-1.0.7, ferret-0.11.8.4, gchartrb-0.8, gem_plugin-0.2.3, icalendar-1.2.0, json-1.7.5, mongrel-1.1.5, rack-1.1.3, rails-2.3.14, rake-0.9.2.2, rmagick-2.13.1, rubygems-update-1.8.15, sqlite3-1.3.5, test-spec-0.10.0, tzinfo-0.3.33] (Gem::LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:1208:in `gem'
from /home/jmg810/ruby/gems/bin/bundle:18
这是我的本地 gem 列表,您会注意到这些 gem 与完整的本地 gem 列表不匹配
*** LOCAL GEMS ***
actionmailer (3.2.8)
actionpack (3.2.8)
activemodel (3.2.8)
activerecord-jdbc-adapter (1.2.2)
activerecord-jdbcmysql-adapter (1.2.2)
activesupport (3.2.8)
bouncy-castle-java (1.5.0146.1)
builder (3.0.3)
bundler (1.2.1)
coderay (1.0.7)
edavis10-object_daddy (0.4.3)
erubis (2.7.0)
fastercsv (1.5.5)
hike (1.2.1)
i18n (0.6.1, 0.4.2)
jdbc-mysql (5.1.13)
journey (1.0.4)
jruby-openssl (0.7.7)
json (1.7.5)
mail (2.4.4)
mime-types (1.19)
multi_json (1.3.6)
mysql (2.8.1)
mysql2 (0.3.11)
net-ldap (0.3.1)
pg (0.14.1)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-test (0.6.1)
rake (0.9.2.2)
rmagick (2.13.1)
ruby-openid (2.2.0, 2.1.8)
sprockets (2.1.3)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.33)
这是我的 gem 环境
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.15
- RUBY VERSION: 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/jmg810/ruby/gems
- RUBY EXECUTABLE: /usr/bin/ruby
- EXECUTABLE DIRECTORY: /home/jmg810/ruby/gems/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/jmg810/ruby/gems
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "gempath" => []
- "gem" => "--remote --gen-rdoc --run-tests"
- "gemhome" => "/home/jmg810/ruby/gems"
- "rdoc" => "--inline-source --line-numbers"
- REMOTE SOURCES:
- http://rubygems.org/
我认为问题在于它没有在我本地的 gems 中查找
最佳答案
在我的 bash_profile
中,我有 $PATH:~/ruby/bin
而我需要 ~/ruby/bin:$PATH
。它使用 /usr/bin
中的 gem 而不是 ~/ruby/bin
。
关于ruby - 运行 dependency.rb :247:in `to_specs' : Could not find bundler,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12547494/
当我运行 bundle 时,出现以下错误 ~/rails_apps/redmine]# bundle /usr/lib/ruby/site_ruby/1.8/rubygems/dependency.r
我正在尝试在我的笔记本电脑上安装 chef 和 knife ec2 插件来设置工作站。最初我使用 chef omnibus 来安装 chef-client 但安装后我遇到了一些问题,所以快速谷歌搜索让
我遇到了以下错误。 rails -v /opt/ruby/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find
我是一名优秀的程序员,十分优秀!