Skip to content

Instantly share code, notes, and snippets.

@adelbalso
Created July 31, 2013 15:40
Show Gist options
  • Save adelbalso/6123143 to your computer and use it in GitHub Desktop.
Save adelbalso/6123143 to your computer and use it in GitHub Desktop.
ou 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 /Users/adriandelbalso/workspace/brief/.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'.
Warning! PATH is not properly set up, '/Users/adriandelbalso/.rvm/gems/ruby-1.9.3-p448/bin' is not available,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
to fix run: 'rvm use ruby-1.9.3-p448'.
Gemset 'brief' does not exist, 'rvm ruby-1.9.3-p429 do rvm gemset create brief' first, or append '--create'.
11:35:07 ~/workspace/brief rvm ruby-1.9.3-p429 do rvm gemset create brief
Warning! PATH is not properly set up, '/Users/adriandelbalso/.rvm/gems/ruby-1.9.3-p448/bin' is not available,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
to fix run: 'rvm use ruby-1.9.3-p448'.
gemset created brief => /Users/adriandelbalso/.rvm/gems/ruby-1.9.3-p429@brief
11:35:43 ~/workspace/brief bundle exec script/setup :: ‹master› ● ↑
ERROR: Gem bundler is not installed, run `gem install bundler` first.
11:35:55 ~/workspace/brief gem install bundler :: ‹master› ● ↑
Successfully installed bundler-1.3.5
1 gem installed
Installing ri documentation for bundler-1.3.5...
Installing RDoc documentation for bundler-1.3.5...
11:36:11 ~/workspace/brief bundle exec script/setup :: ‹master› ● ↑
ERROR: Gem bundler is not installed, run `gem install bundler` first.
11:36:13 ~/workspace/brief bundle exec rails s :: ‹master› ● ↑
ERROR: Gem bundler is not installed, run `gem install bundler` first.
11:36:31 ~/workspace/brief rvm gemset list :: ‹master› ● ↑
Warning! PATH is not properly set up, '/Users/adriandelbalso/.rvm/gems/ruby-1.9.3-p448/bin' is not available,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
to fix run: 'rvm use ruby-1.9.3-p448'.
gemsets for ruby-1.9.3-p448 (found in /Users/adriandelbalso/.rvm/gems/ruby-1.9.3-p448)
=> (default)
global
11:36:50 ~/workspace/brief which rvm :: ‹master› ● ↑
rvm () {
if __rvm_has_opt "posix"
then
echo "RVM can not be run with \`set -o posix\`, please turn it off and try again."
return 100
fi
typeset result current_result
export -a rvm_ruby_args > /dev/null 2> /dev/null
rvm_ruby_args=()
if (( ${rvm_ignore_rvmrc:=0} == 0 ))
then
[[ -n "${rvm_stored_umask:-}" ]] || export rvm_stored_umask=$(umask)
rvm_rvmrc_files=("/etc/rvmrc" "$HOME/.rvmrc")
if [[ -n "${rvm_prefix:-}" ]] && [[ ! "$HOME/.rvmrc" -ef "${rvm_prefix}/.rvmrc" ]]
then
rvm_rvmrc_files+=("${rvm_prefix}/.rvmrc")
fi
for rvmrc in "${rvm_rvmrc_files[@]}"
do
if [[ -f "$rvmrc" ]]
then
if GREP_OPTIONS="" \grep '^\s*rvm .*$' "$rvmrc" > /dev/null 2>&1
then
printf "%b" "
Error:
$rvmrc is for rvm settings only.
rvm CLI may NOT be called from within $rvmrc.
Skipping the loading of $rvmrc"
return 1
else
source "$rvmrc"
fi
fi
done
unset rvm_rvmrc_files
fi
disk_version="$(\cat "$rvm_path/VERSION") ($(\cat "$rvm_path/RELEASE" 2>/dev/null))"
if [[ -s "$rvm_path/VERSION" && "${rvm_version:-}" != "${disk_version:-}" && "reload" != "${1:-}" ]]
then
if (( ${rvm_auto_reload_flag:-0} ))
then
__rvm_project_rvmrc_lock=0
rvm_reload_flag=1
source "${rvm_scripts_path:-${rvm_path}/scripts}/rvm"
else
printf "%b" "
A RVM version ${disk_version} is installed yet ${rvm_version} 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.
"
return 1
fi
fi
__rvm_initialize
__rvm_setup
__rvm_path_match_gem_home_check
next_token="$1"
(( $# == 0 )) || shift
__rvm_parse_args "$@"
(( rvm_trace_flag == 0 )) || {
export PS4
if [[ -n "$ZSH_VERSION" ]]
then
PS4="%F{red}%x:%I %F{green}%N:%i%F{white} %_"
else
PS4="+ \$(date \"+%s.%N\") \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > "
fi
set -x
}
result=$?
: rvm_ruby_args:${#rvm_ruby_args[@]}:${rvm_ruby_args[*]}:
(( result )) || case "${rvm_action:=help}" in
(use) if rvm_is_a_shell_function
then
__rvm_use && __rvm_use_ruby_warnings
fi ;;
(switch) if rvm_is_a_shell_function
then
__rvm_switch "${rvm_ruby_args[@]}"
fi ;;
(srcdir) __rvm_source_dir ;;
(inspect|strings|version) __rvm_${rvm_action} ;;
(ls|list) "$rvm_scripts_path/list" "${rvm_ruby_args[@]}" ;;
(debug) rvm_is_not_a_shell_function="${rvm_is_not_a_shell_function}" "$rvm_scripts_path/info" '' debug ;;
(info) rvm_is_not_a_shell_function="${rvm_is_not_a_shell_function}" "$rvm_scripts_path/${rvm_action}" "${rvm_ruby_args[@]}" ;;
(benchmark|reset) source "$rvm_scripts_path/functions/${rvm_action}"
__rvm_${rvm_action} ;;
(update) printf "%b" "ERROR: rvm update has been removed. See 'rvm get' and rvm 'rubygems' CLI API instead\n" ;;
(reboot) source "$rvm_scripts_path/functions/cleanup"
__rvm_reboot ;;
(implode|seppuku) source "$rvm_scripts_path/functions/implode"
__rvm_implode ;;
(get) next_token="${1:-}"
(( $# == 0 )) || shift
[[ "$next_token" = "${rvm_action}" ]] && shift
tmpdir="${TMPDIR:-/tmp}"
\cp -f "$rvm_scripts_path/get" "$tmpdir/$$"
if bash "$tmpdir/$$" "${rvm_ruby_args[@]}"
then
rvm_reload_flag=1
else
rvm_error "Could not update RVM, get some help at #rvm IRC channel at freenode servers."
fi
\rm -f $tmpdir/$$ ;;
(current) __rvm_env_string ;;
(help|rtfm|env|list|monitor|notes|pkg|requirements) next_token="${1:-}"
(( $# == 0 )) || shift
if (( $# )) && [[ "$next_token" = "${rvm_action}" ]]
then
shift
fi
"$rvm_scripts_path/${rvm_action}" "${rvm_ruby_args[@]}" ;;
(cleanup|tools|snapshot|disk-usage|repair|alias|docs|rubygems|migrate|cron|group) __rvm_run_script "$rvm_action" "${rvm_ruby_args[@]}" ;;
(upgrade) __rvm_fix_selected_ruby __rvm_run_wrapper "$rvm_action" "$rvm_action" "${rvm_ruby_args[@]}" ;;
(autolibs|osx-ssl-certs|fix-permissions) __rvm_run_wrapper "$rvm_action" "$rvm_action" "${rvm_ruby_args[@]}" ;;
(wrapper) "$rvm_scripts_path/wrapper" "$rvm_ruby_string" "$rvm_wrapper_name" "${rvm_ruby_args[@]}"
result=$?
unset rvm_wrapper_name ;;
(do) old_rvm_ruby_string=${rvm_ruby_string:-}
unset rvm_ruby_string
export rvm_ruby_strings
(
if [[ -n "${rvm_in_flag}" && -d "${rvm_in_flag}" ]]
then
__rvm_cd "${rvm_in_flag}"
fi
"$rvm_scripts_path/set" "$rvm_action" "${rvm_ruby_args[@]}"
)
result=$?
[[ -n "$old_rvm_ruby_string" ]] && rvm_ruby_string=$old_rvm_ruby_string
unset old_rvm_ruby_string ;;
(rvmrc) __rvm_rvmrc_tools "${rvm_ruby_args[@]}" ;;
(config-get) typeset __ruby __var
__ruby=$( __rvm_which ruby )
for __var in "${rvm_ruby_args[@]}"
do
__rvm_ruby_config_get "${__var}" "${__ruby}"
done ;;
(gemset_use) if rvm_is_a_shell_function
then
__rvm_gemset_use
fi ;;
(gemset) export rvm_ruby_strings
"$rvm_scripts_path/gemsets" "${rvm_ruby_args[@]}"
result=$?
rvm_ruby_strings=""
if rvm_is_a_shell_function no_warning
then
if [[ ${rvm_delete_flag:-0} -eq 1 ]]
then
if [[ "${GEM_HOME:-""}" = "${GEM_HOME%%${rvm_gemset_separator:-@}*}${rvm_gemset_separator:-@}${rvm_gemset_name}" ]]
then
rvm_delete_flag=0
__rvm_use "@default"
fi
unset gem_prefix
elif [[ "${rvm_ruby_args[*]}" =~ ^rename ]]
then
typeset _command _from _to
elif read _command _from _to <<< "${rvm_ruby_args[*]}"
then
if [[ "${GEM_HOME:-""}" = "${GEM_HOME%%${rvm_gemset_separator:-@}*}${rvm_gemset_separator:-@}${_from}" ]]
then
__rvm_use "@${_to}"
fi
fi
fi ;;
(reload) rvm_reload_flag=1 ;;
(tests|specs) rvm_action="rake"
__rvm_do ;;
(remove) export rvm_path
if [[ -n "${rvm_ruby_strings}" ]]
then
__rvm_run_wrapper manage "$rvm_action" "${rvm_ruby_strings//*-- }"
else
__rvm_run_wrapper manage "$rvm_action"
fi
__rvm_use default ;;
(fetch|uninstall|reinstall) export rvm_path
if [[ -n "${rvm_ruby_strings}" ]]
then
__rvm_run_wrapper manage "$rvm_action" "${rvm_ruby_strings//*-- }"
else
__rvm_run_wrapper manage "$rvm_action"
fi ;;
(try_install|install) export rvm_path
if [[ -n "${rvm_ruby_strings}" ]]
then
typeset save_ruby
selected_ruby="$( __rvm_select && echo $rvm_env_string )"
if [[ -z "${selected_ruby}" ]]
then
rvm_error "Could not detect ruby version/name for installation, please be more specific."
false
elif (( ${rvm_force_flag:-0} == 0 )) && "$rvm_scripts_path"/list strings | GREP_OPTIONS="" \grep "^${selected_ruby%${rvm_gemset_separator:-'@'}*}$" > /dev/null
then
rvm_log "Already installed ${selected_ruby%${rvm_gemset_separator:-'@'}*}.
To reinstall use:
rvm reinstall ${rvm_ruby_strings}
"
else
__rvm_run_wrapper manage install "${rvm_ruby_strings}"
fi
else
rvm_error "Can not use or install 'all' rubies."
false
fi ;;
(mount|automount|prepare) if [[ -n "$rvm_ruby_string" ]]
then
rvm_ruby_args=("$rvm_ruby_string" "${rvm_ruby_args[@]}")
fi
"${rvm_scripts_path}/external" "$rvm_action" "${rvm_ruby_args[@]}" ;;
(export) __rvm_export "$rvm_export_args" ;;
(unexport) __rvm_unset_exports ;;
(error) false ;;
(answer) source "$rvm_scripts_path/functions/fun"
__rvm_Answer_to_the_Ultimate_Question_of_Life_the_Universe_and_Everything
result=42 ;;
(question) source "$rvm_scripts_path/functions/fun"
__rvm_ultimate_question
result=42 ;;
(which) __rvm_which "${rvm_ruby_args[@]}" ;;
(*) rvm_error "unknown action '$rvm_action'"
false ;;
esac
current_result=$?
(( result )) || result=${current_result}
(( result )) || case "$rvm_action" in
(reinstall|try_install|install) if [[ $(\find $rvm_rubies_path -maxdepth 1 -mindepth 1 -type d 2>/dev/null | wc -l) -eq 1 ]] && [[ ! -f "${rvm_environments_path}/default" ]] && rvm_is_a_shell_function no_warning
then
rvm_log ""
rvm_verbose_flag=0 rvm_default_flag=1 __rvm_use
fi ;;
esac
current_result=$?
(( result )) || result=${current_result}
typeset __local_rvm_trace_flag
__local_rvm_trace_flag=${rvm_trace_flag:-0}
if [[ ${rvm_reload_flag:-0} -eq 1 ]]
then
if [[ -s "$rvm_scripts_path/rvm" ]]
then
__rvm_project_rvmrc_lock=0
source "$rvm_scripts_path/rvm"
else
echo "rvm not found in $rvm_path, please install and run 'rvm reload'"
__rvm_teardown
fi
else
__rvm_teardown
fi
if (( __local_rvm_trace_flag > 0 ))
then
set +o verbose
set +o xtrace
[[ -n "${ZSH_VERSION:-""}" ]] || set +o errtrace
fi
return ${result:-0}
}
11:37:02 ~/workspace/brief rvm gemset create brief :: ‹master› ● ↑
Warning! PATH is not properly set up, '/Users/adriandelbalso/.rvm/gems/ruby-1.9.3-p448/bin' is not available,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
to fix run: 'rvm use ruby-1.9.3-p448'.
gemset created brief => /Users/adriandelbalso/.rvm/gems/ruby-1.9.3-p448@brief
11:37:24 ~/workspace/brief rvm gemset lisrt :: ‹master› ● ↑
Warning! PATH is not properly set up, '/Users/adriandelbalso/.rvm/gems/ruby-1.9.3-p448/bin' is not available,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
to fix run: 'rvm use ruby-1.9.3-p448'.
Unknown subcommand 'lisrt'
For additional information please visit RVM's documentation website:
https://rvm.io/
If you still cannot find what an answer to your question, find
'wayneeseguin', 'mpapis', 'richo', 'lemoinem' or 'rys' in #rvm on irc.freenode.net:
http://webchat.freenode.net/?channels=rvm
11:37:38 ~/workspace/brief :: ‹master› ● ↑
11:37:38 ~/workspace/brief rvm gemset list :: ‹master› ● ↑
Warning! PATH is not properly set up, '/Users/adriandelbalso/.rvm/gems/ruby-1.9.3-p448/bin' is not available,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
to fix run: 'rvm use ruby-1.9.3-p448'.
gemsets for ruby-1.9.3-p448 (found in /Users/adriandelbalso/.rvm/gems/ruby-1.9.3-p448)
=> (default)
brief
global
11:37:41 ~/workspace/brief rvm use ruby-1.9.3-p448@brief :: ‹master› ● ↑
Warning! PATH is not properly set up, '/Users/adriandelbalso/.rvm/gems/ruby-1.9.3-p448/bin' is not available,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
to fix run: 'rvm use ruby-1.9.3-p448'.
Using /Users/adriandelbalso/.rvm/gems/ruby-1.9.3-p448 with gemset brief
11:37:57 ~/workspace/brief bundle ruby-1.9.3-p448@brief :: ‹master› ● ↑
Fetching source index from https://rubygems.org/
^C% 11:38:05 ~/workspace/brief ruby-1.9.3-p448@brief :: ‹master› ● ↑
11:38:05 ~/workspace/brief bundle exec script/setup ruby-1.9.3-p448@brief :: ‹master› ● ↑
script/setup: line 9: npm: command not found
script/setup: line 10: npm: command not found
script/setup: line 12: npm: command not found
script/setup: line 15: npm: command not found
/Users/adriandelbalso/workspace/brief
script/setup: line 18: bower: command not found
11:38:12 ~/workspace/brief ruby-1.9.3-p448@brief :: ‹master› ● ↑
11:38:12 ~/workspace/brief ruby-1.9.3-p448@brief :: ‹master› ● ↑
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment