GNU bug report logs -
#74453
running make failed when perl is installed in the very long path
Previous Next
Full log
View this message in rfc822 format
On 2024-11-20 21:56, Li, Changqing via Bug reports for Automake wrote:
> The failure is caused by the long path of the perl in aclocal.in, the
> shebang is cutted. Could we change it like following diff?
> [...]
> -#!@PERL@
> +#!/usr/bin/env perl
Hardcoding program names like this isn't really going to work well as a
general solution.
I was going to suggest you could just configure for your system with:
./configure PERL='/usr/bin/env perl'
and it will substitute that into the scripts for you, but the configure
script in Automake 1.17 exits with a fatal error if it determines that
$PERL contains spaces. We should probably make this non fatal since the
check is clearly too broad. You can patch configure to not exit:
--- configure~
+++ configure
@@ -3514,7 +3514,7 @@ case $PERL in
as_fn_error $? "perl not found" "$LINENO" 5
;;
*' '* | *' '*)
- as_fn_error $? "The path to your Perl contains spaces or tabs.
+: as_fn_error $? "The path to your Perl contains spaces or tabs.
This would cause build failures later or unusable programs.
Please use a path without spaces and try again." "$LINENO" 5
;;
and then it will let you set PERL='/usr/bin/env perl' and it will work.
Hope that helps,
Nick
This bug report was last modified 176 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.