Agaric Design Collective

Setup an Ubuntu Development Environment the Agaric Way

By Gus
on 19 Feb
4 comments

Description

Use the following commands to set up a development environment on Ubuntu (8.10).

1. Install GIT Core

sudo aptitude install git-core

2. Install RubyGems

sudo aptitude install rubygems

3. Install Rake

sudo aptitude install rake

4. Install Capistrano

sudo gem install capistrano

 

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'
....
...
...

Posted by Dan Hakimzadeh on Fri, 2009-02-20 17:10
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

Posted by Benjamin Melançon on Thu, 2009-03-19 13:25
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

Posted by Benjamin Melançon on Sat, 2009-07-11 20:38
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

Posted by Benjamin Melançon on Thu, 2010-02-11 17:28
Post new comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <small> <pre> <strike> <sub> <sup> <kbd> <s>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.