/usr/bin/env: bad interpreter: No such file or directory

2,205 views
Skip to first unread message

StevieHayes

unread,
Jul 21, 2012, 4:08:02 PM7/21/12
to rubyversi...@googlegroups.com
I'm sure this is a simple problem but when I start up my terminal in Ubuntu I get the following...

bash: /usr/local/rvm/scripts/color: /usr/bin/env: bad interpreter: No such file or directory

I've tried editing my .bashrc file but there's nothing obvious to change.

RVM is specified there as follows...

if [[ -s /usr/local/rvm/scripts/rvm ]] ; then source /usr/local/rvm/scripts/rvm ; fi
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

Anyone have any clue to why I'm getting complaints at the terminal?


mpapis

unread,
Jul 22, 2012, 9:18:57 PM7/22/12
to rubyversi...@googlegroups.com
are you sure /usr/bin/env exists, this is most common thing in linux, for compability every distribution has this script which you can use for shebang

also make sure you have bash, even rvm works with zsh or other shells - it uses bash internally and it has to be installed

jay...@gmail.com

unread,
Mar 1, 2013, 8:42:52 AM3/1/13
to rubyversi...@googlegroups.com
Try running your script either by 'exec foo.sh' or 'source foo.sh' or '. ./foo.sh'.
Reply all
Reply to author
Forward
0 new messages