installing Text-Balanced module

installing Text-Balanced module

am 17.04.2008 16:57:41 von Sharan Basappa

I am installing Text-Balanced module locally.
perl Makefile.PL .. step does not complete.

It bails out with the foll. error:
Warning: prerequisite version 0 not found.
Could not eval '
package ExtUtils::MakeMaker::_version;
no strict;

local $VERSION;
$VERSION=undef; do {
use version; $VERSION = qv('2.0.0');
}; $VERSION
' in lib/Text/Balanced.pm: Can't locate version.pm in @INC
(@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at (eval 4) line 7, line 13.
BEGIN failed--compilation aborted at (eval 4) line 7, line 13.
WARNING: Setting VERSION via file 'lib/Text/Balanced.pm' failed
at /usr/lib/perl5/5.8.5/ExtUtils/MakeMaker.pm line 506
Writing Makefile for Text::Balanced

This looks like a dependency issue. Can someone tell me what module
should I be installing before I can
install Text-Balanced?

Regards

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: installing Text-Balanced module

am 17.04.2008 17:11:07 von Gunnar Hjalmarsson

Sharan Basappa wrote:
> I am installing Text-Balanced module locally.
> perl Makefile.PL .. step does not complete.
>
> It bails out with the foll. error:
> Warning: prerequisite version 0 not found.



> This looks like a dependency issue. Can someone tell me what module
> should I be installing before I can
> install Text-Balanced?

The Makefile.PL file can...
http://search.cpan.org/src/DCONWAY/Text-Balanced-v2.0.0/Make file.PL

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: installing Text-Balanced module

am 17.04.2008 17:34:48 von Sharan Basappa

On Thu, Apr 17, 2008 at 8:41 PM, Gunnar Hjalmarsson wrote:
> Sharan Basappa wrote:
>
> > I am installing Text-Balanced module locally.
> > perl Makefile.PL .. step does not complete.
> >
> > It bails out with the foll. error:
> > Warning: prerequisite version 0 not found.
> >
>
>
>
>
>
> > This looks like a dependency issue. Can someone tell me what module
> > should I be installing before I can
> > install Text-Balanced?
> >
>
> The Makefile.PL file can...
> http://search.cpan.org/src/DCONWAY/Text-Balanced-v2.0.0/Make file.PL
>
I did not get you clearly. Are you saying that the Makefile can take
care of dependancy modules?
If so, what do the errors mean.
BTW, I continued despite the errors I mentioned above.
But when I run make test, the summary report shows:
2 tests skipped.
Failed 9/11 test scripts, 18.18% okay. 560/560 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 255

This tells me that all did not go well with installation.

Regards

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: installing Text-Balanced module

am 17.04.2008 17:35:28 von chas.owens

On Thu, Apr 17, 2008 at 10:57 AM, Sharan Basappa
wrote:
> I am installing Text-Balanced module locally.
> perl Makefile.PL .. step does not complete.
snip
> This looks like a dependency issue. Can someone tell me what module
> should I be installing before I can
> install Text-Balanced?
snip

If the machine you are using can connect to the Internet, you should
really use CPAN to do the install (it takes care of the Perl
dependencies). Try running

perl -MCPAN -e "install Text::Balanced"

Answer with the default for most questions. When you get to the part
where it asks you

Paramaters for the 'perl Makefile.PL' command?
Typical frequently used settings:

PREFIX=~/perl non-root users (please see manual for more hints)

Your choice: [INSTALLDIRS=site]

type in PREFIX=/u/basappas/local/perl/perm_install

You should be able to use the defaults for the rest
--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: installing Text-Balanced module

am 17.04.2008 17:37:47 von chas.owens

On Thu, Apr 17, 2008 at 11:34 AM, Sharan Basappa
wrote:
> On Thu, Apr 17, 2008 at 8:41 PM, Gunnar Hjalmarsson wrote:
> > Sharan Basappa wrote:
> >
> > > I am installing Text-Balanced module locally.
> > > perl Makefile.PL .. step does not complete.
> > >
> > > It bails out with the foll. error:
> > > Warning: prerequisite version 0 not found.
> > >
> >
> >
> >
> >
> >
> > > This looks like a dependency issue. Can someone tell me what module
> > > should I be installing before I can
> > > install Text-Balanced?
> > >
> >
> > The Makefile.PL file can...
> > http://search.cpan.org/src/DCONWAY/Text-Balanced-v2.0.0/Make file.PL
> >
> I did not get you clearly. Are you saying that the Makefile can take
> care of dependancy modules?
> If so, what do the errors mean.
> BTW, I continued despite the errors I mentioned above.
> But when I run make test, the summary report shows:
> 2 tests skipped.
> Failed 9/11 test scripts, 18.18% okay. 560/560 subtests failed, 0.00% okay.
> make: *** [test_dynamic] Error 255
>
> This tells me that all did not go well with installation.
>
> Regards
>
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>
>

He is trying to let you know that Makefile.PL contains the names of
the modules this one is dependent on. Specifically the hash ref
stored in PREREQ_PM.

use strict;
use warnings;
use ExtUtils::MakeMaker;

WriteMakefile(
NAME => 'Text::Balanced',
AUTHOR => 'Damian Conway ',
VERSION_FROM => 'lib/Text/Balanced.pm',
ABSTRACT_FROM => 'lib/Text/Balanced.pm',
INSTALLDIRS => ($] >= 5.007003 ? 'perl' : 'site'),
PL_FILES => {},
PREREQ_PM => {
'Test::More' => 0,
'version' => 0,
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Text-Balanced-*' },
);


--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: installing Text-Balanced module

am 17.04.2008 17:37:50 von Sharan Basappa

unfortunately the server I am trying to install the module is not
connected to net.

Regards

On Thu, Apr 17, 2008 at 9:05 PM, Chas. Owens wrote:
> On Thu, Apr 17, 2008 at 10:57 AM, Sharan Basappa
> wrote:
> > I am installing Text-Balanced module locally.
> > perl Makefile.PL .. step does not complete.
> snip
>
> > This looks like a dependency issue. Can someone tell me what module
> > should I be installing before I can
> > install Text-Balanced?
> snip
>
> If the machine you are using can connect to the Internet, you should
> really use CPAN to do the install (it takes care of the Perl
> dependencies). Try running
>
> perl -MCPAN -e "install Text::Balanced"
>
> Answer with the default for most questions. When you get to the part
> where it asks you
>
> Paramaters for the 'perl Makefile.PL' command?
> Typical frequently used settings:
>
> PREFIX=~/perl non-root users (please see manual for more hints)
>
> Your choice: [INSTALLDIRS=site]
>
> type in PREFIX=/u/basappas/local/perl/perm_install
>
> You should be able to use the defaults for the rest
> --
> Chas. Owens
> wonkden.net
> The most important skill a programmer can have is the ability to read.
>

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: installing Text-Balanced module

am 17.04.2008 17:41:07 von Sharan Basappa

On Thu, Apr 17, 2008 at 9:07 PM, Chas. Owens wrote:
> On Thu, Apr 17, 2008 at 11:34 AM, Sharan Basappa
>
> wrote:
>
>
> > On Thu, Apr 17, 2008 at 8:41 PM, Gunnar Hjalmarsson wrote:
> > > Sharan Basappa wrote:
> > >
> > > > I am installing Text-Balanced module locally.
> > > > perl Makefile.PL .. step does not complete.
> > > >
> > > > It bails out with the foll. error:
> > > > Warning: prerequisite version 0 not found.
> > > >
> > >
> > >
> > >
> > >
> > >
> > > > This looks like a dependency issue. Can someone tell me what module
> > > > should I be installing before I can
> > > > install Text-Balanced?
> > > >
> > >
> > > The Makefile.PL file can...
> > > http://search.cpan.org/src/DCONWAY/Text-Balanced-v2.0.0/Make file.PL
> > >
> > I did not get you clearly. Are you saying that the Makefile can take
> > care of dependancy modules?
> > If so, what do the errors mean.
> > BTW, I continued despite the errors I mentioned above.
> > But when I run make test, the summary report shows:
> > 2 tests skipped.
> > Failed 9/11 test scripts, 18.18% okay. 560/560 subtests failed, 0.00% okay.
> > make: *** [test_dynamic] Error 255
> >
> > This tells me that all did not go well with installation.
> >
> > Regards
> >
> >
> >
> > --
>
> > To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> > For additional commands, e-mail: beginners-help@perl.org
> > http://learn.perl.org/
> >
> >
> >
>
> He is trying to let you know that Makefile.PL contains the names of
> the modules this one is dependent on. Specifically the hash ref
> stored in PREREQ_PM.
>
> use strict;
> use warnings;
> use ExtUtils::MakeMaker;
>
> WriteMakefile(
> NAME => 'Text::Balanced',
> AUTHOR => 'Damian Conway ',
> VERSION_FROM => 'lib/Text/Balanced.pm',
> ABSTRACT_FROM => 'lib/Text/Balanced.pm',
> INSTALLDIRS => ($] >= 5.007003 ? 'perl' : 'site'),
> PL_FILES => {},
> PREREQ_PM => {
> 'Test::More' => 0,
> 'version' => 0,
> },
> dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
> clean => { FILES => 'Text-Balanced-*' },
> );
>
>
>
>
> --
> Chas. Owens
> wonkden.net
> The most important skill a programmer can have is the ability to read.
>

So, that means I have to install this module?

Regards

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: installing Text-Balanced module

am 17.04.2008 17:47:08 von chas.owens

--Apple-Mail-2-359278764
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit

On Apr 17, 2008, at 11:41, Sharan Basappa wrote:
>>
>> PREREQ_PM => {
>> 'Test::More' => 0,
>> 'version' => 0,
>> },
snip
> So, that means I have to install this module?
>
> Regards
snip

That means that both Test::More and version must be installed. You
check to see if a module is installed by saying

perl -MModule::Name -e 1

if you get an error then the module is not present in your system (or
at least not visible). Note that you may need to set PERL5_LIB in
order to find the modules you are installing:

export PERL5_PATH="/u/basappas/local/perl/perm_install/lib/perl5/
site_perl"


--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.


--Apple-Mail-2-359278764--

Re: installing Text-Balanced module

am 18.04.2008 15:13:04 von Sharan Basappa

On Thu, Apr 17, 2008 at 9:17 PM, Chas. Owens wrote:
>
>
> On Apr 17, 2008, at 11:41, Sharan Basappa wrote:
>
>
> PREREQ_PM => {
> 'Test::More' => 0,
> 'version' => 0,
> },snip
>
>
> So, that means I have to install this module?
>
> Regards
> snip
>
> That means that both Test::More and version must be installed. You check to
> see if a module is installed by saying
>
> perl -MModule::Name -e 1
>
> if you get an error then the module is not present in your system (or at
> least not visible). Note that you may need to set PERL5_LIB in order to
> find the modules you are installing:
>
> export PERL5_PATH="/u/basappas/local/perl/perm_install/lib/perl5/si te_perl"
>
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

Any ideas?

Here are the steps:

setenv PERL5_PATH
/u/basappas/local/perl/version_install/lib/perl5/site_perl
(version_install is where version has been installed)
perl Makefile.PL PREFIX=/u/basappas/local/perl/balanced_install

The error is:
perl Makefile.PL PREFIX=/u/basappas/local/perl/balanced_install
Warning: prerequisite version 0 not found.
Could not eval '
package ExtUtils::MakeMaker::_version;
no strict;

local $VERSION;
$VERSION=undef; do {
use version; $VERSION = qv('2.0.0');
}; $VERSION
' in lib/Text/Balanced.pm: Can't locate version.pm in @INC
(@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at (eval 4) line 7, line 13.
BEGIN failed--compilation aborted at (eval 4) line 7, line 13.
WARNING: Setting VERSION via file 'lib/Text/Balanced.pm' failed
at /usr/lib/perl5/5.8.5/ExtUtils/MakeMaker.pm line 506
Writing Makefile for Text::Balanced

One thing that puzzles me is that the search path does not include
/u/basappas/local/perl/version_install/lib/perl5/site_perl.
This despite setting PERL5_LIB to the above path.

Regards

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: installing Text-Balanced module

am 18.04.2008 19:13:38 von Rob Dixon

Sharan Basappa wrote:
> On Thu, Apr 17, 2008 at 9:17 PM, Chas. Owens wrote:
>>
>> On Apr 17, 2008, at 11:41, Sharan Basappa wrote:
>>
>>
>> PREREQ_PM => {
>> 'Test::More' => 0,
>> 'version' => 0,
>> },snip
>>
>>
>> So, that means I have to install this module?
>>
>> Regards
>> snip
>>
>> That means that both Test::More and version must be installed. You check to
>> see if a module is installed by saying
>>
>> perl -MModule::Name -e 1
>>
>> if you get an error then the module is not present in your system (or at
>> least not visible). Note that you may need to set PERL5_LIB in order to
>> find the modules you are installing:
>>
>> export PERL5_PATH="/u/basappas/local/perl/perm_install/lib/perl5/si te_perl"
>>
> 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
>
> Any ideas?
>
> Here are the steps:
>
> setenv PERL5_PATH
> /u/basappas/local/perl/version_install/lib/perl5/site_perl
> (version_install is where version has been installed)
> perl Makefile.PL PREFIX=/u/basappas/local/perl/balanced_install
>
> The error is:
> perl Makefile.PL PREFIX=/u/basappas/local/perl/balanced_install
> Warning: prerequisite version 0 not found.
> Could not eval '
> package ExtUtils::MakeMaker::_version;
> no strict;
>
> local $VERSION;
> $VERSION=undef; do {
> use version; $VERSION = qv('2.0.0');
> }; $VERSION
> ' in lib/Text/Balanced.pm: Can't locate version.pm in @INC
> (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi
> /usr/lib/perl5/5.8.5
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
> /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
> /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
> /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4
> /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
> /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
> /usr/lib/perl5/vendor_perl .) at (eval 4) line 7, line 13.
> BEGIN failed--compilation aborted at (eval 4) line 7, line 13.
> WARNING: Setting VERSION via file 'lib/Text/Balanced.pm' failed
> at /usr/lib/perl5/5.8.5/ExtUtils/MakeMaker.pm line 506
> Writing Makefile for Text::Balanced
>
> One thing that puzzles me is that the search path does not include
> /u/basappas/local/perl/version_install/lib/perl5/site_perl.
> This despite setting PERL5_LIB to the above path.

The environment variable you should be setting is called PERL5LIB.

First make sure you have 'version' installed correctly, by running

perl -Mversion -e 1

and if that fails then set PERL5LIB to the path where you believe
version.pm to be. If that still fails then manually reinstall 'version'
manually and look at the log for 'make install' - somewhere it will tell
you where it has installed the version.pm file, and PERL5LIB should be
set to the path to that file. If you can't get it working then post the
complete 'make install' log on here and we will help you.

One you have 'version' installed in your private path, manually
reinstall Text::Balanced using the same value for prefix. Then make sure
you still have Perl5LIB set and run

perl -MText::Balanced -e 1

which should now work. If this fails then post your complete 'make
install' log on here, and say what value you have PERL5LIB set to.

Vorsprung durch technik!

Ro

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: installing Text-Balanced module

am 18.04.2008 21:05:31 von Gunnar Hjalmarsson

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@gunnar .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@gunnar .tmp]$ cd version-0.74
[gunnarh@gunnar 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@gunnar 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@gunnar 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@gunnar 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.p m
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@gunnar version-0.74]$ cd ..
[gunnarh@gunnar .tmp]$ cd Text-Balanced-v2.0.0
[gunnarh@gunnar Text-Balanced-v2.0.0]$ export PERL5LIB=/home/gunnarh/perl/lib
[gunnarh@gunnar 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@gunnar Text-Balanced-v2.0.0]$ make
cp lib/Text/Balanced.pm blib/lib/Text/Balanced.pm
Manifying blib/man3/Text::Balanced.3pm
[gunnarh@gunnar 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@gunnar 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/Bal anced/.packlist
Appending installation info to /home/gunnarh/perl/lib/i386-linux-thread-multi/perllocal.pod
[gunnarh@gunnar Text-Balanced-v2.0.0]$ cd ../..
[gunnarh@gunnar gunnarh]$ cat test.pl
#!/usr/bin/perl
use lib "$ENV{HOME}/perl/lib";
use Text::Balanced 2;
print Text::Balanced->VERSION, "\n";
[gunnarh@gunnar gunnarh]$ ./test.pl
2.0.0
[gunnarh@gunnar gunnarh]$

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: installing Text-Balanced module

am 21.04.2008 16:23:53 von Sharan Basappa

On Sat, Apr 19, 2008 at 12:35 AM, Gunnar Hjalmarsson 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@gunnar .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@gunnar .tmp]$ cd version-0.74
> [gunnarh@gunnar 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@gunnar 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@gunnar 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@gunnar 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.p m
> 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@gunnar version-0.74]$ cd ..
> [gunnarh@gunnar .tmp]$ cd Text-Balanced-v2.0.0
> [gunnarh@gunnar Text-Balanced-v2.0.0]$ export
> PERL5LIB=/home/gunnarh/perl/lib
> [gunnarh@gunnar 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@gunnar Text-Balanced-v2.0.0]$ make
> cp lib/Text/Balanced.pm blib/lib/Text/Balanced.pm
> Manifying blib/man3/Text::Balanced.3pm
> [gunnarh@gunnar 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@gunnar 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/Bal anced/.packlist
> Appending installation info to
> /home/gunnarh/perl/lib/i386-linux-thread-multi/perllocal.pod
> [gunnarh@gunnar Text-Balanced-v2.0.0]$ cd ../..
> [gunnarh@gunnar gunnarh]$ cat test.pl
> #!/usr/bin/perl
> use lib "$ENV{HOME}/perl/lib";
> use Text::Balanced 2;
> print Text::Balanced->VERSION, "\n";
> [gunnarh@gunnar gunnarh]$ ./test.pl
> 2.0.0
> [gunnarh@gunnar gunnarh]$
>
>
> --
> Gunnar Hjalmarsson
> Email: http://www.gunnar.cc/cgi-bin/contact.pl
>
> --
>
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> 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: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: installing Text-Balanced module

am 21.04.2008 17:30:50 von Gunnar Hjalmarsson

Sharan Basappa wrote:
> On Sat, Apr 19, 2008 at 12:35 AM, Gunnar Hjalmarsson wrote:
>> 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.



> Thanks. Looks like the install is successful.

Yes, it was.

> 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



I had a significantly simpler path to the modules, and the reason is
that I also used the LIB option when building Makefile. Is that what you
mean?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/