Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > CPAN install failure - help?

Reply
Thread Tools

CPAN install failure - help?

 
 
ChiTownBob
Guest
Posts: n/a
 
      09-27-2005
I'm pretty much a newbie; used Perl very casually over the years, but
never got too deep. Right now I'm trying to convert my company's docs
into the Wikipedia format (MediaWiki), and I found a package
http://search.cpan.org/~diberri/HTML...kiConverter.pm
that promises to do that for HTML.

(btw, if someone has a better way to do this, regardless of whether it's
perl or not, *please* speak up).

Anyway, CPAN fails to install it, and I am clueless as to why. Here's
the relevant part of the output:

========================================

................

HTML-WikiConverter-0.30/README Removing previously used
\.cpan\build\HTML-WikiConverter-0.30 CPAN.pm: Going to build
D/DI/DIBERRI/HTML-WikiConverter-0.30.tar.gz

Checking if your kit is complete...

Looks good

Writing Makefile for HTML::WikiConverter
-- OK
Running make test

'test' is not recognized as an internal or external command, operable
program or batch file.

test -- NOT OK

Running make install

make test had returned bad status, won't install without force
=============================

I've tried going back in and saying "force install HTML::WikiConverter"
but that just fails in the same way. This is all on Windows XP. Help?
Bob
 
Reply With Quote
 
 
 
 
A. Sinan Unur
Guest
Posts: n/a
 
      09-27-2005
ChiTownBob <> wrote in
newstk_e.7187$ :

> Anyway, CPAN fails to install it, and I am clueless as to why. Here's
> the relevant part of the output:
>
> ========================================
>
> ...............
>
> HTML-WikiConverter-0.30/README Removing previously used
> \.cpan\build\HTML-WikiConverter-0.30 CPAN.pm: Going to build
> D/DI/DIBERRI/HTML-WikiConverter-0.30.tar.gz
>
> Checking if your kit is complete...
>
> Looks good
>
> Writing Makefile for HTML::WikiConverter
> -- OK
> Running make test
>
> 'test' is not recognized as an internal or external command, operable
> program or batch file.
>
> test -- NOT OK
>
> Running make install
>
> make test had returned bad status, won't install without force
> =============================
>
> I've tried going back in and saying "force install
> HTML::WikiConverter" but that just fails in the same way. This is all
> on Windows XP. Help? Bob


I am not sure which Perl distribution you are using. Unless you are
using cygwin, you very likely do not have the proper tools to compile
Perl modules from scratch.

Now, the good news is that the module does not seem to contain any XS
code, so you don't really need a C compiler.

Just extraction the files from the archive, and manually copying the
files to the appropriate locations should work. That is:

c:\Perl\site\lib\HTML\WikiConverter.pm
c:\Perl\site\lib\HTML\WikiConverter\DocuWiki.pm
.... etc
bin\html2wiki => c:\Perl\bin\html2wiki.pl

assuming you have vanilla AS Perl installation in C:\Perl

Or, you can put the files in a separate location, and then put a use lib
in your scripts.

See perldoc -q lib

Sinan

--
A. Sinan Unur <>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/cl...uidelines.html
 
Reply With Quote
 
 
 
 
ChiTownBob
Guest
Posts: n/a
 
      09-28-2005
A. Sinan Unur wrote:
> ChiTownBob <> wrote in
> newstk_e.7187$ :
>
>
>>Anyway, CPAN fails to install it, and I am clueless as to why. Here's
>>the relevant part of the output:
>>
>>========================================
>>
>>...............
>>
>>HTML-WikiConverter-0.30/README Removing previously used
>>\.cpan\build\HTML-WikiConverter-0.30 CPAN.pm: Going to build
>>D/DI/DIBERRI/HTML-WikiConverter-0.30.tar.gz
>>
>>Checking if your kit is complete...
>>
>>Looks good
>>
>>Writing Makefile for HTML::WikiConverter
>>-- OK
>>Running make test
>>
>>'test' is not recognized as an internal or external command, operable
>>program or batch file.
>>
>>test -- NOT OK
>>
>>Running make install
>>
>>make test had returned bad status, won't install without force
>>=============================
>>
>>I've tried going back in and saying "force install
>>HTML::WikiConverter" but that just fails in the same way. This is all
>>on Windows XP. Help? Bob

>
>
> I am not sure which Perl distribution you are using. Unless you are
> using cygwin, you very likely do not have the proper tools to compile
> Perl modules from scratch.
>
> Now, the good news is that the module does not seem to contain any XS
> code, so you don't really need a C compiler.
>
> Just extraction the files from the archive, and manually copying the
> files to the appropriate locations should work. That is:
>
> c:\Perl\site\lib\HTML\WikiConverter.pm
> c:\Perl\site\lib\HTML\WikiConverter\DocuWiki.pm
> ... etc
> bin\html2wiki => c:\Perl\bin\html2wiki.pl
>
> assuming you have vanilla AS Perl installation in C:\Perl
>
> Or, you can put the files in a separate location, and then put a use lib
> in your scripts.
>
> See perldoc -q lib
>
> Sinan
>


thanks to Sinan and Abigail for the extremely quick response. Re
Abigail's question, no, I didn't have make.ext in my DOS environment,
but I do have Cygwin installed. Running it in Cygwin got much, much
farther, but it still failed in many horrible ways, deep inside the
dependencies. (I tried capturing the output to a file, but it just hung
and the errors didn't make it to the output file.)

I did do what Sinan suggested, and html2wiki is working now! (as I
said, I'm pretty much a Perl neophyte.) So thanks again.

Interestingly enough, I've also got Fedora Core 3 on another machine,
and on that one, once I su'ed to root, the install worked the first time.

Bob
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
on windows 7 / cygwin / perl / cpan - cannot make cpan work SVCitian Perl Misc 1 10-22-2010 03:59 PM
rt.cpan.org, search.cpan.org: why so unuseable? Ben Bullock Perl Misc 12 07-08-2008 12:51 PM
Is there a better way to search CPAN than search.cpan.org? usenet@DavidFilmer.com Perl Misc 5 10-12-2005 04:50 AM
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails carl d. Perl Misc 1 05-10-2005 09:35 PM
CPAN and DBD::mysql install failure newsgroups@raincode.net Perl Misc 6 04-19-2005 07:09 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57