ruby - when i type commands in the terminal i get an error - "command not found" -


gal-harths-imac:~ galharth$ ruby -v -bash: ruby: command not found gal-harths-imac:~ galharth$ open -e .bash_profile -bash: open: command not found 

what shoud do?

my .bash_profile , .profile , .bashrc empty, need write in them?..

i suspect have overriding default path (like .bash_profile or .bashrc) open valid command on os x, me man open returns

name      open -- open files , directories  synopsis      open [-e] [-t] [-f] [-w] [-r] [-n] [-g] [-h] [-b bundle_identifier]           [-a application] file ... [--args arg1 ...]  description      open command opens file (or directory or url), if had      double-clicked file's icon. if no application name specified,      default application determined via launchservices used open      specified files..... 

likewise possible ruby installed not on path. best guess delete or rename .bashrc , .bash_profile files , log off user , log in, reset bash session.

to test if user level issue, create new account under system preferences -> accounts , log in user, open terminal , type ruby -v or man open, etc see if can on default user account. if works, bash settings have customized in 'gal-harth' account.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -