Skip to content

Commit cfd6340

Browse files
author
Adam Gradzki
committed
Gitlab only supports Ruby 2.0.x releases
1 parent 1973838 commit cfd6340

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

install/centos/README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ GitLab version : 6.0 - 6.6
44
Web Server : Apache, Nginx
55
Init system : sysvinit
66
Database : MySQL, PostgreSQL
7-
Contributors : @nielsbasjes, @axilleas, @mairin, @ponsjuh, @yorn, @psftw, @etcet, @mdirkse
7+
Contributors : @nielsbasjes, @axilleas, @mairin, @ponsjuh, @yorn, @psftw, @etcet, @mdirkse, @nszceta
88
Additional Notes : In order to get a proper Ruby setup we build it from source
99
```
1010

@@ -221,15 +221,20 @@ You might have to logout and login again for the `$PATH` to take effect.
221221

222222
The use of ruby version managers such as [RVM](http://rvm.io/), [rbenv](https://github.com/sstephenson/rbenv) or [chruby](https://github.com/postmodern/chruby) with GitLab in production frequently leads to hard to diagnose problems. Version managers are not supported and we stronly advise everyone to follow the instructions below to use a system ruby.
223223

224-
Remove the old Ruby 1.8 if present:
224+
Remove the old Ruby 1.8 package if present. Gitlab 6.7 only supports the Ruby 2.0.x release series:
225225

226226
yum remove ruby
227227

228+
Remove any other Ruby build if it is still present:
229+
230+
cd <your-ruby-source-path>
231+
make uninstall
232+
228233
Download Ruby and compile it:
229234

230235
mkdir /tmp/ruby && cd /tmp/ruby
231-
curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz | tar xz
232-
cd ruby-2.1.1
236+
curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p451.tar.gz | tar xz
237+
cd ruby-2.0.0-p451
233238
./configure --disable-install-rdoc
234239
make
235240
make prefix=/usr/local install
@@ -244,7 +249,7 @@ installed with:
244249
which ruby
245250
# /usr/local/bin/ruby
246251
ruby -v
247-
# ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
252+
# ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-linux]
248253

249254
----------
250255

0 commit comments

Comments
 (0)