recently, i try to compile a gnu wget from source code in cygwin environtment that pop-up error if perl is not found
. otherwise, perl is installed both perl and perl5 on /bin/ but the wget is try search perl on /usr/bin. i think i have missed basic ./configure to setup path executable. so my question is basic.
what is it all about options on below:
*
--bindir=DIR
--sbindir=DIR
--libexecdir=DIR
*
Thank you
These options specify directories where a software package being compiled is going to be installed. As far as I remember it doesn't deal with checks performed by configure. Make sure that perl
is in $PATH
. If nothing helps, try to locate the exact place in the configure script (usually it's robot-generated and not intended for human eyes, but afterall it's a shell script, and anybody can read it) and see what checks exactly are performed to locate perl
.
Update: I have checked, the tests corresponding to perl look like this in configure.ac
(which essentially is a "source code" for configure
):
AC_PATH_PROGS(PERL, [perl5 perl], no)
AC_PATH_PROG(POD2MAN, pod2man, no)
This means that PERL
with executable named perl5
or perl
(somewhere in $PATH
) is checked, and then POD2MAN
with executable pod2man
. Carefully check the configure output and config.log
file and see what tests have failed.
Update2: The third argument of the AC_PATH_PROG
and AC_PATH_PROGS
is value-if-no-found. Also you may specify the fourth argument, $PATH
for this particular check. Make sure that configure
gets rebuilt after you changed configure.ac
(usually it happens automatically, but may be performed by autoconf
explicitly)