unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean Louis <bugs@gnu.support>
To: keegan afonso <keegan.9377@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Installing Emacs on MobaXterm
Date: Sun, 19 Feb 2023 15:44:18 +0300	[thread overview]
Message-ID: <Y/IZom8FZeLCiWFx@protected.localdomain> (raw)
In-Reply-To: <em8ad2e25c-8215-44a6-9df6-2d3a81cbf0e8@b17cde3a.com>

* 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	other threads:[~2023-02-19 12:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-19  5:10 Installing Emacs on MobaXterm keegan afonso
2023-02-19 12:44 ` Jean Louis [this message]
2023-02-19 13:01   ` Emanuel Berg
2023-02-19 14:04   ` Re[2]: " keegan afonso
2023-02-19 15:03     ` Jean Louis
2023-02-19 16:08       ` cheyrn via Users list for the GNU Emacs text editor
2023-02-19 20:12         ` Jean Louis
2023-02-19 14:01 ` Thibaut Verron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y/IZom8FZeLCiWFx@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    --cc=keegan.9377@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).