Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

How to install a module in XP

by NeilG (Initiate)
on Nov 16, 2004 at 15:34 UTC ( [id://408139]=perlquestion: print w/replies, xml ) Need Help??

NeilG has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,
I am trying to install Encode:IBM on my Windows XP system (Activestate perl 5.8.4 running OK)
Using the installation isntructions that came with it failed as:
- cpansign does not exist on my system (I ignored this)
- make did not exist (so I got nmake from a Vc7 cd)
- cl does not work (so I got it from a Vc7 cd)
- cl then fails with a cannot open include file 'sys/types.h'
I can't use ppm as the firewall in the office blocks it even with HTTP_proxy set up.

Is there an easy way to do it.
Regards,
Neil

Replies are listed 'Best First'.
Re: How to install a module in XP
by ajt (Prior) on Nov 16, 2004 at 16:17 UTC
Re: How to install a module in XP
by nimdokk (Vicar) on Nov 16, 2004 at 15:44 UTC
    You should be able to download the appropriate files from the ActiveState archives and then in ppm set your repository to a local directory inside your firewall.
      Hi,
      yes I tried that but the module Encode:IBM is not listed in Activestate module list.
      I downloaded the module from CPAN. Putting this in a "local repository" that I added to ppm does not work as ppm can't see anything in the local repository.
      Regards,
      Neil
Re: How to install a module in XP
by inman (Curate) on Nov 16, 2004 at 16:20 UTC
    Have you installed Visual C 7 (you appear to have the CD)? You should be able to do a limited install of the command line components and libraries by themselves (assuming that you don't want the IDE).

    Assuming that it is the same as previous versions, the install should make a BAT file called vcvars32.bat which sets up the environment for the command line tools. You can then use nmake, cl etc. to work with your CPAN module in the usual way.

      Hi all,
      thanks it is working now
      I dowloaded from CPAN, compiled on a system with Visual Studio.NET 2003 installed
      using vsvars.bat to set the environment.
      This gave a DLL which manually copied to ..\auto directory
      and I copied IBM.pm to perl\lib\Encode\
      Thanks
      Neil
        You may want to check that the DLL is located in the path. Your perl bin directory is probably in the path.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://408139]
Approved by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-24 04:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found