Skip to content

Instantly share code, notes, and snippets.

View carlcrott's full-sized avatar

Carl Crott carlcrott

  • <( '.' <) <( '.' )> (> '.' )>
  • San Francisco CA
View GitHub Profile
@carlcrott
carlcrott / ERROR
Last active December 25, 2015 07:09
ubuntu@ip-10-114-202-137:~$ sudo ./ghgvc.sh
./ghgvc.sh: 4: ./ghgvc.sh: rvmsudo: not found
./ghgvc.sh: 5: ./ghgvc.sh: rvm: not found
./ghgvc.sh: 6: ./ghgvc.sh: rvm: not found
./ghgvc.sh: 8: ./ghgvc.sh: source: not found
SSH back in to re-source RVM
ubuntu@ip-10-114-202-137:~$ which rvmsudo
/home/ubuntu/.rvm/bin/rvmsudo
ubuntu@ip-10-145-231-204:~/ghgvc$ rvm install ruby-1.9.3-p125
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.04/x86_64/ruby-1.9.3-p125.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)...
ruby-1.9.3-p125 - #downloading ruby-1.9.3-p125, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
ubuntu@ip-10-145-231-204:~/ghgvc$ id
uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),110(netdev),111(admin)
ubuntu@ip-10-145-231-204:~/ghgvc$ rvm group add rvm $USER
Adding user 'ubuntu' to the group 'rvm'
ubuntu@ip-10-145-231-204:~/ghgvc$ cd ..
ubuntu@ip-10-145-231-204:~$ cd ghgvc/
You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,
you can switch to '.ruby-version' using 'rvm rvmrc to [.]ruby-version'
or ignore this warning with 'rvm rvmrc warning ignore /home/ubuntu/ghgvc/.rvmrc',
'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,
ubuntu@ip-10-145-231-204:~$ rvm group add rvm $USER
A RVM version 1.23.0 (master) is installed yet 1.23.0 (stable) is loaded.
Please do one of the following:
* 'rvm reload'
* open a new shell
* 'echo rvm_auto_reload_flag=1 >> ~/.rvmrc' # for auto reload with msg.
* 'echo rvm_auto_reload_flag=2 >> ~/.rvmrc' # for silent auto reload.
ubuntu@ip-10-145-231-204:~$ rvm reload
ubuntu@ip-10-145-231-204:~$ rvm get head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 477 0 --:--:-- --:--:-- --:--:-- 654
100 15779 100 15779 0 0 31179 0 --:--:-- --:--:-- --:--:-- 31179
bash: line 585: /usr/local/rvm/RELEASE: Permission denied
Could not update RVM, get some help at #rvm IRC channel at freenode servers.
ubuntu@ip-10-145-231-204:~$ sudo rvm get head
sudo: rvm: command not found
ubuntu@ip-10-145-231-204:~$
ubuntu@ip-10-145-231-204:~$ $USER
ubuntu: command not found
ubuntu@ip-10-145-231-204:~$ rvm group add rvm $USER
rvm group must be run as root.
ubuntu@ip-10-145-231-204:~$ sudo rvm group add rvm $USER
sudo: rvm: command not found
ubuntu@ip-10-145-231-204:~$
ls -ld /usr/local/rvm/log/ruby-1.9.3-p125
ls: cannot access /usr/local/rvm/log/ruby-1.9.3-p125: No such file or directory
ubuntu@ip-10-145-231-204:~$ ( PS4="+ \$(__rvm_date \"+%s.%N\" 2>/dev/null) \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > "; set -x; cd ~/ghgvc )
+ 1381380850.419908330 : 13 > cd /home/ubuntu/ghgvc
+ 1381380850.431995853 /scripts/cd : cd() 1 > builtin cd /home/ubuntu/ghgvc
+ 1381380850.443770595 /scripts/cd : cd() 3 > [[ -n '' ]]
+ 1381380850.455344909 /scripts/cd : cd() 3 > true
+ 1381380850.466936045 /scripts/cd : cd() 4 > __rvm_cd_functions_set
+ 1381380850.478748572 /scripts/cd : __rvm_cd_functions_set() 1 > __rvm_do_with_env_before
+ 1381380850.490617466 /scripts/functions/environment : __rvm_do_with_env_before() 1 > [[ -n '' ]]
#!/bin/bash
# GHGVC install script for rails application
# Written by Carl Crott <[email protected]>
sudo apt-get -y install git-core curl locate
git clone http://github.com/delinquentme/ghgvc.git
curl -L https://get.rvm.io | bash -s stable --ruby
ubuntu@ip-10-83-130-63:~$ rvm fix-permissions
Fixing user/group for ':rvm' - this might take few long minutes...
Fixing rights with 'g+w' - this might take few long minutes...
Finished fixing.
ubuntu@ip-10-83-130-63:~$ cd ghgvc
You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,
you can switch to '.ruby-version' using 'rvm rvmrc to [.]ruby-version'
or ignore this warning with 'rvm rvmrc warning ignore /home/ubuntu/ghgvc/.rvmrc',
'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,
to ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.
( PS4="+ \$(__rvm_date \"+%s.%N\" 2>/dev/null) \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > "; set -x; cd ghgvc/ )
+ 1381379186.692135126 : 15 > cd ghgvc/
+ 1381379186.703521859 /scripts/cd : cd() 1 > builtin cd ghgvc/
+ 1381379186.714710848 /scripts/cd : cd() 3 > [[ -n '' ]]
+ 1381379186.725570068 /scripts/cd : cd() 3 > true
+ 1381379186.736391081 /scripts/cd : cd() 4 > __rvm_cd_functions_set
+ 1381379186.747311072 /scripts/cd : __rvm_cd_functions_set() 1 > __rvm_do_with_env_before
+ 1381379186.758186603 /scripts/functions/environment : __rvm_do_with_env_before() 1 > [[ -n '' ]]
+ 1381379186.768883625 /scripts/functions/environment : __rvm_do_with_env_before() 1 > [[ -n /usr/local/rvm ]]
+ 1381379186.779601418 /scripts/functions/environment : __rvm_do_with_env_before() 4 > source /usr/local/rvm/scripts/initialize