- Install Java
Open the synaptic package manager, enter your admin password at the prompt.
In the Quick search box type "java jdk", and then select the latest openjdk version (I've chosen 6).
Right click, and click "Mark for Installation".
Click apply.
You can test if java is installed by opening a terminal (Applications -> Accessories -> Terminal), and typing "java", and "javac". If you do not get a "command not recognised" type of response, then it's been successfully installed.
- First of all you're going to need to install Ruby. We've already installed something via the synaptic package manager, now let's try the same thing via terminal:
Type in a terminal (run a command then run the next):
sudo apt-get install ruby
sudo apt-get install rubygems sudo gem install google-appengine
Type the following into the terminal:
appcfg.rb
If that command didn't show you a whole heap of options, then you're going to need to update your path variable to tell the system where the appcfg.rb file is:
Open the Terminal (Applications -> Accessories -> Terminal)
Type the following command to open the .bashrc file in the gedit text editor:
gedit ~/.bashrcAdd the following lines at the bottom of the file (using the path to the jruby bin folder, instead of "/new_path" - mine was /var/lib/gems/1.8/bin - it might also be in your home folder in a hidden ".gem" folder. you can always issue command "gem environment" to see where gems are installed to):
PATH=$PATH:/new_path export PATHThen, either log out and back it or type the following command in a terminal:
source ~/.bashrc
Follow the rest of the tutorial at http://code.google.com/p/appengine-jruby/wiki/CreateApp to create a working hello world app on AppEngine! (your webpage should say "hello" if you are successful)
No comments:
Post a Comment