marek1703 has asked for the wisdom of the Perl Monks concerning the following question:
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/perlEverything is working. But not with
#!/usr/local/bin/perlMy CGI script uses following modules: CGI DBD::mysql DBI which are listed by
perlbrew list-modulesThe 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perlbrew configuration and CGI Script
by huck (Prior) on Mar 04, 2017 at 19:23 UTC | |
by marek1703 (Acolyte) on Mar 04, 2017 at 21:24 UTC | |
by huck (Prior) on Mar 04, 2017 at 21:51 UTC | |
by marek1703 (Acolyte) on Mar 05, 2017 at 09:50 UTC | |
by huck (Prior) on Mar 05, 2017 at 10:40 UTC | |
|
Re: perlbrew configuration and CGI Script
by Anonymous Monk on Mar 04, 2017 at 10:23 UTC | |
by marek1703 (Acolyte) on Mar 04, 2017 at 11:22 UTC | |
by Anonymous Monk on Mar 04, 2017 at 18:30 UTC |