Solved

module installation on win32

Posted on 2004-08-09
5
1,149 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
Six Sigma Control Plans

623 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