Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: installing ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 13 Topic 10953 of 11748
Post > Topic >>

Re: installing Text-Balanced module

by sharan.basappa@[EMAIL PROTECTED] (Sharan Basappa) Apr 21, 2008 at 07:53 PM

On Sat, Apr 19, 2008 at 12:35 AM, Gunnar Hjalmarsson <noreply@[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.
>
>  [gunnarh@[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
>  [gunnarh@[EMAIL PROTECTED]
 .tmp]$ cd version-0.74
>  [gunnarh@[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
>  [gunnarh@[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
>  [gunnarh@[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'
>  [gunnarh@[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
>  [gunnarh@[EMAIL PROTECTED]
 version-0.74]$ cd ..
>  [gunnarh@[EMAIL PROTECTED]
 .tmp]$ cd Text-Balanced-v2.0.0
>  [gunnarh@[EMAIL PROTECTED]
 Text-Balanced-v2.0.0]$ ex****t
> PERL5LIB=/home/gunnarh/perl/lib
>  [gunnarh@[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
>  [gunnarh@[EMAIL PROTECTED]
 Text-Balanced-v2.0.0]$ make
>  cp lib/Text/Balanced.pm blib/lib/Text/Balanced.pm
>  Manifying blib/man3/Text::Balanced.3pm
>  [gunnarh@[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)
>  [gunnarh@[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
>  [gunnarh@[EMAIL PROTECTED]
 Text-Balanced-v2.0.0]$ cd ../..
>  [gunnarh@[EMAIL PROTECTED]
 gunnarh]$ cat test.pl
>  #!/usr/bin/perl
>  use lib "$ENV{HOME}/perl/lib";
>  use Text::Balanced 2;
>  print Text::Balanced->VERSION, "\n";
>  [gunnarh@[EMAIL PROTECTED]
 gunnarh]$ ./test.pl
>  2.0.0
>  [gunnarh@[EMAIL PROTECTED]
 gunnarh]$
>
>
>  --
>  Gunnar Hjalmarsson
>  Email: http://www.gunnar.cc/cgi-bin/contact.pl
>
>  --
>
>  To unsubscribe, e-mail: beginners-unsubscribe@[EMAIL PROTECTED]
>  For additional commands, e-mail: beginners-help@[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
 




 13 Posts in Topic:
installing Text-Balanced module
sharan.basappa@[EMAIL PRO  2008-04-17 20:27:41 
Re: installing Text-Balanced module
noreply@[EMAIL PROTECTED]  2008-04-17 17:11:07 
Re: installing Text-Balanced module
sharan.basappa@[EMAIL PRO  2008-04-17 21:04:48 
Re: installing Text-Balanced module
chas.owens@[EMAIL PROTECT  2008-04-17 11:35:28 
Re: installing Text-Balanced module
chas.owens@[EMAIL PROTECT  2008-04-17 11:37:47 
Re: installing Text-Balanced module
sharan.basappa@[EMAIL PRO  2008-04-17 21:07:50 
Re: installing Text-Balanced module
sharan.basappa@[EMAIL PRO  2008-04-17 21:11:07 
Re: installing Text-Balanced module
chas.owens@[EMAIL PROTECT  2008-04-17 11:47:08 
Re: installing Text-Balanced module
sharan.basappa@[EMAIL PRO  2008-04-18 18:43:04 
Re: installing Text-Balanced module
rob.dixon@[EMAIL PROTECTE  2008-04-18 18:13:38 
Re: installing Text-Balanced module
noreply@[EMAIL PROTECTED]  2008-04-18 21:05:31 
Re: installing Text-Balanced module
sharan.basappa@[EMAIL PRO  2008-04-21 19:53:53 
Re: installing Text-Balanced module
noreply@[EMAIL PROTECTED]  2008-04-21 17:30:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Sep 5 11:44:57 CDT 2008.