我一直在根据edX在线课程的指令安装Ruby on Rails.
以下是终端命令列表,以及相应的输出:
$ sudo apt-get install ruby1.9.1
Run Code Online (Sandbox Code Playgroud)
安装成功
$ wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.24.tgz
$ tar zxvf ruby-1.8.24.tgz
$ cd ruby-1..8.24
$ sudo ruby setup.rb
RubyGems 1.8.24 installed
== 1.8.24 / 2012-04-27
* 1 bug fix:
* Install the .pem files properly. Fixes #320
* Remove OpenSSL dependency from the http code path
------------------------------------------------------------------------------
RubyGems installed the following executables:
/usr/bin/gem1.9.1
Run Code Online (Sandbox Code Playgroud)
到目前为止,一切看起来都很好,但我试图安装rails并失败:
$ sudo gem install rails
Fetching: i18n-0.6.1.gem (100%)
Fetching: multi_json-1.3.6.gem (100%)
Fetching: activesupport-3.2.8.gem (100%)
Fetching: builder-3.0.3.gem (100%)
Fetching: activemodel-3.2.8.gem (100%) …Run Code Online (Sandbox Code Playgroud)