develooper Front page | perl.perl5.porters | Postings from March 2018

[perl #132954] Regarding Perl installation

Thread Next
James E Keenan via RT
March 8, 2018 15:27
[perl #132954] Regarding Perl installation
Message ID:
On Thu, 08 Mar 2018 12:56:59 GMT, wrote:
> Hi,
> OS is SunOS uamqmyy002l 5.10 Generic_150400-21 sun4v sparc sun4v.

Thank you for this report.  Unfortunately, as you can see from a search at, we have not gotten smoke test reports for perl on SunOS for several years.  Nevertheless, we will try our best to assist you.

> Our apache version is 2.4.29
> We are trying to install perl and mod and perl but we are getting
> errors while installing perl itself, while doing make test throwing
> below error.

Note that in this response I won't touch upon your mod_perl issues, as mod_perl is outside the Perl 5 core distribution and not maintained by Perl 5 Porters.

> Perl version we are installing is perl-5.26.1.
> Steps we did to install perl
> Downloaded from perl version perl-5.26.1.tar from
> Untar perl
> Run below command to install perl
> /Configure -des -Dprefix=/www/perl/perl-5.26.1 -Dcc=gcc -Dusethreads
> -A ccflags=-fPIC

I believe it is customary not to have whitespace between '-A' and 'ccflags'.  This probably is not the source of your problem, but you may want to try it with the space closed up.

> I tried setting below environment variables but no use.
> export LDFLAGS=" -L/usr/sfw/lib -R/usr/sfw/lib -L/usr/X/lib
> -R/usr/X/lib -L/usr/X11/lib -R/usr/X11/lib -L/usr/ccs/lib
> -R/usr/ccs/lib "
> export PATH=/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/sfw/sbin
> export LD_LIBRARY_PATH=/usr/lib:/usr/sfw/lib
> export LD_LIBRARY_PATH_64=/usr/lib/sparcv9:/usr/lib/64:/usr/sfw/lib/64
> export CC=gcc
> export CFLAGS=-m64
> export CPP_FLAGS=-m64
> lib/warnings ................................................... ok
> Failed 1 test out of 2437, 99.96% okay.
>         ../ext/POSIX/t/math.t
> ### Since not all tests were successful, you may want to run some of
> ### them individually and examine any diagnostic messages they
> produce.
> ### See the INSTALL document's section on "make test".
> ### You have a good chance to get more information by running
> ###   ./perl harness
> ### in the 't' directory since most (>=80%) of the tests succeeded.
> ### You may have to set your dynamic library search path,
> ### LD_LIBRARY_PATH, to point to the build directory:
> ###   setenv LD_LIBRARY_PATH `pwd`:$LD_LIBRARY_PATH; cd t; ./perl
> harness
> cd t; ./perl harness
> ###   export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH; cd t; ./perl
> harness
> ### for csh-style shells, like tcsh; or for traditional/modern
> ### Bourne-style shells, like bash, ksh, and zsh, respectively.
> Elapsed: 4384 sec
> u=57.06  s=13.27  cu=3401.84  cs=167.87  scripts=2437  tests=1243077
> *** Error code 1
> make: Fatal error: Command failed for target `test'
> [root@uamqmyy002l]#

If you got this far, then you built perl-5.26.1 successfully, but one test file has failed.  That's actually quite a good result for an operating system we haven't been tested on in five years.

In the directory where you built perl-5.26.1, please try:

$> cd t; ./perl harness -v ../ext/POSIX/t/math.t; cd -

... then send the output as an attachment to your response.

> I have taken perl harness report I did not see any  failed errors
> report  no use.
> [skipping discussion of mod_perl problems]

> Please help me resolve above perl issue first .
> Thanks and Regrads
> Ravi Teja

Thank you very much.

James E Keenan (

via perlbug:  queue: perl5 status: new

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About