Created
December 3, 2012 17:33
-
-
Save Sankame/4196588 to your computer and use it in GitHub Desktop.
ruby, gems and jekyll install memo
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
###check if ruby is installed? | |
rpm -q ruby | |
###install ruby | |
yum install ruby ruby-devel rdoc irb | |
###install ruby gems | |
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz | |
tar xzf rubygems-1.3.5.tgz | |
cd rubygems-1.3.5 | |
ruby setup.rb | |
gem -v | |
###install jekyll | |
gem install jekyll | |
###install failed with the following message. | |
buffer overflow detected | |
###I changed memory of vmware player from 192MB to 256MB. | |
###install ruby again *1 | |
cd /etc/yum.repos.d/ | |
wget http://rubyworks.rubyforge.org/RubyWorks.repo | |
yum install ruby | |
[root@vm yum.repos.d]# ruby -v | |
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-linux] | |
[root@vm yum.repos.d]# gem install jekyll | |
ERROR: Error installing jekyll: | |
liquid requires RubyGems version >= 1.3.7 | |
###go to rubyforge and check the url of rubygems that you wanna get. | |
http://rubyforge.org/frs/?group_id=126 | |
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.7.tgz | |
cd rubygems-1.3.7 | |
ruby setup.rb | |
###install jekyll and succeeded. | |
gem install jekyll | |
[root@vm rubygems-1.3.7]# jekyll -v | |
Jekyll 0.11.2 | |
[root@vm JEKYLL_HOME]# cd /var/www/html/jekyll | |
$ git clone http://github.com/plusjade/jekyll-bootstrap.git JEKYLL_HOME | |
###I tried to start up jekyll, but it failed. | |
[root@vm ~]# jekyll --server --auto | |
WARNING: Could not read configuration. Using defaults (and options). | |
No such file or directory - /root/_config.yml | |
Auto-regenerating enabled: /root -> /root/_site | |
### I read the above message and realized that I have to move to the directory | |
### where the config file is located. | |
[root@vm JEKYLL_HOME]# cd /var/www/html/jekyll/JEKYLL_HOME | |
[root@vm JEKYLL_HOME]# jekyll --server --auto | |
Configuration from /var/www/html/jekyll/JEKYLL_HOME/_config.yml | |
Auto-regenerating enabled: /var/www/html/jekyll/JEKYLL_HOME -> /var/www/html/jekyll/JEKYLL_HOME/_site | |
###this is a reference | |
### *1 | |
http://help.papertrailapp.com/discussions/questions/114-buffer-overflow-detected |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment