带有 Gitlab 的 Ruby Gems 没有要加载的文件——rb-inotify [英] Ruby Gems with Gitlab no such file to load -- rb-inotify
问题描述
我正在使用 Gitlab,我正在尝试按照这些说明将我的 gitolite v2 升级到 v3:
I am using Gitlab and I am trying to follow these instructions to upgrade my gitolite v2 to v3:
"如果在 2.9.x 中出现此问题,您应该重新安装 gitolite.
"If this issue occurs in 2.9.x you should reinstall gitolite.
1) 备份所有存储库.只需将/home/git/repositories/* 复制到其他地方.
1) backup all repositories. Just copy /home/git/repositories/* elsewhere.
2) 安装新的 gitolite.请参阅 https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md
2) Install new gitolite. See https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md
3) 将存储库复制回来.
3) copy repositories back.
4) sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_keys &&sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos
4) sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_keys && sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos
就是这样.
这些步骤也与想要将 gitolite v2 更新到 v3 的用户有关"
That steps also related to users who wants to update gitolite v2 to v3"
我的 Gemfile 和 Gemfile.lock 中有 rb-inotify 如下所示:
My Gemfile and Gemfile.lock have rb-inotify in them as shown below:
gitlabhq@build:~/gitlabhq$ grep notify Gemfile
gem 'rb-inotify', :require => linux_only('rb-inotify')
gitlabhq@build:~/gitlabhq$ grep notify Gemfile.lock
rb-inotify (0.8.8)
rb-inotify
我正在尝试使用以下命令更新我的密钥和存储库,但我总是收到错误消息no such file to load --rb-inotify"
I am trying to update my keys and repos using the following commands but I always get the error "no such file to load --rb-inotify"
gitlabhq@geminibuild:~/gitlabhq$ sudo -u gitlabhq -H bundle exec rake gitlab:gitolite:update_keys
rake aborted!
no such file to load -- rb-inotify
(See full trace by running task with --trace)
我尝试进行捆绑安装,但使用"列表不包含 rb-notify gem.
I've tried to do a bundle install , and the list of 'Using " does not contain the rb-notify gem.
我尝试像这样安装 rb-inotify gem:
I've tried to install the rb-inotify gem like so:
sudo -u gitlabhq gem install rb-inotify
我已经擦除了 Gemfile.lock 文件,然后运行:
I've wiped the Gemfile.lock file and then run:
sudo -u gitlabhq bundle install
还是没有运气.
如何让 Gitlab 识别和使用 rb-inotify.谢谢 -
How can I get Gitlab to recognize and use rb-inotify. Thank you -
推荐答案
我似乎已经通过运行修复了它:
I seemed to have fixed it by running:
bundle install --without production
bundle install
这篇关于带有 Gitlab 的 Ruby Gems 没有要加载的文件——rb-inotify的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!