Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to install module to a specifc Perl?

1 view
Skip to first unread message

Water Lin

unread,
Sep 24, 2009, 5:18:46 AM9/24/09
to

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: Wate...@ymail.com

Bart Lateur

unread,
Sep 24, 2009, 7:45:49 AM9/24/09
to
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%.

>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

unread,
Sep 24, 2009, 1:26:26 PM9/24/09
to
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.
>
> 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

unread,
Sep 24, 2009, 10:41:18 PM9/24/09
to
On 2009-09-24, Bart Lateur <bart....@pandora.be> wrote:
> 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

0 new messages