http://www.perlmonks.org?node_id=1024017


in reply to Re^2: Identifying functions in a c file and replacing with a keyword
in thread Identifying functions in a c file and replacing with a keyword

I am unable to install c::span module for windows xp

C::Scan builds, tests and installs fine for me on windows.
What prevents you from installing it ?

Cheers,
Rob
  • Comment on Re^3: Identifying functions in a c file and replacing with a keyword

Replies are listed 'Best First'.
Re^4: Identifying functions in a c file and replacing with a keyword
by ijalab (Initiate) on Mar 18, 2013 at 11:58 UTC
    Sir, I am getting this error, i have installed cscan.pm still throws this error. Can't locate C/Scan.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at Functions.pl line 4. BEGIN failed--compilation aborted at Functions.pl line 4.

      You either didn't install it successfully or simply copied a file to where you think it should be. If you want help show how you installed something and how it failed rather than repeat the fact that Perl can't find this module where it expects. cpan C::Scan from the command line to install this module and it's dependencies, or try using PPM. Again actaually read and understand How do I post a question effectively?

      Update: Fixed typos

        My apologies for not explaining clearly. This is the first time, I used or observed the CPAN modules. So, I installed ActiveStatePerl 5.16 version from web.And since I got the error related to unable to locate C/Scan.pm file while executing the code, I initially, downloaded the C-Scan-0.74.tar.gz and unzipped the folder. And did the following steps to install
        cd C-Scan-0.74\C-Scan-0.74 Makefile.PL -> Here I got a Warning: prerequisite Data::Flow 0.05 no +t found.
        so, downloaded Data-Flow-1.02.tar.gz and followed makefile.pl followed by dmake install for both the modules.Still I was getting while compiling my perl code. But then when you asked me to explain the steps that I did, I just tried to add
        #use lib '../C-Scan-0.74/C-Scan-0.74/blib/lib'; #use lib '../Data-Flow-1.02/Data-Flow-1.02/blib/lib';
        I could compile my code and things work fine. Now I shall check for my expected behavior out of the script and let you know. But if not for explaining you, I wouldn't have got things working.