2

我正在尝试在我的 CentOS 6.3 服务器上安装 redmine。我创建了一个用户来运行程序,然后我尝试使用命令安装它

bundle install --without development test postgresql sqlite rmagick

但它问我密码

Fetching gem metadata from http://rubygems.org/.........
Fetching gem metadata from http://rubygems.org/..
Enter your password to install the bundled RubyGems to your system:

Interrupt: An error occurred while installing rake (10.0.3), and Bundler cannot continue.
Make sure that `gem install rake -v '10.0.3'` succeeds before bundling.

当前安装的 gem 列表是:

*** LOCAL GEMS ***

bigdecimal (1.1.0)
bundler (1.2.3)
charlock_holmes (0.6.9)
io-console (0.4.1, 0.3)
json (1.7.6, 1.5.4)
minitest (4.6.0, 2.5.1)
rake (10.0.3, 0.9.2.2)
rdoc (3.12.1, 3.9.5)

我没有使用 RVM。如您所见,这些 gem 对所有用户都可用:如果我尝试为我的 redmine 用户和我的 root 用户执行 gem list 命令,我会得到相同的结果。rake 已经安装,所以我不明白问题出在哪里:安装 GitLab 没有问我任何密码

4

1 回答 1

3

使用以下命令将它们安装在本地文件夹中:

bundle install --without development test postgresql sqlite rmagick --path vendor/bundler
于 2013-02-11T10:26:44.327 回答