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

分类:Ruby 2010-08-31 来源:CodeWeblog.com 人气:214

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

/home/xxx/.rvm/rubies/ruby-1.9.2-p0/bin/ruby

Set gem directory

/home/xxx/.rvm/gems/ruby-1.9.2-p0@rails3.0
分享到:
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

  • Ubuntu 10.04 set up under the SUN JAVA development environment 2010-06-09

    The following is installation and configuration steps Install open-jdk-6, sudo apt-get install open-jdk-6 (I do not know why not to install the java and javac commands can not run!!!) Oracle official website to download jdk-6u20-linux-i586.bin file T

  • 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

  • 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,

  • 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('@')]

  • IBM JDK and the sun jdk difference 2010-04-19

    IBM's virtual machine in the official guidance document clearly states that prohibit the virtual machine is set to equal the maximum and minimum, otherwise it will result in the following two consequences <1> greatly increase the garbage collect

  • [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. Let

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

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

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.393 (s). 12 q(s)