Home ›
Setup an Ubuntu Development Environment the Agaric WaySetup an Ubuntu Development Environment the Agaric Way
Submitted by Gus Domian on February 19, 2009 - 3:01pm
Update: See Installing Drubuntu
Use the following commands to set up a development environment on Ubuntu (8.10).
- Install GIT Core
sudo aptitude install git-core
- Install RubyGems
sudo aptitude install rubygems
- Install Rake
sudo aptitude install rake
- Install Capistrano
sudo gem install capistrano
Resolution
Comments
some notes
to alias capistrano ->
alias cap=/var/lib/gems/1.8/bin/cap
or
export PATH=$PATH:/var/lib/gems/1.8/bin/
either can be added to bashrc, the 2nd will find every gem you will ever install
I also had to add the package 'libopenssl-ruby' because I was getting errors that look like this
/themes/digio$ cap agaric:update
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- openssl (LoadError)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /var/lib/gems/1.8/gems/net-ssh-2.0.10/lib/net/ssh/transport/openssl.rb:1
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
....
...
...
So if you get "cap: command not found"
Make sure you actually did both step 4 (and didn't get distracted) and Dan's addition, the export PATH one is the way to go.
After the addition to .bashrc, run the command below to refresh:
source ~/.bashrc
As i have to do this more, i make it more of a script
Snapshot of the current script:
# Setting up your Ubuntu development environment the Agaric way.
sudo apt-get install git-core gitk git-gui git-doc curl
sudo aptitude install libopenssl-ruby rubygems
sudo aptitude install rake
sudo gem install capistrano
echo 'export PATH=$PATH:/var/lib/gems/1.8/bin/' >> ~/.bashrc
source ~/.bashrc
# See instructions for setting up Drush on data.
# lynx ubuntu
sudo apt-get install lynx-cur
# Text/code editor
sudo apt-get install vim-gnome
# xdebug (configuration needed)
sudo apt-get install php5-xdebug
Now using Vlad instead of Capistrano-- easier
sudo apt-get install apache2
sudo apt-get install php5 libapache2-mod-php5
sudo apt-get install mysql-server
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
sudo apt-get install git-core gitk git-gui git-doc curl
sudo aptitude install libopenssl-ruby rubygems
sudo aptitude install rake
lynx ubuntu
sudo apt-get install lynx-cur
Text/code editor
sudo apt-get install vim-gnome
xdebug (configuration needed)
sudo apt-get install php5-xdebug
sudo enmod rewrite
Post new comment