Skip to content

Commit b0c3231

Browse files
committed
Merge pull request #166 from psftw/update-git-instructions
Update Centos 6.4 guide to obtain git via RPM instead of compilation
2 parents 94246e4 + a1895d1 commit b0c3231

File tree

1 file changed

+30
-46
lines changed

1 file changed

+30
-46
lines changed

install/centos/README.md

Lines changed: 30 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
```
22
Distribution : CentOS 6.4
3-
GitLab version : 6.0
3+
GitLab version : 6.0 - 6.2
44
Web Server : Apache, Nginx
55
Init system : sysvinit
66
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
99
```
1010

1111
## Overview
@@ -86,29 +86,39 @@ Now install the `epel-release-6-8.noarch` package, which will enable EPEL reposi
8686

8787
**Note:** Don't mind the `x86_64`, if you install on a i686 system you can use the same commands.
8888

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:
91102

92103
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
99111

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:
101113

102-
sudo yum-config-manager --enable epel
114+
sudo yum-config-manager --enable epel --enable PUIAS_6_computational
103115

104116
### Install the required tools for GitLab
105117

106118
su -
107119
yum -y update
108120
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
112122

113123
**RHEL Notes**
114124

@@ -119,32 +129,6 @@ add the rhel6 optional packages repo to your server to get those packages:
119129

120130
Tip taken from [here](https://github.com/gitlabhq/gitlab-recipes/issues/62).
121131

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-
148132
### Configure redis
149133
Make sure redis is started on boot:
150134

@@ -370,9 +354,6 @@ cp config/gitlab.yml.example config/gitlab.yml
370354
# Replace your_domain_name with the fully-qualified domain name of your host serving GitLab
371355
sed -i 's|localhost|your_domain_name|g' config/gitlab.yml
372356
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-
376357
# Make sure GitLab can write to the log/ and tmp/ directories
377358
chown -R git log/
378359
chown -R git tmp/
@@ -603,10 +584,13 @@ You will then be redirected to change the default admin password.
603584
## Links used in this guide
604585

605586
- [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/)
607587
- [SELinux booleans](http://wiki.centos.org/TipsAndTricks/SelinuxBooleans)
608588

609589

610590
[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/
611595
[keys]: https://fedoraproject.org/keys
612596
[sudo]: http://stackoverflow.com/questions/257616/sudo-changes-path-why

0 commit comments

Comments
 (0)