2015-11-23 82 views
3

我试图在我的专用服务器上安装GitLab,但没有运气。如何在运行WHM的CentOS 6上安装GitLab?

服务器信息:

  • CENTOS 6.7 x86_64的标准
  • 南国11.52.1(建2)

我试过this指导,但我不断收到以下错误:

Loaded plugins: fastestmirror, security 
Setting up Install Process 
Loading mirror speeds from cached hostfile 
* base: centos.mirror.ca.planethoster.net 
* epel: mirrors.mit.edu 
* extras: centos.mirror.iweb.ca 
* updates: centos.mirrors.atwab.net 
Resolving Dependencies 
--> Running transaction check 
---> Package postfix.x86_64 2:2.6.6-6.el6_7.1 will be installed 
--> Processing Dependency: mysql-libs for package: 2:postfix-2.6.6-6.el6_7.1.x86_64 
--> Finished Dependency Resolution 
Error: Package: 2:postfix-2.6.6-6.el6_7.1.x86_64 (updates) 
      Requires: mysql-libs 
You could try using --skip-broken to work around the problem 
You could try running: rpm -Va --nofiles --nodigest 

当我运行以下命令:

sudo yum install postfix

我得到以下错误:

Loaded plugins: fastestmirror, security 
Setting up Install Process 
Loading mirror speeds from cached hostfile 
epel/metalink                             | 12 kB  00:00  
* base: centos.mirror.iweb.ca 
* epel: mirrors.mit.edu 
* extras: centos.mirrors.atwab.net 
* updates: centos.mirror.netelligent.ca 
base                               | 3.7 kB  00:00  
epel                               | 4.3 kB  00:00  
epel/primary_db                            | 5.8 MB  00:00  
extras                               | 3.4 kB  00:00  
updates                              | 3.4 kB  00:00  
updates/primary_db                            | 2.6 MB  00:00  
virtualbox/signature                           | 198 B  00:00  
virtualbox/signature                           | 951 B  00:00 ... 
No package mysql-libs available. 
Error: Nothing to do 

当我运行下面的命令:

sudo yum install mysql-libs

+1

奇怪:https://documentation.cpanel.net/display/1150Docs/11.50+Release+Notes包括升级到cPanel&WHM 11.50.0.11或更高版本或更高版本由于与Exim RPM冲突而强制删除以下RPM :后缀。 postfix未在https://documentation.cpanel.net/display/1150Docs/Third-Party+Software中列出。 – VonC

+0

为什么不能在尝试安装postfix之前运行'sudo yum install mysql-libs'? – PierreF

+0

@jeanMarcAssin检查更新的问题 – Waqleh

回答

2

我终究还是被跳过后缀的安装。我跳过它,如下所示:

sudo yum install --skip-broken curl openssh-server openssh-clients postfix cronie 

然后,我使用类似的纳米编辑gitlab.rb配置文件:

nano /etc/gitlab/gitlab.rb 

,改变了external_url”,并添加到它的随机未使用端口号:

external_url 'http://example.com:8443/' 

然后运行

sudo gitlab-ctl reconfigure 

使更改生效。

Voila它的工作原理。

0

它看起来像CentOS的一个共同的问题。在修复yum install postfix和丢失mysql-libs时,类似的问题已被回答here

注意:由于我无法评论,我将根据任何评论提供此答案和更新。