After installing I run a "test" and get the following error...
Below is the install ... which I tried several times... 

I am trying to have the dir Crypt end up in the dir Library

Any help or suggestions will be appreciated.


DEV,SUN2>pwd
/opt/common/html/td_dev/cgi-bin
DEV,SUN2>./foo
Can't locate loadable object for module Crypt::TEA in @INC (@INC contains:
Library /usr/local/lib/perl5/5.8.0/sun4-solaris /usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl/5.005
/usr/local/lib/perl5/site_perl .) at ./foo line 3
Compilation failed in require at ./foo line 3.
BEGIN failed--compilation aborted at ./foo line 3.

DEV,SUN2>more foo
#! /usr/local/bin/perl
use lib 'Library';
use Crypt::TEA;
$key='MyPasswd';
$cipher = Crypt::TEA->new($key);
$encrypt = $cipher->encrypt('BoyCat');
print $cipher->decrypt($encrypt), "\n";
DEV,SUN2>whereis perl
perl: /usr/bin/perl /usr/local/bin/perl /usr/local/bin/perl5.003
/usr/local/bin/perl5.00502

Here is the install .... <=======================

DEV,SUN2>pwd
/opt/common/html/td_dev/cgi-bin/Library

DEV,SUN2>ls Cr*
Crypt-TEA-1.25.tar

DEV,SUN2>tar -xofv Crypt-TEA-1.25.tar <=================================
x Crypt-TEA-1.25, 0 bytes, 0 tape blocks
x Crypt-TEA-1.25/typemap, 20 bytes, 1 tape blocks
x Crypt-TEA-1.25/tea.h, 457 bytes, 1 tape blocks
x Crypt-TEA-1.25/Makefile.PL, 2032 bytes, 4 tape blocks
x Crypt-TEA-1.25/Changes, 621 bytes, 2 tape blocks
x Crypt-TEA-1.25/test.pl, 1989 bytes, 4 tape blocks
x Crypt-TEA-1.25/_tea.c, 2038 bytes, 4 tape blocks
x Crypt-TEA-1.25/ppport.h, 7795 bytes, 16 tape blocks
x Crypt-TEA-1.25/TEA.xs, 1556 bytes, 4 tape blocks
x Crypt-TEA-1.25/TEA.pm, 2857 bytes, 6 tape blocks
x Crypt-TEA-1.25/README, 2112 bytes, 5 tape blocks
x Crypt-TEA-1.25/MANIFEST, 88 bytes, 1 tape blocks

DEV,SUN2>ls Cr*
Crypt-TEA-1.25.tar

Crypt-TEA-1.25:
Changes      Makefile.PL  TEA.pm       _tea.c       tea.h        typemap
MANIFEST     README       TEA.xs       ppport.h     test.pl

DEV,SUN2>echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/usr/ucb:/etc:/usr/loc
al/bin:/opt/oracle/app/oracle/product/8.1.7/bin

DEV,SUN2>pwd
/opt/common/html/td_dev/cgi-bin/Library/Crypt-TEA-1.25
==================
DEV,SUN2>perl Makefile.PL PREFIX=/opt/common/html/td_dev/cgi-bin/Library
===================
Searching for uint*_t... no
Checking if your kit is complete...
Looks good
Writing Makefile for Crypt::TEA

DEV,SUN2>make   <=====================================================
cp TEA.pm blib/lib/Crypt/TEA.pm
/usr/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap
/usr/local/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap  TEA.xs >
TEA.xsc && mv TEA.xsc TEA.c
gcc -B/usr/ccs/bin/ -c   -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"1.25\" -DXS_VERSION=\"1.25\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE"   TEA.c
/bin/sh: gcc: not found
make: *** [TEA.o] Error 1

DEV,SUN2>ls /opt/bin    <================================================
adiscf                    cwsource                  gcc
analyze                   d                         gccbug
...

DEV,SUN2>PATH=$PATH:/opt/bin    <==========================================

DEV,SUN2>make <==========================================================
gcc -B/usr/ccs/bin/ -c   -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"1.25\" -DXS_VERSION=\"1.25\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE"   TEA.c
In file included from tea.h:7,
                 from TEA.xs:11:
platform.h:6: warning: redefinition of `uint16_t'
/usr/include/sys/int_types.h:79: warning: `uint16_t' previously declared
here
platform.h:7: warning: redefinition of `uint32_t'
/usr/include/sys/int_types.h:80: warning: `uint32_t' previously declared
here
gcc -B/usr/ccs/bin/ -c   -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"1.25\" -DXS_VERSION=\"1.25\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE"   _tea.c
Running Mkbootstrap for Crypt::TEA ()
chmod 644 TEA.bs
rm -f blib/arch/auto/Crypt/TEA/TEA.so
LD_RUN_PATH="" gcc -B/usr/ccs/bin/  -G -L/usr/local/lib TEA.o _tea.o  -o
blib/arch/auto/Crypt/TEA/TEA.so
chmod 755 blib/arch/auto/Crypt/TEA/TEA.so
cp TEA.bs blib/arch/auto/Crypt/TEA/TEA.bs
chmod 644 blib/arch/auto/Crypt/TEA/TEA.bs
Manifying blib/man3/Crypt::TEA.3

DEV,SUN2>make test      <===============================================
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..6
ok 1
ok 2
ok 3
skipping Crypt::CBC test

Benchmarks
Encrypting (20,000 cycles, uncached cipher):  2 wallclock secs ( 1.73 usr +
0.26 sys =  1.99 CPU)
Decrypting (20,000 cycles, uncached cipher):  2 wallclock secs ( 1.82 usr +
0.24 sys =  2.06 CPU)
Encrypting (50,000 cycles,   cached cipher):  1 wallclock secs ( 1.77 usr +
0.00 sys =  1.77 CPU)
Decrypting (50,000 cycles,   cached cipher):  2 wallclock secs ( 1.88 usr +
0.00 sys =  1.88 CPU)
DEV,SUN2>

DEV,SUN2>pwd
/opt/common/html/td_dev/cgi-bin/Library/Crypt-TEA-1.25

DEV,SUN2>make install   <================================================
Installing
/opt/common/html/td_dev/cgi-bin/Library/lib/perl5/site_perl/5.8.0/sun4-solar
is/auto/Crypt/TEA/TEA.so
Installing
/opt/common/html/td_dev/cgi-bin/Library/lib/perl5/site_perl/5.8.0/sun4-solar
is/auto/Crypt/TEA/TEA.bs
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree
Installing
/opt/common/html/td_dev/cgi-bin/Library/lib/perl5/site_perl/5.8.0/sun4-solar
is/Crypt/TEA.pm
Installing /opt/common/html/td_dev/cgi-bin/Library/man/man3/Crypt::TEA.3
Writing
/opt/common/html/td_dev/cgi-bin/Library/lib/perl5/site_perl/5.8.0/sun4-solar
is/auto/Crypt/TEA/.packlist
Appending installation info to
/opt/common/html/td_dev/cgi-bin/Library/lib/perl5/5.8.0/sun4-solaris/perlloc
al.pod

===================================
I moved the dir Crypt to /opt/common/html/td_dev/cgi-bin/Library
Where I wanted it to be... 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to