OK, I've installed RVM. I tested using:
Type rvm | Head-n1
Output: "rvm is a function". So far so good.
Then I tried:
rvm install 1.8.7-p302
All went smoothly, but then: < / P>
$ ruby -v program 'Ruby' is not currently installed. You can install it by typing it: sudo apt-get ruby
RVM says that all installations were fine ... it is called getting RVM information :
$ Rvm info ruby-1.8.7-p302: system: uname: "linux pi-ubuntu 2.6.32-24-generic-pae # 43- Ubuntu SMP Guru 16 September 15: 30:27 UTC 2010 i686 GNU / Linux "Bash:" / bin / bash = & gt; GNU Bash, version 4.1.5 (1) -Relize (i486-pc-linux-gnu) "zsh:" = & not installed "Rvm: version:" rvm 1.0.11 Wayne E. Seguin (Vevenieguine@gmail.com) [http://rvm.beginrescueend.com/] "Ruby: Interpreter: "" Version: "" Date: "" forum: "" Patchwell: "" full_version: "" homes: gem: "/home/pi/.rvm/gems/ruby-1.8.7-p302" Ruby: "/ home /pi/.rvm/rubies/ruby-1.8.7-p302 "Binary: Ruby:" "Irb:" "GEM:" "Rack:" "Environment: Pat:" / Home / PI / Bin: / Home / PI / Program / Zed Framework -1 10.6 / bin: /home/pi/Programs/apache-maven-2.2.1/bin:/ usr/ local / sbin: / usr / local / bin: / usr / sbin: / usr / bin : / Sbin: / bin: / Usr / Games: /home/pi/.rvm/bin:/home/pi/.rvm/bin "GEM_HOME:" /home/pi/.rvm/gems/ruby-1.8.7 -p302 "GEM_PATH:" /home/pi/.rvm/gems/ruby-1.8.7-p302:/home/pi/.rvm/gems/ruby-1.8.7-p302@global "BUNDLE_PATH:" / home / Pi / .rvm / gems /ruby-1.8.7- p302 "MY_RUBY_HOME:" /home/pi/.rvm/rubies/ruby-1.8.7-p302 "IRBR Minister: "/home/pi/.rvm/rubies/ruby-1.8.7-p302 /. RBC "RubyPT:" "gemset:" "
Also fails to try to set the default Ruby:
$ rvm 1.8.7 - -default ruby ruby -1.8.7-P302 is not installed. 'Rvm Install ruby-1.8.7-p302'
How can I fix this? Any help appreciated
Thanks guys uses RVM Rabbi -1.8.7: Warning: Ruby Ruby-1.8.7-P302 is not installed. Install to do the 'rvm install ruby- 1.8.7-p302 '
Information Added:
$ rvm list rvm rubies $ rvm ruby-1.8.7 Use Warning: Ruby Ruby-1.8.7-P 302 is not installed. What To Do To Install: 'Rvm installation ruby-1.8.7-p302'
About my .profile, I did not use it, instead I used to bashrc. It seems like how Happens:
# If the interactive is not running, do not do anything # [-s "$ PS1"] & amp; if [[-n "$ PS1"] ] Return; Then # ... all original content .... Fi [["$ HOME / .rvm / scripts / Rvm "]] & amp; Amp; The source "$ HOME / .rvm / scripts / rvm"
OK, at this point I tried to proceed:
[[- " $ HOME / .rvm / scripts / rvm "]] & amp; Amp; Source "$ HOME / .rvm / scripts / rvm"
No fate on my .profile.
In addition, I am reinstalling a Ruby, once again all have gone easy:
$ rvm install 1.8.7-p302 / home /pi/.rvm/rubies/ Ruby-1.8.7-p302, depending on your CPU (s) it may take some time ... ruby-1.8.7-p302 - #fetching ruby-1.8.7-p302 - #downloading ruby-1.8.7-p302, depending on your connection, this may take some time ...% Total% Get% Xferd Avg Speed Time Time Time Current Dload Upload Total Expenditure Left Speed 100 4086k 100 4086k 0 0 42600 0 0:38:38 0:01:38 - -: -: - 44324 Ruby-1.8.7-P302 - # by going to Ruby-1.87-P302 / Home / PI / RRM / SRC / RB-1-1.8.7-P302 Ruby -1.87-P302 - # / HOM / PI / RVM / SRC / RB-1.8.7-P302 RUBBI -1.8.7-P 302 # Extracted - Configuring Ruby-1.87-P302 # - # Compiling Ruby-1.8.7-P302 - Installing Ruby-1.8.7-p302 - Recovering #RubyGems to Install Ruby-8.8-P 302 RubyGums -1.3.7% Total% Gain% Xferd Avg Speed Time Time Time Current Dload Upload Total Expenditure Left Speed 100 284k 100 284k 0 0 256 9 0:00:11 0:00:11 -: -: - 61417 RubyGomes Remove -1.3.7 ... ruby -1.87 -P302 - (#shebangs adjustment for gem) Ruby-1.8.7-p302 - #importing Install default gemsets (/home/pi/.rvm/gemsets/) Ruby-18.7-P302 - #complete
But again, Ruby-V says that is not installed ...
I missed something, but I can not understand it ...
If you are still stuck, then I will help you at irc.freenode.net at #rvm. I am during that day at EST.
Comments
Post a Comment