Posted on 2008-01-15 09:54:55-08 by freefox
Installing Clone
I have a newbe problem installing Clone.
What result is expected from the installation?

# perl Makefile.PL LIB=<lib> PREFIX=<lib>
Checking if your kit is complete...
Looks good
Writing Makefile for Clone

NOTE!!! Here I have to edit the created Makefile, remove ,-E to make the next step work. Otherwise I got the following link error:
LD_RUN_PATH="" gcc -Wl,-E -G Clone.o -o blib/arch/auto/Clone/Clone.so
/usr/ccs/bin/ld: illegal option -- E
# make
cp Clone.pm blib/lib/Clone.pm
AutoSplitting blib/lib/Clone.pm (blib/lib/auto/Clone)
perl <lib>/ExtUtils/xsubpp -typemap <lib>/ExtUtils/typemap Clone.xs > Clone.xsc && mv Clone.xsc Clone.c
gcc -c -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -DVERSION=\"0.28\" -DXS_VERSION=\"0.28\" -fPIC "-I<lib>/sun4-solaris/CORE" Clone.c
Running Mkbootstrap for Clone ()
chmod 644 Clone.bs
rm -f blib/arch/auto/Clone/Clone.so
LD_RUN_PATH="" gcc -Wl -G Clone.o -o blib/arch/auto/Clone/Clone.so
chmod 755 blib/arch/auto/Clone/Clone.so
cp Clone.bs blib/arch/auto/Clone/Clone.bs
chmod 644 blib/arch/auto/Clone/Clone.bs
Manifying blib/man3/Clone.3

# make install
Installing <lib>/sun4-solaris/auto/Clone/Clone.so
Installing <lib>/sun4-solaris/auto/Clone/Clone.bs
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing <lib>/sun4-solaris/Clone.pm
Installing <lib>/sun4-solaris/auto/Clone/autosplit.ix
Installing <lib>/man/man3/Clone.3
Writing <lib>/sun4-solaris/auto/Clone/.packlist
Appending installation info to <lib>/sun4-solaris/perllocal.pod

Can't see any executable Clone file.

Now when I try to run the Perl-Critic, (my gool for now) it crashes with
Can't locate object method "bootstrap" via package "Clone" (perhaps you forgot to load "Clone"?) at <lib>/sun4-solaris/Clone.pm line 21.

Clone.pm:21
bootstrap Clone $VERSION;

Where do I go wrong?
/freefox

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.