all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cannot run executable from eshell
@ 2020-03-19 14:18 Roy Lemmon
  2020-03-19 14:30 ` tomas
  0 siblings, 1 reply; 2+ messages in thread
From: Roy Lemmon @ 2020-03-19 14:18 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,


I have an executable (guix) in a directory under my home directory. 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

$ echo $PATH $ /home/rlemmon/.guix-profile/bin:/home/rlemmon/bin:/ ...

$ addpath

/home/rlemmon/.guix-profile/bin/ /home/rlemmon/bin/ ...


All of this is done within eshell. I am confused as to what the problem
might be. Is there a standard way to set the directories where eshell looks
for executables ?


Note that I am using EXWM (under nixOS) and starting the eshell via a
command defined in my init file. Though the same situation exists if I
start it via M-x eshell.


Thanks

Roy.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cannot run executable from eshell
  2020-03-19 14:18 Cannot run executable from eshell Roy Lemmon
@ 2020-03-19 14:30 ` tomas
  0 siblings, 0 replies; 2+ messages in thread
From: tomas @ 2020-03-19 14:30 UTC (permalink / raw)
  To: help-gnu-emacs

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-19 14:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-19 14:18 Cannot run executable from eshell Roy Lemmon
2020-03-19 14:30 ` tomas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.