Solved

module installation on win32

Posted on 2004-08-09
5
1,126 Views
Last Modified: 2009-07-29

I'm behind a restrictive firewall, so installing modules from the console via CPAN or PPM is not an option

To make things intersting, the Perl folder is on a server share, stand-alone style, with not so much as a file association.

How can I add modules to this Perl engine share?


Specifically, I want to install Win32::API::Prototype
(http://search.cpan.org/CPAN/authors/id/D/DA/DAVEROTH/Win32-API-Prototype.tar.gz)

I have the perl module from CPAN:  Prototype.PM
no MakeFile or anything...
So what can I do?
0
Comment
Question by:Marketing_Insists
  • 2
  • 2
5 Comments
 
LVL 9

Expert Comment

by:ronan_40060
ID: 11759767
Since your behind proxy server
You need to set up environment variable
Here's a link to the web page about this topic:

http://aspn.activestate.com/ASPN/docs/ActivePerl/faq/ActivePerl-faq2.html#ppm_and_proxies

good luck
ronan
0
 
LVL 4

Accepted Solution

by:
vi_srikanth earned 250 total points
ID: 11760279
I have installed a few modules by just copying to the site/lib folder. Why don't u try that. Just copy the Prototype.PM to: YourPerlPath\Site\lib\Win32\API\Prototype.PM

If API directory is not there, create it.
0
 

Author Comment

by:Marketing_Insists
ID: 11768884
-vi_srikanth
tried creating the folder and placing it their maually, I still get the error though:

C:\>I:sys\perl\bin\perl.exe H:\scripts\perl\hide-consol.pl

C:\>Can't locate Win32/API.pm in @INC (@INC contains: I:/sys/Perl/lib I:/sys/Per
l/site/lib .) at I:/sys/Perl/site/lib/Win32/API/Prototype.pm line 14.
BEGIN failed--compilation aborted at I:/sys/Perl/site/lib/Win32/API/Prototype.pm


-ronan_40060
Tried the environmental variables:
still...

Error: No valid repositories:
Error: 500 Can't connect to ppm.ActiveState.com:80 (connect: Unknown error)


Wierd thing:
With wget, when I left my user ID and Password as a environmental variable, it
didn't work either until I built it into wgets argument.  
However, I did have to set the the HTTP_PROXY variable previous to calling wget
(I tried putting the proxy location into wgets argument, but it didn't work...odd)

c:\>set HTTP_proxy=proxy.company.com:8080
c:\>wget -E --proxy-user=MyID --proxy-passwd=PassWord http://download.adobe.com/this.exe
worked !

I think it is a problem with PPM  It's default method of passing the authentication to the proxy is incorrect and it needs argument options similar to wget if it wants to get through.
0
 
LVL 4

Expert Comment

by:vi_srikanth
ID: 11769521
For prototype to work, u must first have Win32::API which can be downloaded from http://search.cpan.org/~acalpini/Win32-API-0.41/

If unable to install, just copy the API.pm to the Win32 folder.
0
 

Author Comment

by:Marketing_Insists
ID: 11928012
AFter I cp the API.pm to the Win32 folder, it worked out fine

thanks
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now