help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installing Emacs on MobaXterm


From: Jean Louis
Subject: Re: Installing Emacs on MobaXterm
Date: Sun, 19 Feb 2023 15:44:18 +0300
User-agent: Mutt/2.2.9+54 (af2080d) (2022-11-21)

* keegan afonso <keegan.9377@gmail.com> [2023-02-19 12:31]:
> Hi,
> 
> I am trying to install Emacs on MobaXterm using linux. After installing it
> using the suggested command, I get an error when trying to run it. When I
> type "emacs" to run it, I get the error: "emacs: command not found"
> The terminal suggests the command "apt install emacs" to install. When I
> type this command, I get the error stating "Package emacs is already
> installed".  I am a beginner and will appreciate any advice.

It may be that Emacs is installed but not in your PATH variable, which
determines where are those programs to be run.

If you have the command `dpkg' you could try to list the package files
with:

dpkg -L emacs

and then you can maybe see the full path to executable. It should be
something like:

/usr/bin/emacs

but it could be different like:

/anything-here/usr/bin/emacs

Once you see that full path to the file, try running it:

/anything-here/usr/bin/emacs

And if that works try:

echo $PATH

do you see the path to Emacs? Normally it should contain /usr/bin/ but
it can be different on your system.

Then if that is so tha $PATH is not set up properly, you would need to
set it up in .bashrc or other shell configuration file when you are
starting terminal.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]