Hello all!

I have a perlbrew with a running perl 5.25.10 on MacOS Sierra

In /usr/local/bin/

I have a symbolic link "perl" pointing to ~/perl5/perlbrew/perls/perl-5.25.10/bin/perl

My CGI script is running local on apache server and mysql

Starting my CGI Script with

#!/usr/bin/perl

Everything is working. But not with

#!/usr/local/bin/perl

My CGI script uses following modules: CGI DBD::mysql DBI which are listed by

perlbrew list-modules

The apache error_log seems to stop at the first module: CGI with error:

BEGIN failed--compilation aborted at /Library/WebServer/CGI-Executables/todo04.pl line 25.

My paths are configured right (means right order):

/Users/mstep/perl5/perlbrew/bin
/Users/mstep/perl5/perlbrew/perls/perl-5.25.10/bin
/Users/mstep/perl5/bin
/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin
/opt/X11/bin
/usr/local/MacGPG2/bin
/usr/local/mysql/bin
/Users/mstep/perl5/bin
/Applications/Rakudo/bin
/Applications/Rakudo/share/perl6/site/bin
/Library/TeX/texbin

perlbrew is switched to:
* perl-5.25.10

Can someone help me out to config perlbrew?
Thank you in advance

marek


In reply to perlbrew configuration and CGI Script by marek1703

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.