Skip to content

Instantly share code, notes, and snippets.

@RolandStone
Created December 21, 2015 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RolandStone/28eb11c1a889a828ae22 to your computer and use it in GitHub Desktop.
Save RolandStone/28eb11c1a889a828ae22 to your computer and use it in GitHub Desktop.
[root@localhost ~]# chruby
bash: chruby: command not found...
[root@localhost ~]# cd /home/pr0digy/konohagakure/chruby/
[root@localhost chruby]# make install
for dir in `find etc lib bin sbin share -type d 2>/dev/null`; do mkdir -p /usr/local/$dir; done
for file in `find etc lib bin sbin share -type f 2>/dev/null`; do cp $file /usr/local/$file; done
mkdir -p /usr/local/share/doc/chruby-0.3.9
cp -r *.md *.txt /usr/local/share/doc/chruby-0.3.9/
[root@localhost chruby]# source /usr/local/share/chruby/chruby.sh
[root@localhost chruby]# source /usr/local/share/chruby/auto.sh
[root@localhost chruby]# chruby
ruby-2.2.4
[root@localhost chruby]# chruby ruby 2.2.4
[root@localhost chruby]# ruby --version
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]
[root@localhost chruby]# exit
logout
[pr0digy@localhost ~]$ ruby --version
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
[pr0digy@localhost ~]$ chruby
bash: chruby: command not found...
[pr0digy@localhost ~]$ sudo -i
[root@localhost ~]# chruby
bash: chruby: command not found...
[root@localhost ~]# ruby --version
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
[root@localhost ~]# ????
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment