Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Sys::Syslog Install Fails thru CPAN

by froh21 (Initiate)
on Aug 16, 2014 at 03:24 UTC ( [id://1097641]=perlquestion: print w/replies, xml ) Need Help??

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

Hello Wise monks, I'm a strawberry newb and run into a compile error when installing Sys::Syslog through CPAN. This is a fresh install on a Win8.1 box. GCC doesn't seem to be recognized. I'm not sure how to address. Any help is greatly appreciated.

E:\Programs\Strawberry\perl\bin>perl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v2.00) Enter 'h' for help. cpan> install Sys::Syslog Database was generated on Sat, 16 Aug 2014 01:40:59 GMT Running install for module 'Sys::Syslog' Running make for S/SA/SAPER/Sys-Syslog-0.33.tar.gz Checksum for E:\Programs\Strawberry\cpan\sources\authors\id\S\SA\SAPER +\Sys-Syslog-0.33.tar.gz ok Scanning cache E:\Programs\Strawberry\cpan\build for sizes ...................................................................... +......DONE CPAN.pm: Building S/SA/SAPER/Sys-Syslog-0.33.tar.gz * Win32::EventLog detected. Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Sys::Syslog Writing MYMETA.yml and MYMETA.json cp Syslog.pm blib\lib\Sys/Syslog.pm cp win32/PerlLog.dll blib\arch\auto\Sys\Syslog/PerlLog.dll cp win32/Win32.pm blib\lib\Sys/Syslog/Win32.pm Running Mkbootstrap for Sys::Syslog () E:\Programs\Strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod +-- 644 Syslog.bs E:\Programs\Strawberry\perl\bin\perl.exe E:\Programs\Strawberry\perl\l +ib\ExtUtils\xsubpp -noprototypes -typemap E:\Programs\Strawberry\perl +\lib\ExtUtils\typemap Syslog.x s > Syslog.xsc && E:\Programs\Strawberry\perl\bin\perl.exe -MExtUtils: +:Command -e mv -- Syslog.xsc Syslog.c gcc -c -Ifallback -s -O2 -DVERSION=\"0.33\" -DXS_V +ERSION=\"0.33\" "-IE:\Programs\Strawberry\perl\lib\CORE" -DUSE_PPPO +RT_H Syslog.c 'gcc' is not recognized as an internal or external command, operable program or batch file. dmake.exe: Error code 129, while making 'Syslog.o' SAPER/Sys-Syslog-0.33.tar.gz E:\Programs\Strawberry\c\bin\dmake.exe -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Stopping: 'install' failed for 'Sys::Syslog'. Failed during this command: SAPER/Sys-Syslog-0.33.tar.gz : make NO

Replies are listed 'Best First'.
Re: Sys::Syslog Install Fails thru CPAN
by dasgar (Priest) on Aug 16, 2014 at 05:37 UTC

    Which version of Strawberry Perl are you using? Both 32-bit and 64-bit builds of Strawberry Perl 5.20.0.1 already comes with Sys::Syslog version 0.33 installed.

    Also, I just tried 32-bit portable Strawberry Perl 5.18.2.2 on 64-bit Windows 7 and Sys::Syslog installed from CPAN without any issues. Rather than using the interactive shell of CPAN, I just ran cpan Sys::Syslog to install the module.

Re: Sys::Syslog Install Fails thru CPAN
by thomas895 (Deacon) on Aug 16, 2014 at 03:44 UTC

    Is it just this module? Or do others also fail?
    It looks to me like gcc isn't in your %PATH%. Try adding it, and start a new instance of cmd.exe for it to take effect. Also consider adding the path to perl.exe to your %PATH% as well.

    Also, syslog is typically a POSIX thing. Are you sure that will work on Windows?

    ~Thomas~ 
    "Excuse me for butting in, but I'm interrupt-driven..."
Re: Sys::Syslog Install Fails thru CPAN
by froh21 (Initiate) on Aug 16, 2014 at 15:43 UTC
    Hey guys, great input... You solved my problems. Sys::syslog was already in the Strawberry package. But I added the commands to the perl path anyways. Thank you. Btw, the donate link isn't working... I'm redirected to a 404. Also, I found the perlfoundation donation page (below,) however my data would not be encrypted over SSL. :\ http://donate.perlfoundation.org/donate.html

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-18 02:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found