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
In reply to perlbrew configuration and CGI Script by marek1703
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |