1
1
```
2
2
Distribution : CentOS 6.4
3
- GitLab version : 6.0
3
+ GitLab version : 6.0 - 6.2
4
4
Web Server : Apache, Nginx
5
5
Init system : sysvinit
6
6
Database : MySQL, PostgreSQL
7
- Contributors : @nielsbasjes, @axilleas, @mairin, @ponsjuh, @yorn
8
- Additional Notes : In order to get the latest git version we build it from source
7
+ Contributors : @nielsbasjes, @axilleas, @mairin, @ponsjuh, @yorn, @psftw
8
+ Additional Notes : In order to get a proper Ruby setup we build it from source
9
9
```
10
10
11
11
## Overview
@@ -86,29 +86,39 @@ Now install the `epel-release-6-8.noarch` package, which will enable EPEL reposi
86
86
87
87
** Note:** Don't mind the ` x86_64 ` , if you install on a i686 system you can use the same commands.
88
88
89
- Verify that the EPEL repository is enabled as shown below. Now, you’ll see epel
90
- repository (apart from the standard base, updates and extras repositories):
89
+ ### Add PUIAS Computational repository
90
+
91
+ The [ PUIAS Computational] [ PUIAS ] repository is a part of [ PUIAS/Springdale Linux] [ SDL ] ,
92
+ a custom Red Hat® ; distribution maintained by [ Princeton University] [ PU ] and the
93
+ [ Institute for Advanced Study] [ IAS ] . We take advantage of the PUIAS
94
+ Computational repository to obtain a git v1.8.x package since the base CentOS
95
+ repositories only provide v1.7.1 which is not compatible with GitLab.
96
+
97
+ Install the PUIAS Computational repository rpm
98
+
99
+ sudo rpm -Uvh http://puias.math.ias.edu/data/puias/6/x86_64/os/Packages/springdale-computational-6-2.sdl6.10.noarch.rpmo
100
+
101
+ Verify that the EPEL and PUIAS Computational repositories are enabled as shown below:
91
102
92
103
sudo yum repolist
93
- repo id repo name status
94
- base CentOS-6 - Base 4,802
95
- epel Extra Packages for Enterprise Linux 6 - x86_64 7,879
96
- extras CentOS-6 - Extras 12
97
- updates CentOS-6 - Updates 814
98
- repolist: 13,507
104
+ repo id repo name status
105
+ PUIAS_6_computational PUIAS computational Base 6 - x86_64 2,018
106
+ base CentOS-6 - Base 4,802
107
+ epel Extra Packages for Enterprise Linux 6 - x86_64 7,879
108
+ extras CentOS-6 - Extras 12
109
+ updates CentOS-6 - Updates 814
110
+ repolist: 15,525
99
111
100
- If you can't see it listed, use the folowing command to enable it :
112
+ If you can't see them listed, use the folowing command (from yum-utils package) to enable them :
101
113
102
- sudo yum-config-manager --enable epel
114
+ sudo yum-config-manager --enable epel --enable PUIAS_6_computational
103
115
104
116
### Install the required tools for GitLab
105
117
106
118
su -
107
119
yum -y update
108
120
yum -y groupinstall 'Development Tools'
109
-
110
- ### 'Additional Development'
111
- yum -y install vim-enhanced readline readline-devel ncurses-devel gdbm-devel glibc-devel tcl-devel openssl-devel curl-devel expat-devel db4-devel byacc sqlite-devel gcc-c++ libyaml libyaml-devel libffi libffi-devel libxml2 libxml2-devel libxslt libxslt-devel libicu libicu-devel system-config-firewall-tui python-devel redis sudo wget crontabs logwatch logrotate perl-Time-HiRes
121
+ yum -y install vim-enhanced readline readline-devel ncurses-devel gdbm-devel glibc-devel tcl-devel openssl-devel curl-devel expat-devel db4-devel byacc sqlite-devel gcc-c++ libyaml libyaml-devel libffi libffi-devel libxml2 libxml2-devel libxslt libxslt-devel libicu libicu-devel system-config-firewall-tui python-devel redis sudo wget crontabs logwatch logrotate perl-Time-HiRes git
112
122
113
123
** RHEL Notes**
114
124
@@ -119,32 +129,6 @@ add the rhel6 optional packages repo to your server to get those packages:
119
129
120
130
Tip taken from [ here] ( https://github.com/gitlabhq/gitlab-recipes/issues/62 ) .
121
131
122
- ### Git
123
-
124
- GitLab will only work correctly with git version 1.8.x or newer. The problem is
125
- that the available rpms for CentOS stop at git 1.7.1 which is too old for GitLab.
126
- In order to update, you have to build git from source as it is not yet in any repository:
127
-
128
- su -
129
- cd /tmp
130
- yum -y install git perl-ExtUtils-MakeMaker
131
- git clone git://github.com/git/git.git
132
- cd /tmp/git/
133
- git checkout v1.8.3.4
134
- autoconf
135
- ./configure --prefix=/usr/local
136
- make && make install
137
- rm -rf /tmp/git/
138
- yum erase git
139
-
140
- Logout and login again for the ` $PATH ` to take effect. Check that git is properly
141
- installed with:
142
-
143
- which git
144
- # /usr/local/bin/git
145
- git --version
146
- # git version 1.8.3.4
147
-
148
132
### Configure redis
149
133
Make sure redis is started on boot:
150
134
@@ -370,9 +354,6 @@ cp config/gitlab.yml.example config/gitlab.yml
370
354
# Replace your_domain_name with the fully-qualified domain name of your host serving GitLab
371
355
sed -i 's|localhost|your_domain_name|g' config/gitlab.yml
372
356
373
- # Change git's path to point to /usr/local/bin/git
374
- sed -i 's|/usr/bin/git|/usr/local/bin/git|' config/gitlab.yml
375
-
376
357
# Make sure GitLab can write to the log/ and tmp/ directories
377
358
chown -R git log/
378
359
chown -R git tmp/
@@ -603,10 +584,13 @@ You will then be redirected to change the default admin password.
603
584
## Links used in this guide
604
585
605
586
- [ EPEL information] ( http://www.thegeekstuff.com/2012/06/enable-epel-repository/ )
606
- - [ git update to 1.8.x] ( http://www.pickysysadmin.ca/2013/05/21/commit-comments-not-appearing-in-gitlab-on-centos/ )
607
587
- [ SELinux booleans] ( http://wiki.centos.org/TipsAndTricks/SelinuxBooleans )
608
588
609
589
610
590
[ EPEL ] : https://fedoraproject.org/wiki/EPEL
591
+ [ PUIAS ] : https://puias.math.ias.edu/wiki/YumRepositories6#Computational
592
+ [ SDL ] : https://puias.math.ias.edu
593
+ [ PU ] : http://www.princeton.edu/
594
+ [ IAS ] : http://www.ias.edu/
611
595
[ keys ] : https://fedoraproject.org/keys
612
596
[ sudo ] : http://stackoverflow.com/questions/257616/sudo-changes-path-why
0 commit comments