Solved

module installation on win32

Posted on 2004-08-09
5
1,132 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

867 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

24 Experts available now in Live!

Get 1:1 Help Now