[Orca-users] Re: running make after configure

tburke at timebridge.com tburke at timebridge.com
Wed Aug 29 05:26:12 PDT 2001


-

When I installed perl I installed the precompiled version from
sunsoftware onto a ultra 10.  I used /orca as the base install dir for
pkgadd.  I untarred the orca files into /opt/orca-0.26

perl -V shows....
Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under solaris
  Compiled at Apr 26 2001 16:17:32
  %ENV:
  
PERL5LIB="/orca/bin:/orca/lib/perl5/5.6.1:/orca/lib/perl5/5.6.1/sun4-solaris:"
  @INC:
    /orca/bin
    /orca/lib/perl5/5.6.1/sun4-solaris
    /orca/lib/perl5/5.6.1
    /orca/lib/perl5/5.6.1/sun4-solaris
    /usr/local/lib/perl5/5.6.1/sun4-solaris
    /usr/local/lib/perl5/5.6.1
    /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris
    /usr/local/lib/perl5/site_perl/5.6.1
    /usr/local/lib/perl5/site_perl


which perl shows...
# which perl
/orca/bin/perl

configure runs fine and shows....





# configure --prefix=/orca --with-html-dir=/orca/html
creating cache ./config.cache
checking host system type... sparc-sun-solaris2.7
checking target system type... sparc-sun-solaris2.7
checking build system type... sparc-sun-solaris2.7
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether make sets ${MAKE}... yes
checking for bzip2... /opt/TWWfsw/TWW/bin/bzip2
checking for bunzip2... no
checking for compress... /usr/bin/compress
checking for cut... /usr/bin/cut
checking for expr... /usr/bin/expr
checking for gzip... /opt/TWWfsw/TWW/bin/gzip
checking for gunzip... /opt/TWWfsw/TWW/bin/gunzip
checking for mawk... no
checking for gawk... /opt/TWWfsw/TWW/bin/gawk
checking for perl... /orca/bin/perl
checking if '/orca/bin/perl' will run Perl scripts... yes
checking for ps... /usr/bin/ps
checking for ps command... /usr/bin/ps -p PID -o \'rss vsz pmem time
user pid comm\'
checking for se... /opt/RICHPse/bin/se
checking for uname... /usr/bin/uname
checking for uncompress... /usr/bin/uncompress
checking if Perl module Data::Dumper version 2.101 is installed... yes
checking if Perl module Digest::MD5 version 2.09 is installed... no
checking if Perl module Math::Interpolate version 1.05 is installed...
no
checking if Perl module RRDs version 1.000131 is installed... no
checking if Perl module Storable version 0.609 is installed... no

So at this point all looks good but when I run the make after the
configure I get this error


# make
cd packages && make CFLAGS=-g -O2
make[1]: Entering directory `/opt/orca-0.26/packages'
cd Digest-MD5-2.09 && /orca/bin/perl Makefile.PL
Testing alignment requirements for U32... u32align.c:9: EXTERN.h: No
such file or directory
u32align.c:10: perl.h: No such file or directory
Can't compile test program
Checking if your kit is complete...
Looks good

Error: Unable to locate installed Perl libraries or Perl source code.

It is recommended that you install perl in a standard location before
building extensions. Some precompiled versions of perl do not contain
these header files, so you cannot build extensions. In such a case,
please build and install your perl from a fresh perl distribution. It
usually solves this kind of problem.

(You get this message, because MakeMaker could not find
"/usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/perl.h")

It seems like it still wants to go to /usr/local/lib.

Any suggestions.  I'm trying to find where the Makefile is that
contains this path. Perhps I can change it by hand.

Mike

-- In orca-users at y..., Blair Zajac <blair at o...> wrote:
> A couple of questions:
>
> 1) When you installed Perl, what exactly did you install?
>
> 2) I'm guessing you didn't do this, but if you mount /usr/local/perl
> to /orca/lib/perl5 then you still won't have write permissions.
>
> 3) When you ran configure, which Perl did it find?
>
> It looks like even if you have the new Perl installed, you still
need
> to have the new Perl in your path since some of the Perl warning
> messages you have show the /usr/local perl.
>
> Blair
>
> tburke at t... wrote:
> >
> > In my instance I'm was nfs mounting perl in /usr/local.  I dont
have
> > permission to put the modules there so I went and got perl 5.6.1.
I
> > extracted orca to /opt/orca-0.26.  I've created a mount point
/orca
> > for the files.  I also placed perl in /orca as below
> >
> > /orca/var/orca/orcallator
> > /orca/var/orca/rrd/orcallator
> > /orca/var/orca/rrd
> > /orca/var/orca
> > /orca/var
> > /orca/lib/Orca
> > /orca/lib/perl5/5.6.1
> > /orca/man/man1
> >
> > etc.
> >
> > I run configure as below...
> > configure --prefix=/orca --with-html-dir=/orca/html
> >
> > configure runs fine but make give the following error
> >
> > # make
> > cd packages && make CFLAGS=-g -O2
> > make[1]: Entering directory `/opt/orca-0.26/packages'
> > cd Digest-MD5-2.09 && /orca/bin/perl Makefile.PL
> > Testing alignment requirements for U32... u32align.c:9: EXTERN.h:
No
> > such file or directory
> > u32align.c:10: perl.h: No such file or directory
> > Can't compile test program
> > Checking if your kit is complete...
> > Looks good
> >
> > Error: Unable to locate installed Perl libraries or Perl source
code.
> >
> > It is recommended that you install perl in a standard location
before
> > building extensions. Some precompiled versions of perl do not
contain
> > these header files, so you cannot build extensions. In such a
case,
> > please build and install your perl from a fresh perl distribution.
It
> > usually solves this kind of problem.
> >
> > (You get this message, because MakeMaker could not find
> > "/usr/local/lib/perl5/5.6.1/sun4-solaris/CORE/perl.h")
> > make[1]: *** [Digest-MD5-2.09/Makefile] Error 2
> > make[1]: Leaving directory `/opt/orca-0.26/packages'
> > cd lib && make CFLAGS=-g -O2
> > make[1]: Entering directory `/opt/orca-0.26/lib'
> > make[1]: Nothing to be done for `all'.
> > make[1]: Leaving directory `/opt/orca-0.26/lib'
> > cd src && make CFLAGS=-g -O2
> > make[1]: Entering directory `/opt/orca-0.26/src'
> > make[1]: Nothing to be done for `all'.
> > make[1]: Leaving directory `/opt/orca-0.26/src'
> > cd orcallator && make CFLAGS=-g -O2
> > make[1]: Entering directory `/opt/orca-0.26/orcallator'
> > cat ../config/PerlHead1 orcallator_running.pl > orcallator_running
> > chmod 0755 orcallator_running
> > cp restart_orcallator.sh restart_orcallator
> > chmod 0755 restart_orcallator
> > cp stop_orcallator.sh stop_orcallator
> > chmod 0755 stop_orcallator
> > cp start_orcallator.sh start_orcallator
> > chmod 0755 start_orcallator
> > cp S99orcallator.sh S99orcallator
> > chmod 0755 S99orcallator
> > make[1]: Leaving directory `/opt/orca-0.26/orcallator'
> > cd docs && make CFLAGS=-g -O2
> > make[1]: Entering directory `/opt/orca-0.26/docs'
> > pod2man ../src/orca.pl > orca.man
> > syntax error at /orca/lib/perl5/5.6.1/warnings.pm line 311, near
"{^"
> > BEGIN failed--compilation aborted at /orca/lib/perl5/5.6.1/vars.pm
> > line 12.
> > BEGIN failed--compilation aborted at
> > /orca/lib/perl5/5.6.1/Getopt/Long.pm line 37.
> > BEGIN failed--compilation aborted at /orca/bin/pod2man line 15.
> > make[1]: *** [orca.man] Error 2
> > make[1]: Leaving directory `/opt/orca-0.26/docs'
> > make: *** [all] Error 2
> >
> > I searched the posts and found some similar items.  I'm sure I'm
just
> > missing something simple in the setup.  Any ideas?
> >
> > Mike



More information about the Orca-users mailing list