Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andion/341489 to your computer and use it in GitHub Desktop.
Save andion/341489 to your computer and use it in GitHub Desktop.
rvm debug
rvm 0.1.23 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]
system:
uname: "Linux nils-laptop 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 04:38:19 UTC 2010 x86_64 GNU/Linux"
shell: "bash"
version: "4.0.33(1)-release"
ruby:
interpreter: "ruby"
version: "1.8.7"
date: "2009-06-12"
platform: "x86_64-linux"
patchlevel: "2009-06-12 patchlevel 174"
full_version: "ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]"
homes:
gem: "'not set'"
ruby: "'not set'"
binaries:
ruby: "/usr/bin/ruby"
irb: "/usr/bin/irb"
gem: "/usr/bin/gem"
rake: "/usr/bin/rake"
environment:
GEM_HOME: ""
GEM_PATH: ""
BUNDLE_PATH: ""
MY_RUBY_HOME: ""
IRBRC: ""
PATH:
/home/nils/Software/lejos_nxj/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
uname -a: Linux nils-laptop 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 04:38:19 UTC 2010 x86_64 GNU/Linux
permissions: /home/nils/.rvm:
insgesamt 68
drwxr-xr-x 14 nils nils 4096 2010-03-21 08:59 .
drwx------ 62 nils nils 4096 2010-03-21 14:52 ..
drwxr-xr-x 2 nils nils 4096 2010-03-21 09:18 archives
drwxr-xr-x 2 nils nils 4096 2010-03-21 14:40 bin
drwxr-xr-x 2 nils nils 4096 2010-03-21 09:05 config
drwxr-xr-x 2 nils nils 4096 2010-03-21 08:59 examples
drwxr-xr-x 6 nils nils 4096 2010-03-21 09:18 gems
drwxr-xr-x 2 nils nils 4096 2010-03-21 08:59 hooks
drwxr-xr-x 3 nils nils 4096 2010-03-21 08:59 lib
-rw-r--r-- 1 nils nils 1038 2010-03-21 14:40 LICENCE
drwxr-xr-x 5 nils nils 4096 2010-03-21 09:18 log
-rw-r--r-- 1 nils nils 4214 2010-03-21 14:40 README
drwxr-xr-x 4 nils nils 4096 2010-03-21 10:19 rubies
drwxr-xr-x 2 nils nils 4096 2010-03-21 14:40 scripts
drwxr-xr-x 5 nils nils 4096 2010-03-21 10:16 src
drwxr-xr-x 2 nils nils 4096 2010-03-21 08:59 tmp
/home/nils/.rvm/rubies:
insgesamt 16
drwxr-xr-x 4 nils nils 4096 2010-03-21 10:19 .
drwxr-xr-x 14 nils nils 4096 2010-03-21 08:59 ..
drwxr-xr-x 8 nils nils 4096 2010-03-21 09:19 jruby-1.4.0
drwxr-xr-x 6 nils nils 4096 2010-03-21 10:21 ruby-1.9.1-p378
/home/nils/.rvm/config/system (filtered):
unset RUBY_VERSION
unset GEM_HOME
unset GEM_PATH
unset BUNDLE_PATH
unset MY_RUBY_HOME
/home/nils/.rvm/config/db (filtered):
niceness=0
ruby_repo_url=http://svn.ruby-lang.org/repos/ruby
ruby_configure=--enable-shared
interpreter=ruby
ruby_version=1.8.6
ruby_patchlevel=383
rubygems_version=1.3.6
rubygems_1.3.5_url=http://rubyforge.org/frs/download.php/60718
rubygems_1.3.6_url=http://rubyforge.org/frs/download.php/69365
rbx_version=1.0.0
rbx_patch_level=rc3
rbx_url=http://asset.rubini.us/rubinius-1.0.0-rc3-20100216.tar.gz
ree_version=1.8.7
ree_1.8.6_patch_level=20090610
ree_1.8.6_url=http://rubyforge.org/frs/download.php/58677
ree_1.8.6_repo_url=git://github.com/FooBarWidget/rubyenterpriseedition.git
ree_1.8.7_url=http://rubyforge.org/frs/download.php/68719
ree_1.8.7_repo_url=git://github.com/FooBarWidget/rubyenterpriseedition187.git
ree_1.8.7_patch_level=2010.01
ruby_1.9.1_patch_level=378
ruby_1.9.2_patch_level=preview1
ruby_1.8.5_patch_level=231
ruby_1.8.6_patch_level=399
ruby_1.8.7_patch_level=249
jruby_version=1.4.0
jruby_repo_url=git://github.com/jruby/jruby.git
jruby_url=http://jruby.kenai.com/downloads
macruby_version=0.5
macruby_url=http://www.macruby.org/files
macruby_repo_url=git://git.macruby.org/macruby/MacRuby.git
macruby_nightly_url=http://macruby.icoretech.org/latest/macruby_nightly-latest.pkg
maglev_version=23082
maglev_url=http://glass-downloads.gemstone.com/maglev
maglev_repo_url=git://github.com/MagLev/maglev.git
rubinius_repo_url=git://github.com/evanphx/rubinius.git
shyouhei_repo_url=git://github.com/shyouhei/ruby.git
ironruby_version=1.0-rc2
ironruby_repo_url=git://github.com/ironruby/ironruby.git
ironruby_url=http://github.com/ironruby/ironruby/tarball/
gem sources:
http://gems.rubyforge.org/
/home/nils/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb/completion.rb:9:in `require': no such file to load -- readline (LoadError)
from /home/nils/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/irb/completion.rb:9:in `<top (required)>'
from /home/nils/.rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta/lib/rails/commands/console.rb:3:in `require'
from /home/nils/.rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta/lib/rails/commands/console.rb:3:in `<top (required)>'
from /home/nils/.rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta/lib/rails/commands.rb:32:in `require'
from /home/nils/.rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta/lib/rails/commands.rb:32:in `<top (required)>'
from /home/nils/RubyAndRailsProjects/RailsProjects/Rails3/topscore/script/rails:10:in `require'
from /home/nils/RubyAndRailsProjects/RailsProjects/Rails3/topscore/script/rails:10:in `<main>'
Solution (for me):
$ rvm uninstall 1.9.1
$ rvm install 1.9.1 --with-readline-dir=$rvm_path/.rvm/usr
You still are not able to install readline with rvm...:
$ rvm package install readline
Package 'readline' is unknown.
Usage: 'rvm package {install,uninstall} {openssl,zlib,readline,iconv,ncurses}'
But 'rails console' works now
rvm --trace package install readline
--trace package install readline
rvm 0.1.23 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]
+ [[ -z '' ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ 3 -gt 0 ]]
+ rvm_token=package
+ shift
+ case "$rvm_token" in
+ rvm_action=package
+ rvm_ruby_args='install readline'
+ rvm_parse_break=1
+ [[ -z package ]]
+ [[ ! -z 1 ]]
+ unset rvm_parse_break
+ break
+ [[ 2 -gt 0 ]]
+ shift
+ [[ 1 -gt 0 ]]
+ shift
+ [[ 0 -gt 0 ]]
+ [[ ! -z '' ]]
+ result=0
+ case "$rvm_action" in
+ /home/nils/.rvm/scripts/package install readline
+ export rvm_trace_flag
++ echo install readline
++ awk '{print $1}'
+ action=install
++ echo install readline
++ awk '{print $2}'
+ library=readline
++ echo 'install readline'
++ awk '{$1="" ; $2="" ; print}'
++ sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
+ args=
+ [[ ! -z readline ]]
+ is_a_function readline
+ type readline
+ head -n 1
+ grep -q function
+ [[ ! -z readline ]]
+ /home/nils/.rvm/scripts/log error 'Package '\''readline'\'' is unknown.'
Package 'readline' is unknown.
+ /home/nils/.rvm/scripts/log info 'Usage: '\''rvm package {install,uninstall} {openssl,zlib,readline,iconv,ncurses}'\'''
Usage: 'rvm package {install,uninstall} {openssl,zlib,readline,iconv,ncurses}'
+ exit 1
+ rm -f '/home/nils/.rvm/tmp/3535*'
+ exit
+ result=1
+ [[ ! -z '' ]]
+ [[ ! -z 1 ]]
+ set +x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment