Command “no” not found

Bookmark and Share

Problem:

Building the GNU C Library (glibc 2.8) recently, I’ve encountered a weird build error:

no gen-translit.pl < C-translit.h.in > C-translit.h.tmp

/bin/sh: line 1: no: command not found

Solution:

Not much is available on the topic, but the hints resulting from a Google search are very useful. For a thorough coverage of what’s going on try the LinuxFromScratch support list: Chapter 6 Glibc Make error or see the Gentoo Bug 218003.

The short answer is:

/bin/sh: line 1: no: command not found

means that due to some possibly unknown reason the perl binary could not be found. A simple workaround is to symlink perl to the “no” command, but this could also mean some bigger problems with your system configuration. So it’s best to check if perl has not been misinstalled in some way.

Similar posts:

1 Response to “Command “no” not found”


  1. Gravatar Icon 1 Karol

    Another problem I have seen with this build is the expression:
    und(|ef)
    which needs to be changed to:
    und(ef)?

    Another note – you’d better switch from (m)awk to gawk if you’re trying to build glibc on your own. But still, using gawk did not solve the problem with und(|ef), so I had to make a manual patch.

    Read more here: http://archives.devshed.com/forums/development-94/use-posix-awk-expression-rather-than-gnu-extension-2392367.html

Leave a Reply




Subscribe without commenting