Install Ruby
while installation of ruby you may suffer from some errors likebundle-command-not-found-windows-x64
Following the steps below carefully will be answer to these errors
- Go to http://rubyinstaller.org/downloads/
- In RubyInstallers section, click a version to download.
- For example, Ruby 2.0.0-p451 (x64) is the Windows installer for Ruby 2.0.0 x64 on 64-bit machines. These are installers that i am going to use.
- Complete the installtion by going through installer that you have downloaded
- At time of installing Keep the default directory to C:\Ruby200-x64 if possible, please note installer advises that 'Please avoid any folder name that contains spaces (e.g. My Ruby).'
- Markt he checkbox saying "Add Ruby executables to your PATH" , so PATH will be updated automatically to avoid headaches.
- Open up a command prompt window by pressing ctrl + r from your keyword and type in cmd and hit enter this will open command prompt and type in the following command, to see if Ruby has been install correctly or not.
Ruby Installation - Installing jekyll |
ruby -v
Example output:
If ruby is installed correctly it will give you output as -
ruby 2.0.0p451 (2014-02-24) [x64-mingw32]
Install DevKit
- The DevKit is a toolkit that makes it easy to build and use native C/C++ extensions for Ruby on Windows.
- Now first Go to http://rubyinstaller.org/downloads/ again.
- Download “DEVELOPMENT KIT” installer that matches the Windows architecture and the Ruby version just installed. For instance, DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe is for 64-bit Windows with Ruby 2.0.0 x64. These are versions that i am using
- Here is a list about how to choose the correct DevKit version:
- Ruby 1.8.6 to 1.9.3: DevKit tdm-32-4.5.2
- Ruby 2.0.0: DevKit mingw64-32-4.7.2
- Ruby 2.0.0 x64: DevKit mingw64-64-4.7.2
- Run the installer and extract it to a folder, e.g. C:\DevKit.
- Initialize and create config.yml file. Type in the following commands in command Prompt window:
cd “C:\DevKit”
ruby dk.rb init
notepad config.yml
- In opened notepad window, add a new line - C:\Ruby200-x64 at the end, SAVEand close.
- Back to the Command Prompt, review (optional) and install.
ruby dk.rb review
ruby dk.rb install
Install Jekyll
- Verify that gem has been installed properly
gem -v
Example output:
2.0.14
Install Jekyll gem
gem install jekyll
Install Python
Here is link on my blog about its installation or you can follow steps below
Installing Python and Easy_install
Installing Python and Easy_install
- First of all Go to http://www.python.org/download/
- Download appropriate version of Python windows installer, e.g. Python 2.7.6 Windows Installer.I prefer to install python 2 as currently python 3 is creating some problem .
Install
- For Python Installation Set the installation directory (e.g. C:\Python27) to PATH. (How to? See Troubleshooting #1)
- verify Python installation
python --version
Example output:
- If your installation is done properly then it will show message as below .
Python 2.7.6
Install ‘Easy Install’
- Visit https://pypi.python.org/pypi/setuptools#installation-instructions for detailed installation instructions.
- For Windows 7 machines, download ez_setup.py and SAVE it, for example, to C:\. Then run it using Python in a command prompt window:
python “C:\ez_setup.py”
- Add ‘Python Scripts’ directory (e.g. C:\Python27\Scripts) to PATH.
Install Pygments
- Verify easy_install is installed properly
easy_install --version
- Example output:
Install Pygments using “easy_install”
easy_install Pygments
Start Jekyll
- Following the commands on official Jekyll Quick-start guide, a new Jekyll blog should be created and can be browsed at localhost:4000.
jekyll new myblog
cd myblog
jekyll serve
- Now Everything is done Everytime you want to Start you already built website or new website with jekyll you just start your command prompt navigate to your website's root directory like
cd mywebsite
- Then type in :- 'jekyll serve' and that's it yout server will be started in few seconds and after that you can navigate to your browser with url as -