You are not logged in.

#1 2015-10-10 18:58:17

ahmadelmorshedy
Member
Registered: 2015-10-10
Posts: 4

[SOLVED] rvm ruby problem

Hi all,
I want to install rvm and ruby on my arch,
I followed rvm installation instructions:

\curl -sSL https://get.rvm.io | bash -s stable --ruby

this installed rvm and ruby 2.2.1 successfully, i was able to use "rvm list" and "rvm install" commands normally

I then installed ruby 2.2.0 and 2.0.0 using "rvm install"

the problem when I tried to run ruby -v command from my terminal (i use terminator with oh my zsh), the response was

zsh: command not found: ruby

I tried to edit ~/.bashrc file, I appended export PATH="$PATH:$HOME/.rvm/rubies/default/bin" to it, no results

but when I used the source command, it worked

source ~/.bashrc
ruby -v
    ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]

if I exit and run again without source command, it failed again....
Contents of my .bashrc file now

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export PATH="$PATH:$HOME/.rvm/rubies/default/bin"

Any help will be appreciated, and thanks for your attention...

Last edited by ahmadelmorshedy (2015-11-07 15:45:01)

Offline

#2 2015-10-11 20:03:25

ahmadelmorshedy
Member
Registered: 2015-10-10
Posts: 4

Re: [SOLVED] rvm ruby problem

Ok... I finally found what the probleem was...
I installed zsh and using oh my zsh, it's configured to be my terminal,
all i need to do was to edit ~./zshrc instead of ~/.bashrc file

Does anybody knows how to mark this thread as solved ??? thanks again and sorry for disturbance

Last edited by ahmadelmorshedy (2015-11-07 15:45:36)

Offline

#3 2015-10-11 20:12:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] rvm ruby problem

You can mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2015-11-07 15:44:25

ahmadelmorshedy
Member
Registered: 2015-10-10
Posts: 4

Re: [SOLVED] rvm ruby problem

Thanks for your response

Offline

Board footer

Powered by FluxBB