Specify a different location for Perl.

Moderator: crythias

Locked
alatteri
Znuny newbie
Posts: 2
Joined: 29 Jan 2011, 11:53
Znuny Version: 3

Specify a different location for Perl.

Post by alatteri »

I am trying to install on a machine in which I cannot update the default version of Perl. I can however compile the latest version elsewhere. How can I have OTRS use this sideline version instead of the standard install path of Perl?
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Specify a different location for Perl.

Post by Wolfgangf »

AFAIK: you would have to change the shebang operator in all OTRS scripts from

Code: Select all

#!/usr/bin/perl -w
to

Code: Select all

#!/your/new/path/to/perl/perl -w
you should get a list of all relevant programs by running

Code: Select all

grep -R '#!/usr' * 
from you OTRS home directory

Hope that helps
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Specify a different location for Perl.

Post by jojo »

this will be hell of work on every update, installing packages and so on. I also doubt, that you'll get mod_perl running with this, as you also need to compile this with new PERL version.

So you should try to get the box upgraded your install a new one
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
alatteri
Znuny newbie
Posts: 2
Joined: 29 Jan 2011, 11:53
Znuny Version: 3

Re: Specify a different location for Perl.

Post by alatteri »

I agree.. switching to Trellis.
Locked