Build the UbuntuRails development environment and use NetBean

Source: Internet
Author: User
Tags image processing library
1. First, modify the Ubuntu software source, preferably mainserver. System = & gt; system Management = & gt; software source (Chinese source downloads will slow down) 2. sudoapt-getupdate (update download source) 3. install the ssh service to remotely connect to Ubuntu without installing the ssh service by default.

1. First, modify the Ubuntu software source, preferably the main server.

System => system Management => Software source (Chinese source downloads will slow down)

2. sudo apt-get update (update download source)

3. Install the ssh service for remote connection

The ssh service is not installed in Ubuntu by default, so you need:

Sudo apt-get install openssh-server

After installation, start the service

/Etc/init. d/ssh start # start | resart | stop

4. Install jdk

Sudo apt-get install sun-java6-jdk

There is a protocol for you to accept during the installation process, ctrl + f Select OK, and then press Enter!

5. Download and install netbeans

Download the latest version on the official website.

Sudo sh netbeans. sh

6. Install ruby

Sudo apt-get install ruby

7. Install gem
Sudo apt-get install rubygems
Gem update -- system

If the update fails, go to www.rubyforge.org and download the latest rubygemsXXXX. gem.
Run sudo gem install rubygemsXXXX. gem in the download directory.
Cd/var/lib/gems/1.8/gems/rubygems-updateXXXXXX
Sudo ruby setup. rb
Sudo rm/usr/bin/gem
Sudo ln-s/usr/bin/gem1.8/usr/bin/gem
Sudo ln-s/usr/bin/irb1.8/usr/bin/irb

There is also an automatic update method:
$ Sudo gem install rubygems-update
$ Sudo update_rubygems

So far, the gem update has been completed.

8. sudo gem install rake
Sudo gem install rails
Sudo apt-get install ruby1.8-dev
#### Sudo apt-get install libmysql-ruby1.8
#### Sudo apt-get install mysql-client-5.0
Sudo apt-get install libmysqlclient15-dev
Sudo gem install mysql
To install the image processing library rmagick, refer to this blog article about this installation.

9. Use the sqlite3 database for the development environment. The debugging is very fast.
Sudo apt-get install ruby1.8-dev libsqlite3-dev
Sudo gem install sqlite3-ruby

10. Install the quick debugger, which is very nice to use in netbeans.
Sudo gem install linecache
Sudo gem install ruby-debug-base
Sudo gem install ruby-debug-ide

11. Required for BDD
Sudo gem install rspec
Sudo gem install rspec-rails

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.