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

I am trying to setup an image board with Apache2.0, ActivePerl, and Kareha. I can't figure out what's wrong with these lines though
Software error: password at config_defaults.pl line 8. line 8 = die S_NOADMIN unless(defined &ADMIN_PASS); BEGIN failed--compilation aborted at config_defaults.pl line 133. line 133 = } Compilation failed in require at H:/Program Files/Apache Group/Apache2 +/htdocs/kareha.pl line 13. line 13 = BEGIN { require 'config_defaults.pl'; } BEGIN failed--compilation aborted at H:/Program Files/Apache Group/Apa +che2/htdocs/kareha.pl line 13.

Update Ok I fixed the first one but now Ive got this.

Software error: Bareword "S_NOADMIN" not allowed while "strict subs" in use at config_ +defaults.pl line 8. Bareword "S_NOSECRET" not allowed while "strict subs" in use at config +_defaults.pl line 9. Compilation failed in require at H:/Program Files/Apache Group/Apache2 +/cgi-bin/kareha.pl line 13. BEGIN failed--compilation aborted at H:/Program Files/Apache Group/Apa +che2/cgi-bin/kareha.pl line 13.

20090412 Janitored by Corion: Restored original post,added formatting, code tags, as per Writeup Formatting Tips

Replies are listed 'Best First'.
Re: Software Error
by bradcathey (Prior) on Apr 11, 2009 at 21:01 UTC

    Did you read and try to understand the messages? Believe it or not, all that stuff you're seeing is actually there to help you. Take the time to read it a few times and you might start to see a pattern. TIP: I'd start with the easy one, line 13 of kareha.pl

    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot
Re: Software Error
by CountZero (Bishop) on Apr 12, 2009 at 06:53 UTC
    Ok I fixed the first one but now Ive got this
    Which first one? This is your first (and until now) only post. Did you "recycle" your original post? That could explain why some of the answers now do not seem to make sense anymore.

    BEGIN failed--compilation aborted at H:/Program Files/Apache Group/Apache2/cgi-bin/kareha.pl line 13.
    The Perlmonks are good, but they are not psychic. Showing us a relevant piece of your program will surely help in finding the reason of this error.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      Yes, indeed, this is 100% post-consumer content. Via original content of 757056:

      I am trying to setup an image board with Apache2.0, ActivePerl, and Ka +reha. I can't figure out what's wrong with these lines though Software error: password at config_defaults.pl line 8. line 8 = die S_NOADMIN unless(defined &ADMIN_PASS); BEGIN failed--compilation aborted at config_defaults.pl line 133. line 133 = } Compilation failed in require at H:/Program Files/Apache Group/Apache2 +/htdocs/kareha.pl line 13. line 13 = BEGIN { require 'config_defaults.pl'; } BEGIN failed--compilation aborted at H:/Program Files/Apache Group/Apa +che2/htdocs/kareha.pl line 13.

      HTH,

      planetscape
Re: Software Error
by CSJewell (Beadle) on Apr 11, 2009 at 21:20 UTC

    Wish we had more of the code to see, but I'd actually do it in reverse (The last error is a chain-reaction from the first)

    Apparently &ADMIN_PASS is not defined. I get the impression it's a subroutine that's supposed to return something - why isn't it? Does it not exist?

Re: Software Error
by ikegami (Patriarch) on Apr 12, 2009 at 08:33 UTC
    Bareword "S_NOADMIN" not allowed while "strict subs" in use Bareword "S_NOSECRET" not allowed while "strict subs" in use

    These errors indicate S_NOADMIN and S_NOSECRET are not known to be constants or subs at the time of their compilation. Maybe they need to be imported?