Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 2 installed Perl on the OS, now my cgi script need to run the module on newly installed Perl, I've already set played the PERL5LIB, @INC to include the new instance but it doesn't work.

Any way to modify apache to look/use the new Perl instance?

share|improve this question

Can you start your cgi script with a she-bang, using the path of your desired perl:

#!/usr/bin/perl -w
share|improve this answer
    
Adding the desired perl on header as you suggested works. – user114082 Mar 14 '12 at 19:23
    
@lupin -- thanks. If you are satisfied with the solution, could you mark my answer as accepted? – Lars Rohrbach Mar 14 '12 at 20:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.