Hello Monks,

I'm trying to run a perl script on localhost using Hiawatha server on Linux Puppy (ubuntu based).

However, I'm getting the following error.

(The same script can be executed without any problems on the rental server and xampp on Windows.)

Contents of error.log:

127.0.0.1|Wed dd Sep 2024 hh:mm:ss +0900|/root/Web-Server/....../targe +t.cgi|Can't locate version.pm in @INC (you may need to install the ve +rsion module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-g +nu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu +/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr +/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/p +erl-base) at /usr/lib/x86_64-linux-gnu/perl5/5.30/Storable.pm line 3.|BEGIN failed- +-compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.30/Storable +.pm line 3.|Compilation failed in require at /usr/lib/x86_64-linux-gnu/perl5/5.30/Encode.pm line 56.|BEGIN failed-- +compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.30/Encode.pm + line 56.|Compilation failed in require at /root/Web-Server/....../memory.cgi line 6.|BEGIN failed--compil ation +aborted at /root/Web-Server/....../target.cgi line 6. 127.0.0.1|Wed dd Sep 2024 hh:mm:ss +0900|no output

Note: that if I run

root# find `perl -e 'print "@INC"'` -name '*.pm' -print

it will return

/usr/lib/x86_64-linux-gnu/perl5/5.30/Version.pm

so I think version.pm is already installed.

Additional information:

The 6th line of target.cgi is

use Encode;

In reply to version error by soso_ynak

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.