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

[perl #132954] Regarding Perl installation

Thread Previous
From:
Ravi Avireneni
Date:
March 8, 2018 13:39
Subject:
[perl #132954] Regarding Perl installation
Message ID:
rt-4.0.24-28613-1520513819-1452.132954-75-0@perl.org
# New Ticket Created by  Ravi Avireneni 
# Please include the string:  [perl #132954]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=132954 >


Hi,

OS is SunOS uamqmyy002l 5.10 Generic_150400-21 sun4v sparc sun4v.

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.

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 http://www.cpan.org/src/README.html

Untar perl

Run below command to install perl

/Configure -des -Dprefix=/www/perl/perl-5.26.1 -Dcc=gcc -Dusethreads -A ccflags=-fPIC

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
###   LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; 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]#

I have taken perl harness report I did not see any  failed errors report  no use.

Note: I am able to install perl with lower version perl-5.20.0 without any problem, but getting errors while building mod_perl.so. Mod_perl.so we are trying to compile is mod_perl-2.0.10.tar.

\
   -L/www/apache_2.4.29/lib -laprutil-1 -lexpat -L/www/apache_2.4.29/lib -lapr-1 -luuid -lsendfile -lrt -lsocket -lnsl -lpthread        \

ld: fatal: file /www/apache_2.4.29/lib/libaprutil-1.so: wrong ELF class: ELFCLASS64
ld: fatal: file /www/apache_2.4.29/lib/libapr-1.so: wrong ELF class: ELFCLASS64
ld: fatal: file processing errors. No output written to ../../../blib/arch/auto/APR/APR.so
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `../../../blib/arch/auto/APR/APR.so'
Current working directory /www/mod_perl-2.0.10/xs/APR/APR
*** Error code 1

I checked the files are they compiling  with 64 bit or 32 bit they are compiling with 64 bit.

libaprutil-1.so:        ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped, no debugging information available
[sramireddy@uamqmyy002l]$ file libapr-1.so.0
libapr-1.so.0:  ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped, no debugging information available

My collogue send me below matrix of perl compatibility.
mod_perl 2.0.8 and older support neither Apache 2.4 nor Perl 5.22 and newer.
mod_perl 2.0.9 added support for Apache 2.4, but did not support Perl 5.22.
mod_perl 2.0.10 also added support for Perl 5.22 and newer.


Please help me resolve above perl issue first .


Thanks and Regrads
Ravi Teja


Confidential Communication: The contents of this e-mail including any attachment are confidential and intended solely for the person(s) to whom they are addressed. Any reader of this email who is not the intended recipient is notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete all copies from your computer system. Subsequent alterations to this email after its transmission will be disregarded.


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About