From: Tanaka Akira Date: 2005-09-22T15:42:08+09:00 Subject: [ruby-dev:27283] Re: env -i make; fails. In article , nobuyoshi nakada writes: > 普通は > > $ env -i make > env: make: No such file or directory > > となって通る通らない以前にmakeの実行すらできないはずです。 PATH が設定されていないときにはデフォルトの値が使われるのでは。 たとえば execlp, execvp の説明には The functions execlp and execvp will duplicate the actions of the shell in searching for an executable file if the specified file name does not contain a slash (/) character. The search path is the path specified in the environment by the PATH variable. If this variable isn't speci- fied, the default path ``:/bin:/usr/bin'' is used. In addition, cer- tain errors are treated specially. というように :/bin:/usr/bin というのが使われるとあります。 他にも、sh(1) や environ(5) にも説明があるかもしれません。 というわけで、デフォルトの値に入っているディレクトリに make があれば、 実行できると思います。 実際、私の環境では % env -i make make: *** No targets specified and no makefile found. Stop. というように動きます。 % uname -a Linux serein 2.4.20-686 #1 Mon Jan 13 22:22:30 EST 2003 i686 GNU/Linux -- [田中 哲][たなか あきら][Tanaka Akira]