1748199 Members
2998 Online
108759 Solutions
New Discussion юеВ

Re: Cant install Perl

 
SOLVED
Go to solution
bambino
New Member

Cant install Perl

Hi Guys,

i'm having problem when installing Perl (v5.8.9).
At first my problem is with C Compiler, but after install GCC that C Compiler issue solved.

At first i'm using this command to configure:
sh Configure -Dcc=gcc -de


The problems started when i ran "make" command.Below are the errors:


root@cartoon: make
`sh cflags "optimize='-g -O'" miniperlmain.o` miniperlmain.c
CCCMD = gcc -DPERL_CORE -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
sh: gcc: not found.
*** Error exit code 127

Stop.

=====================================
my system running as below:

root@cartoon: uname -a
HP-UX cartoon B.11.11 U 9000/800 cartoon unlimited-user license

root@cartoon: swlist -l product | grep -i gcc
gcc 4.2.3 gcc
libgcc 4.2.3 libgcc

8 REPLIES 8
Dennis Handly
Acclaimed Contributor
Solution

Re: Cant install Perl

>sh: gcc: not found.

You need to put gcc in your $PATH. Or you need to use an absolute path.
bambino
New Member

Re: Cant install Perl

what command should i use to put the gcc in the $PATH or how to use the absolute path

Stephan.
Honored Contributor

Re: Cant install Perl

Hi,
run 'whereis gcc" to get the path to gcc, run 'vi /etc/PATH' and append it to the existing entries.
Dennis Handly
Acclaimed Contributor

Re: Cant install Perl

>what command should I use to put the gcc in the $PATH or how to use the absolute path

Where did you install gcc? In /usr/local/bin?
PATH=$PATH:/usr/local/bin
CCCMD = /usr/local/bin/gcc
bambino
New Member

Re: Cant install Perl

thanks for the reply to setting up the path, i successfully ran below command

sh Configure -de
make

but when type, make test command below error come out....



Failed 5 tests out of 1104, 99.55% okay.
../lib/ExtUtils/t/Constant.t
../lib/ExtUtils/t/INSTALL_BASE.t
../lib/ExtUtils/t/Install.t
../lib/ExtUtils/t/PL_FILES.t
../lib/ExtUtils/t/recurs.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`; cd t; ./perl harness
### LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH; cd t; ./perl harness
### export LD_LIBRARY_PATH=`pwd`; cd t; ./perl harness
### for csh-style shells, like tcsh; or for traditional/modern
### Bourne-style shells, like bash, ksh, and zsh, respectively.
u=4.56 s=4.18 cu=474.91 cs=82.08 scripts=1104 tests=132806
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.



since i'm using HP-UX where should i put the LD_LIBRARY_PATH

HP-UX sapphire B.11.11 U 9000/800
bambino
New Member

Re: Cant install Perl

just now i already set the path as below
export LD_LIBRARY_PATH=/usr/local/lib

and its 99.64% ok ... but still i got the error




Failed 4 tests out of 1104, 99.64% okay.
../lib/ExtUtils/t/Constant.t
../lib/ExtUtils/t/PL_FILES.t
../lib/ExtUtils/t/basic.t
../lib/ExtUtils/t/recurs.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.
u=4.45 s=4.07 cu=463.44 cs=72.63 scripts=1104 tests=132806
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
bambino
New Member

Re: Cant install Perl

succssfully installed even with error

LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd t; ./perl harness

root@cartoon: perl -v

This is perl, v5.8.9 built for PA-RISC2.0
Dennis Handly
Acclaimed Contributor

Re: Cant install Perl

>I already set the path as below
export LD_LIBRARY_PATH=/usr/local/lib

If you are using PA32, then you must use SHLIB_PATH and not LD_LIBRARY_PATH.