gitLab centos6.7安装问题
習慣沉默
習慣沉默 2017-04-26 09:00:55
0
3
779

我的系统是Centos6.7的,我完全按照文档:https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/install/centos,来进行安装。
当进行到Gems的安装步骤时,出问题了。

cd /home/git/gitlab

# For PostgreSQL (note, the option says "without ... mysql")
sudo -u git -H bundle config build.pg --with-pg-config=/usr/pgsql-9.3/bin/pg_config
sudo -u git -H bundle install --deployment --without development test mysql aws

执行:sudo -u git -H bundle install --deployment --without development test mysql aws,报错提示:

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

然后按照提示,安装charlock_holmes

gem install charlock_holmes -v '0.6.9.4'

安装成功,执行gem list可以看到:

*** LOCAL GEMS ***

bigdecimal (1.2.4)
bundler (1.11.2)
charlock_holmes (0.6.9.4)
....

然后重新执行命令:

sudo -u git -H bundle install --deployment --without development test mysql aws

结果还是报错,说没有安装charlock_holmes :

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

实际上charlock_holmes已经安装成功了。

当然除了这个报错,我还看到安装过程中的报错信息,分别有两条,可能跟权限有关系:

Installing charlock_holmes 0.6.9.4 with native extensions

Errno::EACCES: Permission denied @ rb_sysopen - /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/charlock_holmes-0.6.9.4/.gitignore
Installing rugged 0.21.2 with native extensions

Errno::EACCES: Permission denied @ rb_sysopen - /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rugged-0.21.2/LICENSE

请问,这是什么原因?

習慣沉默
習慣沉默

모든 응답(3)
巴扎黑

실제로 charlock_holmes가 성공적으로 설치되었습니다.

실제로 charlock_holmes 설치에 실패했습니다.

실례합니다. 이유가 무엇인가요?

말씀대로 권한 때문입니다. git 사용자를 사용하지 않고 설치하셨나요?

Ty80

해 보세요:

으아악
我想大声告诉你

소스 코드에서 GitLab을 직접 설치하고 싶으신 분들은 이 게시물을 확인하시기를 권합니다.
GitLab CE 8.7 소스 코드 설치 매뉴얼(Centos6/REHL6)

아래 질문에 답해 주세요
오류가 발생한 이유는 종속 패키지가 누락되었기 때문입니다

Centos6에서 GitLab이 설치해야 하는 패키지는 다음과 같습니다.

으아악
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!