User login

Setup an Ubuntu Development Environment the Agaric Way

Update: See Installing Drubuntu

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

    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

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.