Last active
August 29, 2015 14:18
-
-
Save olea/cb941ab5f7fbbaa2dc22 to your computer and use it in GitHub Desktop.
Installing jekyll in CentOS 5:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installing jekyll in CentOS 5: | |
$ cat /etc/redhat-release | |
CentOS release 5.8 (Final) | |
$ sudo yum remove ruby ruby-devel ruby-irb rubygems ruby-rdoc # remove all system's ruby | |
$ wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p330.tar.gz # the most recent version I could compile in Centos 5.8 | |
$ tar zxvf ruby-1.9.2-p330.tar.gz | |
$ cd ruby-1.9.2-p330.tar.gz | |
$ ./configure --enable-pthread --prefix=$HOME/bin/ruby-1.9.2/ # I want to install it in ~/bin/ | |
$ make ; make install | |
$ ln -s ~/bin/ruby-1.9.2/bin/ruby ~/bin/ruby | |
$ ln -s ~/bin/ruby-1.9.2/bin/gem ~/bin/gem | |
$ gem install jekyll -v 1.5.1 # 1.5.1 is the most recent version of listen I could compile (with ruby 1.9.2) | |
$ ln -s ~/bin/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/jekyll-1.5.1/bin/jekyll ~/bin/jekyll | |
$ jekyll -v | |
jekyll 1.5.1 | |
$ ~/bin/jekyll serve # now it should work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment