Ruby Gems和Gitlab没有这样的文件加载 - rb-inotify [英] Ruby Gems with Gitlab no such file to load -- rb-inotify
问题描述
我正在使用Gitlab,并且正在尝试按照以下说明将gitolite v2升级到v3: 如果2.9.x中出现此问题,应重新安装gitolite。
$ b
1)备份所有的软件仓库,只需复制/ home / git / repositories / *在其他地方。
2)安装新的gitolite。请参阅 https://github.com/gitlabhq/gitlabhq/blob/master /doc/installation.md
$ b 3)将存储库复制回来。
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的用户相关联。
我的Gemfile和Gemfile.lock具有如下所示:
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
我正尝试使用以下命令更新我的密钥和repos,但我总是收到错误 no such file to加载--rb-inotify
gitlabhq @ geminibuild:〜/ gitlabhq $ sudo -u gitlabhq -H bundle exec rake gitlab:gitolite:update_keys
rake中止!
没有这样的文件加载 - rb-inotify
(通过使用--trace运行任务来查看完整跟踪)
我试过做一个bundle安装,并且'Using'列表中没有包含rb-notify gem。
我尝试安装rb-inotify gem,如下所示:
sudo -u gitlabhq gem install rb-inotify
我已经擦掉了Gemfile.lock文件,然后运行:
sudo -u gitlabhq bundle install
仍然是
如何让Gitlab识别并使用rb-inotify。谢谢 -
我似乎已经通过运行修复了它:
bundle install --without production
软件包安装
I am using Gitlab and I am trying to follow these instructions to upgrade my gitolite v2 to v3:
"If this issue occurs in 2.9.x you should reinstall gitolite.
1) backup all repositories. Just copy /home/git/repositories/* elsewhere.
2) Install new gitolite. See https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md
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
That's all.
That steps also related to users who wants to update gitolite v2 to v3"
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
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)
I've tried to do a bundle install , and the list of 'Using " does not contain the rb-notify gem.
I've tried to install the rb-inotify gem like so:
sudo -u gitlabhq gem install rb-inotify
I've wiped the Gemfile.lock file and then run:
sudo -u gitlabhq bundle install
Still no luck.
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
这篇关于Ruby Gems和Gitlab没有这样的文件加载 - rb-inotify的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!