You are not logged in.

#1 2013-09-11 21:10:48

dluco
Member
Registered: 2013-08-30
Posts: 22

[SOLVED] /usr/bin/env: No such file or directory

Hi,
I've tried to install a couple packages from the AUR, but when I run "makepkg -s", I get this error:

/usr/bin/env: No such file or directory
make: *** [install] Error 127
==> ERROR: A failure occurred in package().
    Aborting...

I'm sorry if this is something terribly simple, but I can't find any mention of /usr/bin/env anywhere.

I have coreutils installed, which I believe env is part of.

Thank you for any help!

Last edited by dluco (2013-09-24 01:37:11)

Offline

#2 2013-09-11 21:18:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] /usr/bin/env: No such file or directory

Is /usr/bin/env present in your system?
What's the output of

file /usr/bin/env
uname -m

Last edited by karol (2013-09-11 21:18:55)

Offline

#3 2013-09-12 00:03:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [SOLVED] /usr/bin/env: No such file or directory

This is a longshot guess, but did you have issues with (or just ignore) the not-so-recent manual intervention update for the binaries move?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2013-09-23 16:18:10

dluco
Member
Registered: 2013-08-30
Posts: 22

Re: [SOLVED] /usr/bin/env: No such file or directory

@karol, this is what I got:

$ file /usr/bin/env
/usr/bin/env: ERROR: cannot open `/usr/bin/env' (No such file or directory)
$ uname -m
i686

@Trilby, I had no idea that there was a manual intervention update, so it would be safe to say that I might be having issues with it... What is it exactly/where can I find info on it?

Offline

#5 2013-09-23 16:24:25

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] /usr/bin/env: No such file or directory

The /usr/bin/env is provided by the coreutils package. 

You didn't run into issues when there was the move from /bin, /sbin, /usr/sbin → /usr/bin ?  This happened back in the beginning of June!  You need to read the front page news.

If this is the case, I am venturing to guess that your system is probably not actually up to date, and even that you might have been doing partial updates for some time now…


Edit: Check /bin, /sbin, and /usr/sbin and see if they are symlinks pointing to /usr/bin.  If they are, you apparently made it through that update unscathed.  If they are not, well…

Last edited by WonderWoofy (2013-09-23 16:25:19)

Offline

#6 2013-09-23 16:27:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,543

Re: [SOLVED] /usr/bin/env: No such file or directory

env is part of coreutils and has been at /usr/bin/env since Aug 2012. Either your installation is damaged or it's extremely out of date.

Last edited by Scimmia (2013-09-23 16:28:19)

Online

#7 2013-09-23 16:40:10

dluco
Member
Registered: 2013-08-30
Posts: 22

Re: [SOLVED] /usr/bin/env: No such file or directory

All of /bin, /sbin, and /usr/sbin point to /usr/bin, so I guess that's okay! My installation is relatively new (~1 month), so I never had to do a manual intervention.
Is it possible to reinstall coreutils, or is my installation toast?

Offline

#8 2013-09-23 16:43:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,543

Re: [SOLVED] /usr/bin/env: No such file or directory

"pacman -Syu coreutils" should get you up and going, just watch for other problems cropping up. Could be anything from an accidental deletion to a bad disk.

Last edited by Scimmia (2013-09-23 16:43:58)

Online

#9 2013-09-24 01:36:15

dluco
Member
Registered: 2013-08-30
Posts: 22

Re: [SOLVED] /usr/bin/env: No such file or directory

It all works perfectly now!
I'm not sure what caused env to be missing, but reinstalling coreutils fixed it.
Thank you everyone!

Offline

Board footer

Powered by FluxBB