CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Cannot install perl modules

 



exer
Novice

Nov 10, 2011, 11:55 AM

Post #1 of 16 (5485 views)
Cannot install perl modules Can't Post

Hi

I have issues installing perl modules via ppm.
For instance, i want to instal Win32::API::Prototype (www.roth.net).

1) I created a new repository (MyNewRepository) in a folder "packages" - C:\Perl\bin\packages.

2) Then i created a new folder x86 within the "packages" folder - C:\Perl\bin\packages\x86.

3) I put ppd file in the "packages" folder.
Win32-API-Prototype.ppd (relative paths) :

Code
<SOFTPKG NAME="Win32-API-Prototype" VERSION="0,2002,12,17"> 
<TITLE>
Win32::API::Prototype
</TITLE>
<ABSTRACT>
The Win32::API::Prototype module.
Simplifies using Win32::API by accepting a C function prototype
and exposing the function by name in the main namespace.</ABSTRACT>
<AUTHOR>
Roth Consulting (http://www.roth.net/)
</AUTHOR>
<IMPLEMENTATION>
<!-- Perl Version="5005" -->
<OS NAME="MSWin32" />
<ARCHITECTURE NAME="MSWin32-x86" />
<DEPENDENCY NAME="Win32-API" VERSION="0,0,0,0" />
<CODEBASE HREF="x86/Win32-API-Prototype.tar.gz" />
</IMPLEMENTATION>

<IMPLEMENTATION>
<!-- Perl Version="5005_AS" -->
<OS NAME="MSWin32" />
<ARCHITECTURE NAME="MSWin32-x86-object" />
<DEPENDENCY NAME="Win32-API" VERSION="0,0,0,0" />
<CODEBASE HREF="x86/Win32-API-Prototype.tar.gz" />
</IMPLEMENTATION>

<IMPLEMENTATION>
<!-- Perl Version="5006" -->
<OS NAME="MSWin32" />
<ARCHITECTURE NAME="MSWin32-x86-multi-thread" />
<DEPENDENCY NAME="Win32-API" VERSION="0,0,0,0" />
<CODEBASE HREF="x86/Win32-API-Prototype.tar.gz" />
</IMPLEMENTATION>

<IMPLEMENTATION>
<!-- Perl Version="5008" -->
<OS NAME="MSWin32" />
<ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" />
<DEPENDENCY NAME="Win32-API" VERSION="0,0,0,0" />
<CODEBASE HREF="x86/Win32-API-Prototype.tar.gz" />
</IMPLEMENTATION>
</SOFTPKG>


4) I put Win32-API-Prototype.tar.gz inside C:\Perl\bin\packages\x86

5) cmd(from packages folder) -> ppm install Win32-API-Prototype.ppd
Returns:
"ppm install failed: The PPD does not provide code to install for this platform"

Any help would be greatly appreciated.

Thanks

Perl: ActivePerl-5.14.2.1402-MSWin32-x86
System: WinXP pro sp3


FishMonger
Veteran / Moderator

Nov 10, 2011, 1:43 PM

Post #2 of 16 (5483 views)
Re: [exer] Cannot install perl modules [In reply to] Can't Post

Why go through all that trouble? All you need to do is add the roth and bribes repositories and any other desired repository to the ppm config.

Open the ppm gui and go to: Edit -> Preferenses -> Repositories
Then add the desired repository urls.

Here are a few repositories (I pulled from http://docs.activestate.com/activeperl/5.8/faq/ActivePerl-faq2.html#additional_repositories)

Quote
http://theoryx5.uwinnipeg.ca/ppms/package.lst The University of Winnipeg's 5.8 PPM repository
http://www.roth.net/perl/packages/ Roth Consulting's package repository
http://www.bribes.org/perl/ppm/ the "Bribes de Perl" (Scraps of Perl) repository (en Français et Anglais)


(This post was edited by FishMonger on Nov 10, 2011, 1:44 PM)


exer
Novice

Nov 10, 2011, 3:06 PM

Post #3 of 16 (5477 views)
Re: [FishMonger] Cannot install perl modules [In reply to] Can't Post

Thank you for the reply.

I did what you said, imported http://www.roth.net/perl/packages/ package, but i can't find needed modules.
Win32::API::Prototype and Win32::Perms are supposed to be in the roth package, but they're not (?)

I downloaded (before) Win32::API::Prototype from http://search.cpan.org/~daveroth/Win32-API-Prototype/lib/Win32%5CAPI/Prototype.PM
and ppd from http://www.roth.net/perl/prototype/ , to install it manually, which is failed, and now i see it is not in roth package at all (??), (i haven't managed to find Win32::Perms).

This is a real nightmare. Frown


FishMonger
Veteran / Moderator

Nov 10, 2011, 4:53 PM

Post #4 of 16 (5471 views)
Re: [exer] Cannot install perl modules [In reply to] Can't Post

The module in in the bribes repository. If you add that repository to ppm it will show up in the gui.

Or, you can install in from the command line.


Quote
C:\Users\Ron>ppm install http://www.bribes.org/perl/ppm/Win32-API-Prototype.ppd
Downloading Win32-API-Prototype-20000613.0...done
Unpacking Win32-API-Prototype-20000613.0...done
Generating HTML for Win32-API-Prototype-20000613.0...done
Updating files in site area...done
2 files installed



exer
Novice

Nov 11, 2011, 5:50 AM

Post #5 of 16 (5461 views)
Re: [FishMonger] Cannot install perl modules [In reply to] Can't Post

Thanks again.

I've added bribes repository to ppm, but api-prototype module didn't show up in gui.

Cmd install returns the same error as with the installation of downloaded Win32-API-Prototype.tar.gz in the local x86 folder:

Quote
ppm install failed: The PPD does not provide code to install for this platform"

???

edit:
I've found this as a suggested solution (an old topic on the roth forum):

Quote
Ok problem solve.

uninstall perl 5.10.

download and install ActivePerl-5.8.8.822-MSWin32-x86-280952.msi

:)

Taking into account that the topic is 3 years old, and i downloaded ActivePerl 5.14 a couple days ago, this is a complete confusion. If 5.8.8 was a beta 3 years ago, how come 5.14 is the latest stable version today?
Anyway, there are no other versions on ActiveState site.

edit2:
One more:
http://dev.pulsed.net/wp/?p=35
Quite unbelievable..


(This post was edited by exer on Nov 11, 2011, 6:55 AM)


exer
Novice

Nov 11, 2011, 7:33 AM

Post #6 of 16 (5450 views)
Re: [exer] Cannot install perl modules [In reply to] Can't Post

I've found the culprit at last Smile

ppd:

Code
<ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" />

should be MSWin32-x86-multi-thread-5.14 (as i run v5.14)
I have edited the local ppd, and managed to install the module via cmd.
Now i need to find win32-perms module too.
ftp://www.roth.net/pub/ntperl/perms/20020605/ from http://www.roth.net/perl/perms/ - is a dead link.

Btw, what is the meaning of "Area" in ppm? What is the difference between perl and site area? (this module 'Prototype' was installed in 'site' area)


(This post was edited by exer on Nov 11, 2011, 7:38 AM)


FishMonger
Veteran / Moderator

Nov 11, 2011, 7:57 AM

Post #7 of 16 (5445 views)
Re: [exer] Cannot install perl modules [In reply to] Can't Post

That's odd, since it shows up in my ppm gui and is there when I browse to http://www.bribes.org/perl/ppm
Attachments: ppm-packages.png (46.1 KB)
  repositories.png (39.4 KB)


FishMonger
Veteran / Moderator

Nov 11, 2011, 8:09 AM

Post #8 of 16 (5441 views)
Re: [exer] Cannot install perl modules [In reply to] Can't Post

You might want to keep in mind that Win32::API::Prototype has not been maintained since 2001. I haven't looked, but I'm sure that there is a more up to date alternative.


exer
Novice

Nov 11, 2011, 11:04 AM

Post #9 of 16 (5433 views)
Re: [FishMonger] Cannot install perl modules [In reply to] Can't Post

Your ppm shows 558 packages in bribes rep. and mine 507.
Probably some packages have outdated ppd <architecture> code, hence cannot be installed.
The old module is ok with me, because i'm only following instructions from a tutorial.

Do you possibly know how can i find win32-perms?

Thanks


FishMonger
Veteran / Moderator

Nov 11, 2011, 12:37 PM

Post #10 of 16 (5422 views)
Re: [exer] Cannot install perl modules [In reply to] Can't Post

Well, it appears that it's one of those 51 packages that don't show up for you. The one I see hasn't been updated since 2002.

You could use wget to download the tar file and then build it from source. A prereq to that would be to use ppm to install MinGW which provides the required build tools.

My personal recommendation would be to find a more up to date tutorial that doesn't use very old/outdated modules.


exer
Novice

Nov 11, 2011, 2:25 PM

Post #11 of 16 (5416 views)
Re: [FishMonger] Cannot install perl modules [In reply to] Can't Post

I've never heard of wget. Do you mean to use it to find win32-perms? There's a pretty poor documentation on http://gnuwin32.sourceforge.net/packages/wget.htm. Can you say what is it precisely for?

As for the tutorial, it's not a perl tut but of an app that uses perl scripts. It's from 2008, and it's the latest available.


FishMonger
Veteran / Moderator

Nov 11, 2011, 2:54 PM

Post #12 of 16 (5414 views)
Re: [exer] Cannot install perl modules [In reply to] Can't Post

wget is a standard *nix utility for retrieving files from the internet (and as you've found, there's a Windows port).

After you install it, you can download the module source code via:

Quote
C:\>wget http://www.bribes.org/perl/ppm/Win32-Perms-20020605-PPM58.tar.gz


You will then need to untar (unzip) it and build/compile it.


exer
Novice

Nov 11, 2011, 5:22 PM

Post #13 of 16 (5405 views)
Re: [FishMonger] Cannot install perl modules [In reply to] Can't Post

Sorry for so many questions, i have 3 more. Angelic

1) Why should i have wget to download that tar.gz? I have already downloaded it from your link.
2) How to compile it? I thought scripts don't need to be compiled.
3) Why this module is not ready for installation (compiled) as win32-api-prototype was?

Thank you for your time and replies.


exer
Novice

Nov 12, 2011, 1:41 PM

Post #14 of 16 (5384 views)
Re: [exer] Cannot install perl modules [In reply to] Can't Post

I wanted to try to build the module by MinGw so i downloaded it through >ppm instal MinGW. But surprisingly it downloaded some roth modules first (win32-Perms and /already manually installed before/ win32-api-prototype among them) :


Code
C:\Documents and Settings\yourname>ppm install mingw 

Downloading ActiveState Package Repository packlist...done
Updating ActiveState Package Repository database...done
Downloading MyNewRepository packlist...not modified
Downloading Roth-package-repository packlist...done
Downloading Roth-package-repository GDBM_File PPD...done
Downloading Roth-package-repository Win32-AdminMisc PPD...done
Downloading Roth-package-repository Win32-API-Prototype PPD...done
Downloading Roth-package-repository Win32-Daemon PPD...done
Downloading Roth-package-repository Win32-EventLog-Message PPD...done
Downloading Roth-package-repository Win32-Exchange PPD...done
Downloading Roth-package-repository Win32-Message PPD...done
Downloading Roth-package-repository Win32-ODBCBETA PPD...done
Downloading Roth-package-repository Win32-Perms PPD...done
Downloading Roth-package-repository Win32-Pipe PPD...done
Downloading Roth-package-repository Win32-RASAdmin PPD...done
Downloading Roth-package-repository Win32-Scheduler PPD...done
Downloading Roth-package-repository Win32-Tie-Ini PPD...done
Downloading Roth-package-repository Win32-Volume PPD...done
Downloading Bribes-repository packlist...done
Updating Bribes-repository database...done
Downloading MinGW-5.1.4.1...done
Downloading dmake-4.11.20080107...done
Unpacking MinGW-5.1.4.1...done
Unpacking dmake-4.11.20080107...done
Generating HTML for MinGW-5.1.4.1...done
Generating HTML for dmake-4.11.20080107...done
Updating files in site area...done
1070 files installed


So, i was hoping that win32-Perms was finally downloaded, however, when i checked repositiries in ppm gui, there have been 0 packages in roth repository, and of course search of win32-perms package gives no result.

Must say this ActivePerl logic is very hard to understand..


(This post was edited by exer on Nov 12, 2011, 1:45 PM)
Attachments: ppm.JPG (39.2 KB)


exer
Novice

Nov 13, 2011, 8:10 AM

Post #15 of 16 (5340 views)
Re: [exer] Cannot install perl modules [In reply to] Can't Post

I downloaded the source tarball from bribes (www.bribes.org/perl/ppm/Win32-Perms-20020605-PPM58.tar.gz), extracted it to the location of MyNewRepository (Perl\bin\packages), cd'ed to that location and run:


Code
>perl Makefile.PL

but:

Quote
Can't open perl script "Makefile.PL": No such file or directory

Btw after the mingw installation, there's no makefile.pl file in the Perl directory tree.

I noticed that many people have the same problem, but no one got an answer.
Can anyone help with this horrific process?

Thanks


buyingcheapgolf
Novice

Feb 21, 2012, 9:40 PM

Post #16 of 16 (4775 views)
Re: [exer] Cannot install perl modules [In reply to] Can't Post

2012 new ping golf clubs for sale. Buying Ping Scottsdale Anser 2 Putter for less. With an elastomer insert and AVS grip, the Ping Scottsdale Anser 2 Putter; offers a soft, crisp feel. Discount golf sale at buyingcheapgolf where can help golfers save a lot of money. Discount golf clubs including golf putter, golf irons, golf fairway wood and so on. 2012 Ping Scottsdale Anser 2 Putter is available. Know more about details at …
http://www.buyingcheapgolf.com/goods-288-PING-Scottsdale-Anser-2-Putter.html


Ping Scottsdale Anser 2 Putter Description: The solid feel and consistent response of the insert in the new Scottsdale Series will help your distance control and accuracy. The insert is made of a thermoplastic elastomer (TPE) with a face appliqué for a soft yet solid feel on every putt. This response is key in accurately gauging distances. The combination of TPE and high-contrast alignment aids allow you to take confident aim with your Scottsdale putter.


Main three features of Ping Scottsdale Anser 2 Putter: One:With an elastomer insert and AVS grip, the Ping Scottsdale Anser 2 Putter offers a soft, crisp feel. Two:A satin PVD finish and polished sole helps reduce sun glare and provides a smoother stroke, and its perimeter weighted design is Tour-proven. Three:Putter type: Blade.


Ping Scottsdale Anser 2 Putter reviews: There are 14 different models in the new line, and first thing golfers will notice is the finish, which is much darker than previous Ping putters. That should help the maroon and white alignment aids and sightlines stand out more.The Ping Scottsdale Anser 2 Putter have gained a good popularity in 2012 Ping Scottsdale Putters. I have purchased one which have offered a good feeling. I strongly recommend golfers purchase one to have a try. They are discount golf clubs at buyingcheapgolf where can help you save a lot of money.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives