ubuntu 10.10 installed under rvm ruby ​​1.9.2 rails3

In fact, many papers see, for example,
http://lanvige.iteye.com/blog/851836 pretty good. I recorded some of the situations I have about it.

1 RVM

Official website would have been very easy to install

$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )

Explain here:

Do not copy a boot into the $ symbol

b rmv installation dependent curl and git

could curl and git

sudo aptitude install curl git

directly loaded. But if you are fitted in accordance with the instructions RVM

Source will be compiled

# Install git
bash < <( curl -s https://rvm.beginrescueend.com/install/git )

# Install RVM
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

Will meet the build-essential and zlib1g zlib1g-dev issue is to advance the build environment installed.

sudo aptitude install zlib1g zlib1g-dev build-essential

2 RVM configuration and ruby

RVM installed, you can see the shows. Bahrain is also quite good tips. There are
a load RVM environment

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

Put. Bashrc or. Bash_profile

b According to rely on prompts to install the ruby

sudo aptitude install build-essential bison openssl libreadline5 libreadline5-dev curl git-core zlib1g zlib1g-dev libssl-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libmysqlclient-dev

c installed ruby ​​1.9.2 and set as the default

rvm install 1.9.2
rvm 1.9.2 --default

3. Install rails 3

gem install rails

Here a little note, rvm understanding, so do not add sudo. Because the design of RVM is based on the user's system can not be loaded to the next.

分类:Ruby 时间:2011-04-25 人气:93
分享到:
blog comments powered by Disqus

相关文章

  • Linux system shell scripts to determine the variable file directory: permission. Exists. Empty. Equal 2011-05-06

    Linux system shell scripts to determine the variable file directory: permission exists, null value, equal The first to write some of the basic syntax: 1, the string to determine str1 = str2 When two strings have the same content, the length of time i

  • Linux system shell scripts to determine the variable file directory: permissions exist. Null. Equal 2011-05-06

    Linux system shell scripts to determine the variable file directory: permission exists, null value, equal First write the basic syntax: 1, the string to determine the str1 = str2 When two strings have the same content, the length of time is true str1

  • Ruby set up its own blog system (toto + heroku + free domain name) 2010-06-21

    Have their own blog system, first of all have their own space Heroku the famous Ruby on Rails development and hosting services provider, the website is to give software developers to provide a better web hosting services, has chosen ruby on rails, be

  • Slackware startup scripts and the difference between System V startup scripts 2011-09-07

    Slackware version: Slackware 7.0 and above Slackware uses BSD-style init script, and many other distributions use System V style init scripts. SysV and BSD scripts are able to make people read, that they are shell scripts, not compiled program. The m

  • GitHub - Rails-based Git repository hosting 2010-11-15

    Git is a distributed version control system written originally by Linus Torvalds, Linux kernel code used for the management. In the introduction, Git in other projects also achieved great success, especially in the Ruby community. Present, including

  • How to Install Xcode, Homebrew, Git, RVM, Ruby ... 2013-09-03

    This tutorial was last updated on June 27, 2013 After following many outdated and incomplete instructions for setting up a web development environment on a Mac (back in March 2012), and spending a lot of time finding solutions to the problems I encou

  • Ruby / JRuby For Fun (1) 2010-05-28

    Program For fun, I am afraid this is the Ruby language, a very high rating, and previously used in the final project of this language, deeply fascinated by it, and later to the current company, while using only PHP development server end process, C #

  • Ruby GUI Programming 2010-06-08

    Ruby bindings more mature GUI libraries have FXRuby, Ruby-GNOME2, RubyCocoa, wxRuby. FXRuby wxRuby is an open source ruby interface development package. It provides the wxWidgets cross-platform C + + interface framework for Ruby support. wxWidgets is

  • RailsCasts Download the Ruby code bulk 2011-04-23

    Long-awaited Rails3 out, also began to learn that, from the Internet found a good tutorial http://railscasts.com/episodes , be able to download Unfortunately 10 per page display only and can not batch download, in the case that there is All Episodes

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

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

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

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