Showing posts with label installation. Show all posts
Showing posts with label installation. Show all posts

Thursday, March 15, 2012

Installing ruby on rails (ruby version 1.9.3, rails version 3.2.2) on Ubuntu Lucid LTS 10.04

The post shows a step-by-step installation of the Ruby on Rails on Ubuntu 10.04 LTS.

1. install build essential, github and 

sudo apt-get install build-essential

2. install rvm (which includes ruby 1.9.3 and gem 1.8.19)

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source ~/.bashrc
rvm requirement -- install output required libraries by copy and paste the output text
rvm install 1.9.3  -- it takes a while


3. install rails


copy and paste the text below at the end of ~/.bashrc: 
[[-s "$HOME/.rvm/scripts/rvm"]] && . "$HOME/.rvm/scripts/rvm" 

source $HOME/.bashrc

check the successful installation of rvm:
type rvm | head -1
output should be 'rvm is a function'

gem install rails --include-dependencies


Congratulations! You have successfully installed Ruby on Rails!

Wednesday, September 7, 2011

How To Install Python + Django + Aptana Studio on Windows 7

In this article, I will explain how to get Python, Django, and Aptana Studio running smoothly on windows.

1. Install Python


  •  Go to http://www.python.org/download/ and download the Python. I am currently using the 2.7 version. Note that the latest version may not work with Windows yet.
  •  Execute and install what you’ve just downloaded with the default options
  • open command window and type 'python' to test if it is successfully installed. If command not recognized, follow these steps to add the path in Windows 7. Start -> Control Panel -> System and Security->Systems-> Advanced system settings->Environment Variables-> System Variables -> PATH->modify PATH by appending ;C:\Python27;C:\Python27\Scripts”. Also make sure you have a semicolon (;) before what you write.
2. Installing Django
  • Go to http://www.djangoproject.com/download/ and download the version that best suits you. Version 1.3 works fine for me.
  • Extract the files to a folder. WinZip will do the job. Please REMEMBER THE FOLDER WHERE YOU EXTRACTED DJANGO.
  • Open a command prompt (Start > Run > Type in “cmd” and press OK). In the black window that is going to show up, type in cd “[directory_of_django]“. For example: cd "C:\www\python\Django-1.3″. 
  • setup.py install
3. Installing aptana studio
Aptana studio is a version of eclipse that already comes with HTML and CSS editors, and installing PyDev in it is really easy.
  • Go to http://www.aptana.org/studio/download and download the standalone full installer version.
  • go to Window > Preferences > PyDev > Interpreter – Python and click “Auto-Config”
  • Click OK on everything else
4. Installing MySQL for Python
If you are going to use django with MySQL, you will probably need to perform those steps:
  • Go to http://www.codegood.com/downloads and download
  • MySQL-python-1.2.2.win32-py2.6.exe, if you have a 32 bit OS or MySQL-python-1.2.2.win-amd64-py2.6.exe, if you have a 64 bit OS. In doubt, download the first one.
  • Install it.
Have fun!