Under the rvm on Ubuntu 10.04 and rails3 development environment set up ruby1.9.2

See the next installation of ubuntu on rvm articles, based on Ubuntu Server 10.04 use rvm ruby version management
1, update rvm

rvm update --head && rvm reload

2, install full version of ruby 1.9.2

rvm install 1.9.2

3, the establishment of gemset, storage rails3

rvm gemset create rails3.0

4, the default use of the gems 1.9.2 and rails3.0rc2

rvm 1.9.2@rails3.0 --default

5, the installation rails3.0, do not need to add sudo

gem install rails

6, test application to establish rails3

rails new blog
cd blog

Then we can in the project root directory Gemfile file to add required Gems, which by default includes rails and sqlite3-ruby, we retain the default settings, execute the following command to install:

bundle install

That we should only need to install the sqlite3-ruby, due to the lack sqlite3.h, so we need to install ubuntu under libsqlite3-dev package

sudo apt-get install libsqlite3-dev

7, start the application blank rails3

rails server

8, install jdk6, in preparation for the installation netbean
ubuntu 10.04 from official sources, after the removal of the sun's jdk, but we can source from the official partners to find sun-jdk, the command is as follows:

sudo apt-get install python-software-properties
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk

9, download and install Netbean 6.9.1

wget http://download.netbeans.org/netbeans/6.9.1/final/bundles/netbeans-6.9.1-ml-ruby-linux.sh

10, set Netbean environment settings under ruby ruby directory


Set gem directory

分类:Ruby 时间:2010-08-31 人气:246
blog comments powered by Disqus


  • Absolute path to the root directory of the project 2010-12-03

    The PHP system development, the introduction of the file is a very troublesome thing, because the document references will appear nested, so in this document by reference is correct, is not referenced in another document has come. php include files a

  • Ubuntu 10.10 Development Environment configuration (c) Install Sun JDK 2010-10-24

    And most, like Linux, the general default installation of Open JDK, the Internet if you just see the film entertainment Han, and that certainly do not bother, but If you want to develop JAVA, or honestly installation Sun JDK. Fortunately, in the futu

  • Manually install the Sun JDK in Ubuntu way 2010-12-29

    Manually install the Sun JDK in Ubuntu way In the latest Ubuntu version, the official source removed sun-java-jdk software, instead recommended open-jdk, so other methods need to manually install sun-java-jdk. View online information, there are basic

  • Manually install the Sun JDK in Ubuntu method 2010-12-29

    Manually install the Sun JDK in Ubuntu method In the latest Ubuntu version, the official source to remove the sun-java-jdk software, instead recommended to use open-jdk, so other methods need to manually install sun-java-jdk. View online information,

  • ubuntu10.10 install sun jdk and eclipse 2011-09-17

    One. Sun jdk installation and configuration 1 download jdk, I downloaded: jdk-6u13-linux-i586.bin (2) to set the executable permission sudo chmod + x jdk-6u13-linux-i586.bin 3 installation (I installed in / usr / java under the) Copied to the directo

  • VFS + SFTP root directory redirection 2010-06-09

    In order to project requirements SFTP helpless on the floor of the Apache in the VFS. Online introduction to the VFS few official DOC can be ignored. Found no SFTP access to the root directory where to begin debugging VFS. Finally resolved the issue

  • Sun JDK 6 update 20 to support the jvmstat Monitor 2010-10-21

    To know a JVM support jvmstat monitor what in the end, as long as the line with this script: import java.lang.management.ManagementFactory import sun.jvmstat.monitor.*; name = ManagementFactory.runtimeMXBean.name pid = name[0..<name.indexOf('@')] vmI

  • [Java performance analysis] Sun JDK introduces the basic performance analysis tools 2010-04-29

    Sun JDK version also released with a number of performance analysis tools, these tools are essentially based on JVM MangeAPI and Sun JVM Attach API implementation, so it can provide what kind of features can be found in JVM Manage API description. Le

  • [Java performance analysis] Sun JDK visual performance analysis tools introduced 2010-04-29

    In addition to some basic tools, together with the Sun JDK release some visual analysis tools, including in the JDK6.0.7 version of JConsole and the introduction of the Visual VM. 1. JConsole: JConsole can be said of all the features described above

  • How to install the Sun JDK 5 Ubuntu 10.04 2010-09-09

    Ubuntu 10.04 The Sun JDK out of the major software update database. If you want to install the Sun JDK 6 just follow how to add Ubuntu to the software update Parner Repository database , you can through the Ubuntu Software Center, apt-get or other Pa

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 闽ICP备15018612号

processed in 0.036 (s). 13 q(s)