Main Page | Report this Page
Computers Forum Index  »  Computer Languages (Perl - Modules)  »  How to install module to a specifc Perl?...
Page 1 of 1    

How to install module to a specifc Perl?...

Author Message
Water Lin...
Posted: Thu Sep 24, 2009 1:18 pm
Guest
I have two editions of Perl on my computer. One is the portable edition
with Xampp. One is under Cygwin.

Now I want to install a module to this portable edition. What can I do?

I think "$ perl Makefile.PL" will install the module to my cygwin Perl.

If I enter the path of the portable edition, and use
$ ./perl.exe Makefile.PL
to install, is it possbile?

--
Water Lin's blog: http://blog.waterlin.org
Email: WaterLin at (no spam) ymail.com
 
Bart Lateur...
Posted: Thu Sep 24, 2009 3:45 pm
Guest
Water Lin wrote:

Quote:

I have two editions of Perl on my computer. One is the portable edition
with Xampp. One is under Cygwin.

Now I want to install a module to this portable edition. What can I do?

I think "$ perl Makefile.PL" will install the module to my cygwin Perl.

(Temporarily) add the the bin directory of the perl you want to use at
the front of %PATH%.

Quote:
If I enter the path of the portable edition, and use
$ ./perl.exe Makefile.PL
to install, is it possbile?

Maybe, yes.You'll have to make sure the correct perl.exe is used
everywhere during installation.

--
Bart.
 
Christian Winter...
Posted: Thu Sep 24, 2009 9:26 pm
Guest
Water Lin wrote:
Quote:
I have two editions of Perl on my computer. One is the portable edition
with Xampp. One is under Cygwin.

Now I want to install a module to this portable edition. What can I do?

I think "$ perl Makefile.PL" will install the module to my cygwin Perl.

If I enter the path of the portable edition, and use
$ ./perl.exe Makefile.PL
to install, is it possbile?

As Bart wrote, you have to make sure your path is correctly set up.
I've found it most convenient to make a batch file that sets up
the path environment so the desired native version is in it (and
the native sdk files like nmake, cl etc) while no cygwin paths are
contained, and configure my cygwin bash via .profile to do the same
for the cygwin perl version.

-Chris
 
Ilya Zakharevich...
Posted: Fri Sep 25, 2009 2:41 am
Guest
On 2009-09-24, Bart Lateur <bart.lateur at (no spam) pandora.be> wrote:
Quote:
Water Lin wrote:


I have two editions of Perl on my computer. One is the portable edition
with Xampp. One is under Cygwin.

Now I want to install a module to this portable edition. What can I do?

I think "$ perl Makefile.PL" will install the module to my cygwin Perl.

(Temporarily) add the the bin directory of the perl you want to use at
the front of %PATH%.

You'll have to make sure the correct perl.exe is used
everywhere during installation.

AFAIK, Makemaker takes care of this. (It must even handle uninstalled
locally-compiled perls.)

Yours,
Ilya
 
 
Page 1 of 1    
All times are GMT
The time now is Wed Dec 02, 2009 7:46 am