Commands do not work in xterm or terminal.

Hi I am having some issues with xterm and terminal. When typing in commands most do not work.

Here is an example:
more: Command not found.
man: Command not found.
ssh: Command not found.
emacs: command not found


Here is my path info from .profile
export PATH=/opt/local/bin:/usr/local/mysql/bin:/opt/local/sbin:/Library/Java/Home/bin $PATH
export MITSCHEME LIBRARYPATH=~/users/alosdiallo/Library/mit-scheme
export CLASSPATH=/Library/Java/Home/bin/

I also have a link from .bashrc to .profile
.bashrc -> .profile

Any Help would be greatly appreciated. Thank you

MacBook Air, Mac OS X (10.5.2), SSD

Posted on Mar 11, 2009 11:14 AM

Reply
5 replies

Mar 11, 2009 11:41 AM in response to Alos

Alos wrote:
Hi I am having some issues with xterm and terminal. When typing in commands most do not work.

Your PATH is screwed up. In particular, you are missing /bin and /usr/bin; this last is where all the commands you mention are to be found.

What have you downloaded that has put the "/opt" subdirectories in your path? That may be what has messed this up.

It is also possible that
export PATH=/opt/local/bin:/usr/local/mysql/bin:/opt/local/sbin:/Library/Java/Home/bin$PATH

has messed up your PATH. Insert a colon(':') before the final $PATH and restart Terminal.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Commands do not work in xterm or terminal.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.