unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Cannot run executable from eshell
Date: Thu, 19 Mar 2020 15:30:00 +0100	[thread overview]
Message-ID: <20200319143000.GC29405@tuxteam.de> (raw)
In-Reply-To: <CAH5rZC71zVONOwBi=mLm5_7BHm_TSn=A-PonSZ+X+UDm3Q9J+g@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]

On Thu, Mar 19, 2020 at 02:18:31PM +0000, Roy Lemmon wrote:
> Hi,
> 
> 
> I have an executable (guix) in a directory under my home directory.

Is that a "real" executable? Or a script?

>                                                                     I am
> using eshell. I add that directory to PATH. But when I run the command, the
> executable is not found. I have tried various methods such as addpath etc.
> But eshell doesnt seem to search in that directory and find the executable.
> If I give the full directory on the command line, it works.
> 
> See below:
> 
> $ /home/rlemmon/.guix-profile/bin/guix works correctly
> 
> $ guix does not work

I doubt the error message looks like that ;-P

Now seriously: perhaps the error message provides some hints
for us to help you.

Sometimes (happens most often with shell scripts) you get
a confusing error message which might lead you to believe
the script was not found while the problem is that the
interpreter for your script isn't found [1]. In your case
possibly guile.

cheers

[1] Ok, ok -- for binaries it's the same (assuming you're
   "on" GNU/Linux, that is). The interpreter is then ld.so,
   but if your system doesn't find that...

-- tomás

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

      reply	other threads:[~2020-03-19 14:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-19 14:18 Cannot run executable from eshell Roy Lemmon
2020-03-19 14:30 ` tomas [this message]

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=20200319143000.GC29405@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=help-gnu-emacs@gnu.org \
    /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).