I execute a perl script with exec
via php, however I receive an error that the module Net::DNS is missing. I have installed the module as a regular user and as such is located in /home/user/perl5/i686-linux-thread-multi and I do use a full path (/usr/bin/perl) in the exec.
I've even tried to add the /home/user/perl5/i686-linux-thread-multi directory to @INC but the script still throws the error...
And I also tried to install the module with custom install path directly into /usr/lib/perl5/vendor_perl, but that didn't solve the problem either. And symlink didn't fix that either.
Here is the error message
Can't locate Net/DNS.pm in @INC (@INC contains:
/usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl
Any idea how this can be solved, sort of running out of ideas how to deal with this.