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
Re: How to install a module in XP
by ajt (Prior) on Nov 16, 2004 at 16:17 UTC
|
Neil,
You will find that this question is one of the more common ones.
Most Windows users don't have the right bits that you would expect in a proper operating system, so you are forced to rely on the good nature of other Windows users to compile and link code for you. You can compile yourself, only if you use the same compiler that ActiveState used.
You can use PPM via a firewall, by configuring it up to use a proxy, or downloading the files by hand and then installing them locally.
The following threads may prove useful:
| [reply] |
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. | [reply] |
|
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
| [reply] |
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. | [reply] |
|
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
| [reply] |
|
You may want to check that the DLL is located in the path. Your perl bin directory is probably in the path.
| [reply] |
|