Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

>perl Makefile.PL - No such file or directory..

Status
Not open for further replies.

eexer

MIS
Nov 13, 2011
3
RS
Hi

I want to compile a perl package win32::perms from I installed MinGW and dmake via >ppm install mingw
I downloaded the source tarball from bribes, extracted it to the location of MyNewRepository (Perl\bin\packages), cd'ed to that location and run:
Code:
>perl Makefile.PL
but i get error:
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 ?

Thanks
 
This worked for me:

Code:
C:\Perl\bin>ppm rep add "[URL unfurl="true"]http://www.bribes.org/perl/ppm"[/URL]
Downloading [URL unfurl="true"]www.bribes.org[/URL] packlist...done
Updating [URL unfurl="true"]www.bribes.org[/URL] database...done
Repo 2 added.

then run
Code:
ppm

This brings up the gui 'Perl Package Manager'.

Click the 'View all packages' button. Win32-Perms should be listed. Mark the package for installation the click 'run marked actions'. The module installed successfully.
 
Thanks.
You probably have ActivePerl 5.8
I had to download the ppd file from the site, edit it locally (to change <architecture> part from 5.8 to 5.14 which is my version) and i ran >ppm install that-local-ppd (that points to the package on the site).
Btw, i've only now realized that for building packages a makefile.pl should be inside the package. I thought there's a one universal makefile.pl within activeperl for building all modules.
Anyway, this package win32:perms was already compiled so it hasn't got makefile.pl ..
I'm not a perl programmer, i just want to use a perl based app.
 
I have indeed got Activeperl, but 5.10.0.

I couldn't get it to install any other way. As you say, there's no makefile, which one would normally expect.
 
I couldn't install it through ppm gui since it cannot see packages with old ppd files (some 50 packages in bribes repo).
Can't remember was there only 5.8 or 5.10 too in the ppd, but there wasn't 5.14 in the <architecture .. part of the code. So i had to download it and edit it manually, and then i managed to install the module using that edited local ppd.
And manual installation from console (before the edit) was resulting in :
ppm install failed: The PPD does not provide code to install for this platform

I guess there's no makefile in the package as it's already compiled.
I hope some perl programmer could tell how to distinguish compiled from non-compiled modules (other than presence of makefile)? It took me a whole day looking for a way to "compile" already compiled package :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top