我尝试在我的OFFLINE ubuntu 14.04上安装Redmine(这意味着ruby和rails)。
我安装了ruby OK,从源代码编译:
$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
我安装了bundler,通过rake创建了gem,然后安装了gem:
$ gem list
*** LOCAL GEMS ***
bigdecimal (default: 1.3.0)
bundler (2.0.0.dev)
did_you_mean (1.1.0)
io-console (default: 0.4.6)
json (default: 2.0.2)
minitest (5.10.1)
net-telnet (0.1.1)
openssl (default: 2.0.3)
power_assert (0.4.1)
psych (default: 2.2.2)
rake (12.0.0)
rdoc (default: 5.0.0)
test-unit (3.2.3)
xmlrpc (0.2.1)
然后我想在本地安装下载的gems,但似乎没有安装bundler。当我检查时,显然是这样的:
$ bundle -v
/usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler (LoadError)
from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/gems/2.4.0/gems/bundler-2.0.0.dev/exe/bundle:10:in `<top (required)>'
from /usr/bin/bundle:22:in `load'
from /usr/bin/bundle:22:in `<main>'
我该如何解决这个问题? 非常感谢
凯撒