Skip to content

Instantly share code, notes, and snippets.

the last line of my ~/.bash_profile:
source /Users/pat/.rvm/scripts/rvm
When I run my shell I get the error:
Last login: Mon Aug 12 16:05:58 on ttys000
-bash: /etc/profile.d/rvm.sh: No such file or directory
~/.bash_profile
Maclaurin:farfetchers pat$ echo $GEM_HOME; echo $PATH ;
/Users/pat/.rvm/gems/ruby-1.9.3-p448@farfetchers
/Users/pat/.rvm/gems/ruby-1.9.3-p448@farfetchers/bin:/Users/pat/.rvm/gems/ruby-1.9.3-p448@global/bin:/Users/pat/.rvm/rubies/ruby-1.9.3-p448/bin:/Users/pat/.rvm/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/bin:/usr/local/Cellar/ruby/1.9.3-p194/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/pat/Library/Scripts:/Users/pat/bin:/usr/local/hadoop/bin:/usr/local/mahout/bin:/Users/pat/scripts:/usr/local/bixo:/Applications/MAMP/Library/bin:/Users/pat/pear/bin:/usr/local/Cellar/git/1.7.11.3/bin:/Users/pat/utils:/usr/local/pig
Last login: Wed Aug 14 13:16:01 on ttys005
-bash: /etc/profile.d/rvm.sh: No such file or directory
~/.bash_profile
Maclaurin:~ pat$ https://gist.github.com/pferrel/6235150
Maclaurin:~ pat$ echo $GEM_HOME; echo $PATH ;
/Users/pat/.rvm/gems/ruby-1.9.3-p448
/Users/pat/.rvm/gems/ruby-1.9.3-p448/bin:/Users/pat/.rvm/gems/ruby-1.9.3-p448@global/bin:/Users/pat/.rvm/rubies/ruby-1.9.3-p448/bin:/Users/pat/.rvm/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/bin:/usr/local/Cellar/ruby/1.9.3-p194/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/pat/Library/Scripts:/Users/pat/bin:/usr/local/hadoop/bin:/usr/local/mahout/bin:/Users/pat/scripts:/usr/local/bixo:/Applications/MAMP/Library/bin:/Users/pat/pear/bin:/usr/local/Cellar/git/1.7.11.3/bin:/Users/pat/utils:/usr/local/pig
Maclaurin:~ pat$ cd farfetchers
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-versi
/etc/profile:11:source /etc/profile.d/rvm.sh
/etc/zprofile:2:source /etc/profile.d/rvm.sh
pat$ gem -v
/Users/pat/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
1.8.23
pat$ gem env
/Users/pat/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.23
- RUBY VERSION: 1.9.3 (2013-06-27 patchlevel 448) [x86_64-darwin12.4.0]
- INSTALLATION DIRECTORY: /Users/pat/.rvm/gems/ruby-1.9.3-p448
- RUBY EXECUTABLE: /Users/pat/.rvm/rubies/ruby-1.9.3-p448/bin/ruby
- EXECUTABLE DIRECTORY: /Users/pat/.rvm/gems/ruby-1.9.3-p448/bin
cat /Users/pat/.rvm/src/ruby-1.9.3-p448/ext/{*yaml,psych}/*.log
cat: /Users/pat/.rvm/src/ruby-1.9.3-p448/ext/*yaml/*.log: No such file or directory
find_header: checking for yaml.h... -------------------- yes
"/usr/local/bin/gcc-4.2 -E -I../../.ext/include/x86_64-darwin12.4.0 -I../.././include -I../.././ext/psych -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -fno-common -pipe conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <yaml.h>
pat$ rvm --debug reinstall 1.9.3
1.9.3 - reinstall
Log prefix: /Users/pat/.rvm/log/1376960330_ruby-1.9.3-p448/
Log filesystem: local,
Log max name length: 250
Log file: /Users/pat/.rvm/log/1376960330_ruby-1.9.3-p448/remove.src.log
[2013-08-19 17:58:50] __rvm_rm_rf
__rvm_rm_rf ()
{
__rvm_rm_rf_verbose "$@"
Maclaurin:guide pat$ cat /Users/pat/.rvm/src/ruby-1.9.3-p448/ext/{*yaml,psych}/*.log
cat: /Users/pat/.rvm/src/ruby-1.9.3-p448/ext/*yaml/*.log: No such file or directory
find_header: checking for yaml.h... -------------------- yes
"/usr/local/bin/gcc-4.2 -E -I../../.ext/include/x86_64-darwin12.4.0 -I../.././include -I../.././ext/psych -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -fno-common -pipe conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <yaml.h>
Maclaurin:guide pat$ rvm use 1.9.3 ; ruby -rpsych -e 'puts Psych'
Using /Users/pat/.rvm/gems/ruby-1.9.3-p448
/Users/pat/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': dlopen(/Users/pat/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/x86_64-darwin12.4.0/psych.bundle, 9): Library not loaded: /usr/local/lib/libyaml-0.2.dylib (LoadError)
Referenced from: /Users/pat/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/x86_64-darwin12.4.0/psych.bundle
Reason: image not found - /Users/pat/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/x86_64-darwin12.4.0/psych.bundle
from /Users/pat/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/pat/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/psych.rb:1:in `<top (required)>'
from /Users/pat/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/pat/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
Maclaurin:guide pat$