On Sat, Apr 19, 2008 at 12:35 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote:
> Sharan Basappa wrote:
>
> > I downloaded version and installed it. That went smoothly. When I go back
> to text-balanced installation, it still does not seem to locate version.pm
> >
>
>  I think it's advisable to follow the recommendation in
>
>     perldoc -q "own module"
>
>  and use both the PREFIX and LIB options.
>
>  Usually I install Perl modules as root, but as a learning exercise I
> installed version and Text::Balanced as a usual user. The log from the
> installation follows below.
>
>  [EMAIL PROTECTED] .tmp]$ ls -lF
>  total 368
>  drwxr-xr-x    4 gunnarh  gunnarh      4096 Dec 19  2006
> Text-Balanced-v2.0.0/
>  -rw-r--r--    1 gunnarh  gunnarh    133120 Apr 18 13:39
> Text-Balanced-v2.0.0.tar
>  drwxr-xr-x    6 gunnarh  gunnarh      4096 Oct 24 20:47 version-0.74/
>  -rw-r--r--    1 gunnarh  gunnarh    225280 Apr 18 13:39 version-0.74.tar
>  [EMAIL PROTECTED] .tmp]$ cd version-0.74
>  [EMAIL PROTECTED] version-0.74]$ perl Makefile.PL PREFIX=/home/gunnarh/perl
> LIB=/home/gunnarh/perl/lib
>  Testing if you have a C compiler
>  Checking if your kit is complete...
>  Looks good
>  Writing Makefile for version::vxs
>  Writing Makefile for version
>  [EMAIL PROTECTED] version-0.74]$ make
>  cp lib/version.pm blib/lib/version.pm
>  cp lib/version.pod blib/lib/version.pod
>  make[1]: Entering directory `/home/gunnarh/.tmp/version-0.74/vutil'
>  cp lib/version/vxs.pm ../blib/lib/version/vxs.pm
>  gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
> -fno-strict-aliasing -I/usr/loca
>  l/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
> -O2 -g -pipe -march=i386 -m
>  cpu=i686   -DVERSION=\"0.74\" -DXS_VERSION=\"0.74\" -fPIC
> "-I/usr/lib/perl5/5.8.1/i386-linux-thread-
>  multi/CORE"   vutil.c
>  /usr/bin/perl /usr/lib/perl5/5.8.1/ExtUtils/xsubpp  -typemap
> /usr/lib/perl5/5.8.1/ExtUtils/typemap -
>  typemap ../lib/version/typemap  vxs.xs > vxs.xsc && mv vxs.xsc vxs.c
>  gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
> -fno-strict-aliasing -I/usr/loca
>  l/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
> -O2 -g -pipe -march=i386 -m
>  cpu=i686   -DVERSION=\"0.74\" -DXS_VERSION=\"0.74\" -fPIC
> "-I/usr/lib/perl5/5.8.1/i386-linux-thread-
>  multi/CORE"   vxs.c
>  Running Mkbootstrap for version::vxs ()
>  chmod 644 vxs.bs
>  rm -f ../blib/arch/auto/version/vxs/vxs.so
>  LD_RUN_PATH="" gcc  -shared -L/usr/local/lib vutil.o vxs.o  -o
> ../blib/arch/auto/version/vxs/vxs.so
>
>  chmod 755 ../blib/arch/auto/version/vxs/vxs.so
>  cp vxs.bs ../blib/arch/auto/version/vxs/vxs.bs
>  chmod 644 ../blib/arch/auto/version/vxs/vxs.bs
>  make[1]: Leaving directory `/home/gunnarh/.tmp/version-0.74/vutil'
>  Manifying blib/man3/version.3pm
>  [EMAIL PROTECTED] version-0.74]$ make test
>  make[1]: Entering directory `/home/gunnarh/.tmp/version-0.74/vutil'
>  make[1]: Leaving directory `/home/gunnarh/.tmp/version-0.74/vutil'
>  PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/ar
>  ch')" t/*.t
>  t/01base.......ok
>  t/02derived....ok
>  t/03require....ok
>         4/127 skipped: version require'd instead of use'd, cannot test qv
>  All tests successful, 4 subtests skipped.
>  Files=3, Tests=390,  1 wallclock secs ( 0.55 cusr +  0.03 csys =  0.58 CPU)
>  make[1]: Entering directory `/home/gunnarh/.tmp/version-0.74/vutil'
>  No tests defined for version::vxs extension.
>  make[1]: Leaving directory `/home/gunnarh/.tmp/version-0.74/vutil'
>  [EMAIL PROTECTED] version-0.74]$ make install
>  make[1]: Entering directory `/home/gunnarh/.tmp/version-0.74/vutil'
>  make[1]: Leaving directory `/home/gunnarh/.tmp/version-0.74/vutil'
>  Installing
> /home/gunnarh/perl/lib/i386-linux-thread-multi/auto/version/vxs/vxs.so
>  Installing
> /home/gunnarh/perl/lib/i386-linux-thread-multi/auto/version/vxs/vxs.bs
>  Files found in blib/arch: installing files in blib/lib into architecture
> dependent library tree
>  Installing /home/gunnarh/perl/lib/i386-linux-thread-multi/version.pod
>  Installing /home/gunnarh/perl/lib/i386-linux-thread-multi/version.pm
>  Installing /home/gunnarh/perl/lib/i386-linux-thread-multi/version/vxs.pm
>  Installing /home/gunnarh/perl/share/man/man3/version.3pm
>  Writing
> /home/gunnarh/perl/lib/i386-linux-thread-multi/auto/version/.packlist
>  Appending installation info to
> /home/gunnarh/perl/lib/i386-linux-thread-multi/perllocal.pod
>  [EMAIL PROTECTED] version-0.74]$ cd ..
>  [EMAIL PROTECTED] .tmp]$ cd Text-Balanced-v2.0.0
>  [EMAIL PROTECTED] Text-Balanced-v2.0.0]$ export
> PERL5LIB=/home/gunnarh/perl/lib
>  [EMAIL PROTECTED] Text-Balanced-v2.0.0]$ perl Makefile.PL
> PREFIX=/home/gunnarh/perl LIB=/home/gunnarh/
>  perl/lib
>  Checking if your kit is complete...
>  Looks good
>
>  Writing Makefile for Text::Balanced
>  [EMAIL PROTECTED] Text-Balanced-v2.0.0]$ make
>  cp lib/Text/Balanced.pm blib/lib/Text/Balanced.pm
>  Manifying blib/man3/Text::Balanced.3pm
>  [EMAIL PROTECTED] Text-Balanced-v2.0.0]$ make test
>  PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/ar
>  ch')" t/*.t
>  t/00.load.........ok 1/1# Testing Text::Balanced 2.0.0
>  t/00.load.........ok
>  t/extbrk..........ok
>  t/extcbk..........ok
>  t/extdel..........ok
>  t/extmul..........ok
>  t/extqlk..........ok
>  t/exttag..........ok
>  t/extvar..........ok
>  t/gentag..........ok
>  t/pod-coverage....skipped
>         all skipped: Test::Pod::Coverage 1.04 required for testing POD
> coverage
>  t/pod.............ok
>  All tests successful, 1 test skipped.
>  Files=11, Tests=561,  1 wallclock secs ( 1.01 cusr +  0.08 csys =  1.09
> CPU)
>  [EMAIL PROTECTED] Text-Balanced-v2.0.0]$ make install
>  Installing /home/gunnarh/perl/lib/Text/Balanced.pm
>  Installing /home/gunnarh/perl/share/man/man3/Text::Balanced.3pm
>  Writing
> /home/gunnarh/perl/lib/i386-linux-thread-multi/auto/Text/Balanced/.packlist
>  Appending installation info to
> /home/gunnarh/perl/lib/i386-linux-thread-multi/perllocal.pod
>  [EMAIL PROTECTED] Text-Balanced-v2.0.0]$ cd ../..
>  [EMAIL PROTECTED] gunnarh]$ cat test.pl
>  #!/usr/bin/perl
>  use lib "$ENV{HOME}/perl/lib";
>  use Text::Balanced 2;
>  print Text::Balanced->VERSION, "\n";
>  [EMAIL PROTECTED] gunnarh]$ ./test.pl
>  2.0.0
>  [EMAIL PROTECTED] gunnarh]$
>
>
>  --
>  Gunnar Hjalmarsson
>  Email: http://www.gunnar.cc/cgi-bin/contact.pl
>
>  --
>
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>  http://learn.perl.org/
>
>
>
Thanks. Looks like the install is successful. But I see one difference
between the install for Algorithm/Permute and Text-Balanced.
In the installed path of Permute, I can see site_perl and 5.8.5:
/u/basappas/local/perl/balanced_install/lib/perl5

Whereas in case of Text-Balanced, I dont see site_perl listed.
Did I miss any step:
/u/basappas/local/perl/balanced_install/lib/perl5

Here is how the installation went through:
perl Makefile.PL PREFIX=/u/basappas/local/perl/balanced_install
Writing Makefile for Text::Balanced

make install
Manifying blib/man3/Text::Balanced.3pm
Writing 
/u/basappas/local/perl/balanced_install/lib/perl5/5.8.5/i386-linux-thread-multi/auto/Text/Balanced/.packlist
Appending installation info to
/u/basappas/local/perl/balanced_install/lib/perl5/5.8.5/i386-linux-thread-multi/perllocal.pod

make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00.load.........ok 1/1# Testing Text::Balanced 2.0.0
t/00.load.........ok
t/extbrk..........ok
t/extcbk..........ok
t/extdel..........ok
t/extmul..........ok
t/extqlk..........ok
t/exttag..........ok
t/extvar..........ok
t/gentag..........ok
t/pod-coverage....skipped
        all skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/pod.............skipped
        all skipped: Test::Pod 1.14 required for testing POD
All tests successful, 2 tests skipped.
Files=11, Tests=560,  2 wallclock secs ( 0.87 cusr +  1.06 csys =  1.93 CPU)

Regards

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


Reply via email to