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

Oh Monks,

I have installed Develperside.net's Apache2/ModPerl package on my Win2k desktop. It uses a standard build of perl from CPAN and has no PPM utility like activeperl. So, you must build any modules you want to add.

I built a few common modules without problem once I found nmake.exe, cl.exe and a few other utilities that were needed and put them into the PATH. I even got DBD::Sybase installed.

I converted my web application to mod_perl and all was good until I wanted to set it all up on our production Win2k server. I can't get DBD::Sybase installed. When I run nmake I get

cl -c -Ic:\sybase/OCS-12_5/include -IC:/www/perl/site/lib/auto/DBI - +no logo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAV +E_DES_FCRY PT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSV +CRT_READFI X -MD -Zi -DNDEBUG -O1 -DVERSION=\"1.02\" -DXS_VERSION=\"1.02\" " +-I\www\per l\lib\CORE" Sybase.c Sybase.c \www\perl\lib\CORE\perl.h(380) : fatal error C1083: Cannot open includ +e file: 's ys/types.h': No such file or directory NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop.

It might be that since my desktop has visual studio installed that it has something that is needed? The weird thing is that on my desktop there is no 'sys/types.h' under the perl/lib/CORE either but for some reason it was not a problem.

I searched the web and pepplers site with no luck yet. I did see one related reference that indicated that a module might have been intended for linux if it's looking for 'sys/types.h'. Hmmmmm. Does anyone have any suggestions?

Replies are listed 'Best First'.
Re: Troubles installing Dbd::Sybase
by noslenj123 (Scribe) on May 26, 2005 at 18:26 UTC
    Well, in the meantime, I got it working by cheating. I found all the files related to Sybase on my desktop perl tree and copied them to the server...that did the trick.

    But I don't like not knowing why I can't install it correctly.... grrrrr

Re: Troubles installing Dbd::Sybase
by derby (Abbot) on May 26, 2005 at 18:28 UTC
    sys/types.h should be part of you compiler environent. On a normal *nix box, that file should be in /usr/include (or /usr/local/include). I have no idea were VS would have its standard includes.

    -derby
Re: Troubles installing Dbd::Sybase
by PodMaster (Abbot) on May 27, 2005 at 00:04 UTC
    sys/types.h is a standard c header, and it comes with the microsoft compiler. Running vcvars32.bat ought to set the appropriate enviroment variables. You can get PPM from CPAN.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      My target production server has no development environment at all so I can't run vcvars32.bat.

      However....

      ++ on all the great PPM links and information which should solve any future problems install modules. :-)