If you are installing Ruby, Rubygems, Jekyll and Node.js on your EC2 instance, it would be best to use RVM (Ruby Version Manager)
$sudo curl -sSL https://get.rvm.io | bash -s stable --ruby=2.1.1
$rvm install 2.1.1
$rvm use 2.1.1
Once you have Ruby installed, you can install Rubygems using rvm
$sudo rvm rubygems latest
After you have install rubygems, you can use "gem install" to install Jekyll
$sudo gem install jekyll
To test whether jekyll was installed successfully, type $jekyll in the terminal to see if you get a help menu.
Next to install Node.js, you can run your OS package manager
$sudo yum install -y nodejs npm
and after installation type $node should take you into node's shell.
$sudo curl -sSL https://get.rvm.io | bash -s stable --ruby=2.1.1
$rvm install 2.1.1
$rvm use 2.1.1
Once you have Ruby installed, you can install Rubygems using rvm
$sudo rvm rubygems latest
After you have install rubygems, you can use "gem install" to install Jekyll
$sudo gem install jekyll
To test whether jekyll was installed successfully, type $jekyll in the terminal to see if you get a help menu.
Next to install Node.js, you can run your OS package manager
$sudo yum install -y nodejs npm
and after installation type $node should take you into node's shell.
No comments:
Post a Comment