rpnoble419 has asked for the wisdom of the Perl Monks concerning the following question:
After several weeks of effort I could not get perlbrew to install on my 1and1 server. I did get the generic ActiveState 5.14 to install, However I don't see a perl file in the bin directory. I have a symbolic link called perl5.14.2. I don't have much experience with linux, but I believe that this symbolic link calls the perl-static application. And I can run perl-static -v and get the correct Perl information screen, so I know Perl 5.14.2 is installed and running. I have updated the .bash_profile to add the ~/Perl-5.14/bin to the path and now I can run my scripts from the command line using either perl5.14.2 <name of script> or perl-static <name of scriipt>. I have also added the ~/Perl5-14/lib directory as my PERL5LIB path.
When I try to run the scripts via Apache I'm still getting the default Perl interpreter running. I have changed the #! to reflect the Perl 5.14 path:
#!/kunden/homepages/XX/XXXXXXXX/htdocs/Perl-5.14/bin/perl5.14.2
I have also tried the following:
#!~/Perl-5.14/bin/perl5.14.2 and #!~/Perl-5.14/bin/perl-static and #!/kunden/homepages/XX/XXXXXXXX/htdocs/Perl-5.14/bin/perl-static
I'm left to ponder my life here. I hate running on a shared box. What am I missing? Do I need to point Apache to Perl5.14? I thought by changing the shebang it should work. Should I re-install ActiveState into a directory? Do I need to change anything else in the .bash_profile to force any reference to perl to be redirected to my Perl-5.14?
As always thanks for the help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Installing a new Perl on 1and1
by thomas895 (Deacon) on Oct 15, 2012 at 05:19 UTC | |
|
Re: Installing a new Perl on 1and1
by flexvault (Monsignor) on Oct 15, 2012 at 14:45 UTC |