Link to home
Start Free TrialLog in
Avatar of trevor1940
trevor1940

asked on

C compiler for instaling perl modules

Hi

I'm trying to install these perl moduals on a standalone (No internet conection) windows 7 32 bit PC
Algorithm::Cluster
Algorithm::ClusterPoints

ActiveSttate perl 5.14 will not install any modules even with a local repository and a ppd file

I wish to use the To use the C clustering library from
http://bonsai.hgc.jp/~mdehoon/software/cluster/software.htm#source

i've managed to install other modules using
perl Makefile.PL
nmake
nmake test
nmake install

but i get an error installing  these modules
nmake fatal error u1077
i think this is because  i need a c compiler

i attempted to install minGW but the exe needs to access the Internet to get the code which can not happen on a stand alone PC

I've gone here and downloaded every thing but I've not attempted to install it yet
http://www.mingw.org/wiki/InstallationHOWTOforMinGW

It occurs to me there could be a simpler way to download and install a  c compiler   and further install perl modules

Thanks
Avatar of parparov
parparov
Flag of United States of America image

I think you should be ok with downloading the latest snapshot package of MinGW, unpacking it and then just running mingw-get install . Skip the update part.
Avatar of evilrix
You realise if the machine has no internet connection certain things in Perl (such as PPM and CPAN) are not going to work properly (or at all?).

By far MinGW is your best bet here as it is basically gcc for windows and that is pretty much the compiler used by all open source  and will certainly work fine for building Perl modules.
Avatar of trevor1940
trevor1940

ASKER

Well that didn't work!
Unpacked MinGW & set the path variable to C:\MinGW\bin

ran gcc -V & got a sensible return

cd to the Algorithm::Cluster ran perl MakeFile.pl
then

nmake got an error can't find dmake or similar

googled 'gcc mingw perl' and found dmake attempted to follow the install instructions within the download but all i'm getting now is

dmake fatal error

unsure if I've installed it correctly

can some point me to a good dmake installation + Guide? or How to install these perl mods?

evilrix: Why will PPM not work without Internet? in passed versions of perl running on standalone PC's PPM worked by first setting a local repository then creating a ppd file to point at the my_perlMod.tar.giz



>> nmake got an error can't find dmake or similar
nmake isn't a MinGW makefile, it's a Windows compiler make file.
http://msdn.microsoft.com/en-us/library/ms930369.aspx

You need to run the MinGW shell and then build from there otherwise your environment won't be set up correctly. You can't just do this (at least not easily) from a Dos prompt.
>> Why will PPM not work without Internet?
Because it connects to remote servers to download packages. You could set up a local repo (never tried this) but it kinda defeats the object. You've be better off getting tar balls from CPAN and using cpan or cpanm to install them.
evilrix:
You need to run the MinGW shell and then build from there

what am i building from this shell? the perl mod install or MinGW  itself?
what steps should i be following?

are you suggesting dmake is a red herring?

PPM Did work with perl 5.8 by removing www repo's and creating a local one I've suceesfully installed mods in this way allot admittedly not on a win 7 box, I assumed from your comment there was another reason.

BTW, if you have nmake, you may have MS windows compiler?

I think you can install compileable modules with that compiler too.
ASKER CERTIFIED SOLUTION
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm closing this i've not actuly got it work Under win 7 and managed to screw up apacie

I got the same error as you No library found for -lm
but i also got can't find perldoc.bat

So i'm creating a dule boot into fedora