[TriLUG] "command not found" problem

Ben Pitzer uncleben at mindspring.com
Sun May 12 23:55:03 EDT 2002


Ray,

Make sure that you have emacs in your $PATH.  If you're not sure what
that is, then try this:

bash$ slocate emacs | grep bin

Find out where the emacs executable lives.  Then, make sure that the
directory where it lives is in your $PATH statement by typing:

bash$ echo $PATH

You will get some output back including several directories seperated by
colons.  this is an example of my $PATH:

uncleben at ironman:~$ echo $PATH
/home/uncleben/.adabas/bin:/home/uncleben/.adabas/pgm:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/sbin:/usr/local/sbin:/sbin:/home/uncleben/bin

Make sure that at least these are in your $PATH:

/bin
/sbin
/usr/bin
/usr/sbin
/usr/local/bin
/usr/local/sbin
/usr/X11R6/bin (my $PATH points to /usr/bin/X11, which is a symlink to
/usr/X11R6/bin)

If your PATH is missing the directory where emacs is located, they try
this:

bash$ export PATH=$PATH:/path/to/emacs

Then try executing emacs.  If this works, you will have to edit the PATH
statement in your .bash_profile or .bashrc file to make this change
permanent.

Good luck.

Regards,
Ben Pitzer

On Sun, 2002-05-12 at 23:36, ray bordt wrote:
> sat. at the fest, "we" installed mandrake 8.2 on my system. at home, i installed emacs. now as as user ray, i get "bash: emacs: command not found" when i try to start the editor. in dir /etc/emacs/, i have site-start.d/ and site-start.el. can someone help me?





More information about the TriLUG mailing list