Skip to content

Instantly share code, notes, and snippets.

@harthur
Created July 10, 2012 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harthur/3083714 to your computer and use it in GitHub Desktop.
Save harthur/3083714 to your computer and use it in GitHub Desktop.
Firefox Perl configure error
fx-team $ make -f client.mk configure
cp /Users/harth/hgs/fx-team/mozconfig obj-x86_64-apple-darwin10.8.0/.mozconfig
cd obj-x86_64-apple-darwin10.8.0
/Users/harth/hgs/fx-team/configure
Adding configure options from /Users/harth/hgs/fx-team/mozconfig:
--enable-chrome-format=symlink
loading cache ./config.cache
checking host system type... x86_64-apple-darwin10.8.0
checking target system type... x86_64-apple-darwin10.8.0
checking build system type... x86_64-apple-darwin10.8.0
checking for mawk... (cached) gawk
checking for gcc-4.2... (cached) /usr/bin/gcc-4.2
checking for g++-4.2... (cached) /usr/bin/g++-4.2
checking for perl5... (cached) /opt/local/bin/perl5
checking for gcc... (cached) /usr/bin/gcc-4.2
checking whether the C compiler (/usr/bin/gcc-4.2 ) works... yes
checking whether the C compiler (/usr/bin/gcc-4.2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether /usr/bin/gcc-4.2 accepts -g... (cached) yes
checking for c++... (cached) /usr/bin/g++-4.2
checking whether the C++ compiler (/usr/bin/g++-4.2 ) works... yes
checking whether the C++ compiler (/usr/bin/g++-4.2 ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether /usr/bin/g++-4.2 accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for as... (cached) /usr/bin/as
checking for ar... (cached) ar
checking for ld... (cached) ld
checking for strip... (cached) strip
checking for windres... no
checking how to run the C preprocessor... (cached) /usr/bin/gcc-4.2 -E
checking how to run the C++ preprocessor... (cached) /usr/bin/g++-4.2 -E
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking for minimum required perl version >= 5.006...
configure: error: Perl 5.006 or higher is required.
*** Fix above errors and then restart with "make -f client.mk build"
make: *** [configure] Error 1
fx-team $ perl -v
This is perl, v5.10.0 built for darwin-thread-multi-2level
@harthur
Copy link
Author

harthur commented Jul 10, 2012

Solution:

configure is looking for whichever perl is set in $PERL:

export PERL=/usr/bin/perl

@yradtsevich
Copy link

I had the same problem. Removing old object directory had helped me:

rm -rf objdir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment