Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install nacl crypto on my system:

% uname -a
Linux (none) 2.6.39-ARCH #1 SMP PREEMPT Mon Jun 6 22:37:55 CEST 2011 x86_64 Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz GenuineIntel GNU/Linux

But the build process didn't succeed:

~/nacl-20110221 % ./do
./do: line 9: hostname: command not found

Did I forget something?


% cat /etc/hosts
# /etc/hosts: static lookup table for host names

#<ip-address>   <hostname.domain.org>   <hostname>   localhost.localdomain   localhost
::1     localhost.localdomain   localhost
# End of file
share|improve this question
Are you using the AUR PKGBUILD? aur.archlinux.org/packages.php?ID=44277 – jasonwryan Jun 9 '11 at 18:30
no, i'll check that. – mkind Jun 9 '11 at 19:16
[update] this isn't working either since makepkg loads the tar.bz2, unzips it and intends to execute ./do – mkind Jun 9 '11 at 20:05
Does your machine have a hostname? That seems to be required by NaCl: "All compilation takes place in a host-specific subdirectory" – jasonwryan Jun 9 '11 at 20:16
the hostname value in rc.conf seems to be set. i updated the question and i've inserted the /etc/host output – mkind Jun 9 '11 at 20:34
up vote 0 down vote accepted

You don't have the hostname command. It just moved from net-tools to coreutils, so make sure you have the latest coreutils. Though there is some debate as to whether this is right, so it might change again.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.