Note that there are some explanatory texts on larger screens.

plurals
  1. PORuby can't find gems .... even though all paths seem to be correct
    primarykey
    data
    text
    <p>Installed Ubuntu 11.10, removed Ruby1.8.7 completely, and then installed Ruby1.9.2-p290 from source, followed by rubygems1.8.10. Here's the script I ran for installation ...</p> <pre><code>#!/bin/bash #=============================================================================== # # FILE: install_ruby_1.9.sh # # USAGE: ./install_ruby_1.9.sh # # AUTHOR: Ryan Schulze (rs), ryan@dopefish.de # CREATED: 07/07/2011 11:59:37 AM CDT #=============================================================================== Version="1.9.2-p290" GZFile="ruby-${Version}.tar.gz" Download="http://ftp.ruby-lang.org/pub/ruby/1.9/${GZFile}" if [[ "$(id -u)" != "0" ]] then echo "You need root permission to execute this script" exit fi apt-get -q update apt-get -qy upgrade apt-get install -qy build-essential wget zlib1g-dev libssl-dev libffi-dev autoconf cd /usr/local/src/ test -e ${GZFile} || wget ${Download} tar -xzf ${GZFile} cd ruby-${Version} autoconf ./configure --with-ruby-version=${Version} --prefix=/usr --program-suffix=${Version} make make install mkdir -p /usr/lib/ruby/gems/${Version}/bin update-alternatives \ --install /usr/bin/ruby ruby /usr/bin/ruby${Version} $(echo ${Version//./}|cut -d- -f1) \ --slave /usr/share/man/man1/ruby.1.gz ruby.1.gz /usr/share/man/man1/ruby${Version}.1 \ --slave /usr/lib/ruby/gems/bin gem-bin /usr/lib/ruby/gems/${Version}/bin \ --slave /usr/bin/irb irb /usr/bin/irb${Version} \ --slave /usr/bin/gem gem /usr/bin/gem${Version} \ update-alternatives --config ruby update-alternatives --display gem &gt;/dev/null 2&gt;&amp;1 &amp;&amp; update-alternatives --remove-all gem </code></pre> <p>...</p> <p>The script ran perfectly, and ruby works fine .... except for rubygems (which was also installed from source):</p> <pre><code>$: irb irb(main):001:0&gt; require 'rubygems' =&gt; false </code></pre> <p>But, it points to the correct version:</p> <pre><code>$: which gem /usr/bin/gem $: file /usr/bin/gem /usr/bin/gem: symbolic link to `/etc/alternatives/gem' $: file /etc/alternatives/gem /etc/alternatives/gem: symbolic link to `/usr/bin/gem1.9.2-p290' </code></pre> <p>Also, here's the gem environment:</p> <pre><code>$: gem env RubyGems Environment: - RUBYGEMS VERSION: 1.8.10 - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-linux] - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.9.2-p290/bin/ - RUBY EXECUTABLE: /usr/bin/ruby1.9.2-p290 - EXECUTABLE DIRECTORY: /usr/lib/ruby/gems/1.9.2-p290/bin/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /usr/lib/ruby/gems/1.9.2-p290/bin/ - /home/rbanerjee/.gem/ruby/1.9.2-p290 - /usr/lib/ruby/gems/1.9.2-p290 - GEM CONFIGURATION: - :update_sources =&gt; true - :verbose =&gt; true - :benchmark =&gt; false - :backtrace =&gt; false - :bulk_threshold =&gt; 1000 - REMOTE SOURCES: - http://rubygems.org/ </code></pre> <hr> <p>I am at a loss as to what happened. Similar upgrades worked when, in another machine, I had gone from 1.8.7 to 1.9.1. I have tried providing all the details, making this a long question. Any help at all will be greatly appreciated.</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.
    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