Sharan Basappa wrote:
> On Thu, Apr 17, 2008 at 9:17 PM, Chas. Owens <[EMAIL PROTECTED]> 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/site_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, <FH> line 13.
> BEGIN failed--compilation aborted at (eval 4) line 7, <FH> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to