PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Damodharan, Venkat (VDamodharan)" <Venkat dot Damodharan at dresdnerrcm dot com>
Subject: RE: Errors running 'make test'
Date: Nov 12 1998 6:26PM

Hello there,

	As you have suggested, I have set the PERL5LIB environment to
"/opt/gnu_mnt/perl5/lib:/opt/gnu_mnt/perl5/lib/site_perl"

I have verified the @INC environment, using the 'perl -V' command, I have
given below the output of the result:
============================================================================
========
Summary of my perl5 (5.0 patchlevel 4 subversion 1) configuration:
  Platform:
    osname=hpux, osvers=10, archname=PA-RISC1.1
    uname='hp-ux vodka b.10.20 a 9000715 2008740986 two-user license '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=n useperlio= d_sfio=
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.7.2.1
    cppflags='-D_HPUX_SOURCE -I/usr/local/include -I/opt/gnu/include'
    ccflags ='-D_HPUX_SOURCE -I/usr/local/include -I/opt/gnu/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib -L/opt/gnu/lib'
    libpth=/usr/local/lib /opt/gnu/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
    libs=-lnet -lnsl_s -lndbm -ldb -ldld -lm -lc -lndir -lcrypt
    libc=/lib/libc.sl, so=sl
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=, ccdlflags='-Wl,-E
-Wl,-B,deferred '
    cccdlflags='-fpic', lddlflags='-b -L/usr/local/lib -L/opt/gnu/lib' 
 libs=-lnet -lnsl_s -lndbm -ldb -ldld -lm -lc -lndir -lcrypt
    libc=/lib/libc.sl, so=sl
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=, ccdlflags='-Wl,-E
-Wl,-B,deferred '
    cccdlflags='-fpic', lddlflags='-b -L/usr/local/lib -L/opt/gnu/lib'


Characteristics of this binary (from libperl):
  Built under hpux
  Compiled at Oct  9 1997 11:05:25
  %ENV:
    PERL5LIB="/opt/gnu_mnt/perl5/lib:/opt/gnu_mnt/perl5/lib/site_perl"
  @INC:
    /opt/gnu_mnt/perl5/lib/PA-RISC1.1/5.00401
    /opt/gnu_mnt/perl5/lib
    /opt/gnu_mnt/perl5/lib/site_perl/PA-RISC1.1
    /opt/gnu_mnt/perl5/lib/site_perl
    /opt/gnu/perl5/lib/PA-RISC1.1/5.00401
    /opt/gnu/perl5/lib
    /opt/gnu/perl5/lib/site_perl/PA-RISC1.1
    /opt/gnu/perl5/lib/site_perl    
============================================================================
==================
When I ran the 'perl Makefile.PL', I have received:


-----------------------------------------------------------
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
"/opt/gnu/perl5/lib/PA-R
ISC1.1/5.00401/CORE/perl.h")
-------------------------------------------------------------------------

This is the problem, I am having.  What is your suggestion.  How do I make
the MakeMaker to look into the
"/opt/gnu_mnt/perl5/lib/PA-RISC1.1/5.00401/CORE/*"?.

Is there any other PERL environments need to set?.
(LIke PERL_SRC,PERL_INC or something like that?).

Finally, sorry for keep coming to you.  I don't know, where else to turn to.

Also, one more question, do you think it is good to change perl executable,
with out affecting the exiting one.  My manager does not want to disturb the
existing one.  I have given permission to do the extension only.  The source
write permission is removed, to make sure no body plays around there.

Suggestions?.

Regards

Venkat

-----Original Message-----
From: Michael Peppler [mailto:mpeppler@mbay.net]
Sent: Thursday, November 12, 1998 9:20 AM
To: SybPerl Discussion List
Subject: RE: Errors running 'make test'


Damodharan, Venkat (VDamodharan) writes:
 > Hi there,
 > 
 > I have a perl 5_0004 installed on /opt/gnu/perl5 directory initially, it
 > seems that some one has
 > moved it to /opt/gnu_mnt/perl5 directory later.  My perl @INC list is
 > looking into /opt/gnu/perl5 directory only.  I need to change the @INC to
 > look into /opt/gnu_mnt/perl5.  How can I do that?.

You need to add *all* the appropriate entries that you normally find
in perl -V to PERL5LIB.

For example, perl5.004_04 here needs 
    /opt/gnu/lib/perl5/sun4-solaris/5.00404
    /opt/gnu/lib/perl5
    /opt/gnu/lib/perl5/site_perl/sun4-solaris
    /opt/gnu/lib/perl5/site_perl

So you would need to do something like:

setenv PERL5LIB
"/opt/gnu_mnt/lib/perl5/sun4-solaris/5.00404:/opt/gnu_mnt/lib/perl5:/opt/gnu
_mnt/lib/perl5/site_perl/sun4-solaris:/opt/gnu_mnt/lib/perl5/site_perl

which *should* work.

Michael

 > 
 > -----Original Message-----
 > From: Anil Sodhy [mailto:asodhy@clark.net]
 > Sent: Thursday, November 12, 1998 8:36 AM
 > To: SybPerl Discussion List
 > Subject: Errors running 'make test'
 > 
 > 
 > Thanks to Michael Peppler's comments on sybperl
 > (http://www.mbay.net/~mpeppler/Linux-ASE-FAQ.html) I have managed to get
 > sybperl to run on my RedHat 5.1 Linux box.  
 > 
 > I did, however, have to recompile perl.  The source for perl 5.005_02 was
 > downloaded freshly from http://www.perl.com/pace/pub/perldocs/latest.html
 > (I selected the latest stable release). I am not sure how that has
 > affected perl in general.  I don't use perl a whole lot and am very weak
 > in it so I may not get to stress-test perl with the changes I had to make
 > in order to get sybperl to work. In any case, with the limited testing I
 > have done, it does work well enough in order to query the co-resident
 > Sybase DB.
 > 
 > The sample code provided on
 > http://www.mbay.net/~mpeppler/Sybperl/sybperl.html#Sybase_DBlib works
very
 > well.
 > 
 > Thanks, Michael, for a great job!
 > 
 > Anil K. Sodhy (asodhy@clark.net)
 > 
 > 

-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@mbay.net       -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com