Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to install Ruby on Rails 3.0 on Ubuntu 10.10?
    primarykey
    data
    text
    <p>After installing Ruby and Ruby Gems:</p> <pre><code>$ sudo apt-get install ruby rubygems ... $ ruby -v ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux] $ gem -v 1.3.7 </code></pre> <p>If I try to install Rails I get an error, and even though it seems to be the documentation only, <code>rails</code> isn't installed:</p> <pre><code>$ sudo gem install rails ... Successfully installed rails-3.0.1 24 gems installed ... Installing ri documentation for builder-2.1.2... ERROR: While generating documentation for builder-2.1.2 ... MESSAGE: Unhandled special: Special: type=17, text="&lt;!-- HI --&gt;" ... RDOC args: --ri --op /var/lib/gems/1.8/doc/builder-2.1.2/ri --title Builder -- Easy XML Building --main README --line-numbers --quiet lib CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation (continuing with the rest of the installation) ... Installing ri documentation for rails-3.0.1... File not found: lib $ rails -v The program 'rails' is currently not installed. You can install it by typing: sudo apt-get install rails </code></pre> <p>Ubuntu repositories only have Rails 2.3.5 so that isn't an option.</p> <p>How do I get Rails to install properly?</p> <p><strong>Update:</strong> I tried the following, no error this time, but still no success: </p> <pre><code>$ sudo gem install rails --no-rdoc --no-ri Successfully installed rails-3.0.1 1 gem installed $ rails -v The program 'rails' is currently not installed... </code></pre> <p><strong>Update 2:</strong> So, thanks to Maran and Jörg, I now know the problem is not that <code>rails</code> isn't installed, but it's not added to the <code>PATH</code>. This can be fixed by adding the following to <code>~/.bashrc</code>:</p> <pre><code>export PATH=/var/lib/gems/1.8/bin:$PATH </code></pre> <p>That raises a further question: What should have added that to the <code>PATH</code>? Presumably the <code>apt-get install rubygems</code>? And what else may be broken?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload