secJ
secJ

Reputation: 509

Move your compiled Perl to a new directory

If I'm compiling and running various versions of Perl, what is the best way to relocate its directory if needed? For example, if I compile Perl 5.22.0 with:

./Configure -des -Dprefix=$HOME/perl522
make all
make test
make install

But later realize I'd like to move it (and future builds) to a directory called $HOME/perls/perl522/ -- can it be done merely using a mv perl522 ~/perls/ command, or does the -Dprefix= command used during the initial Configure process intrinsically link that location, thus require a full re-configuration, make, test, etc...?

Is there a best practice / streamlined process for such a circumstance?

Upvotes: 1

Views: 387

Answers (1)

user3967089
user3967089

Reputation:

Look in the INSTALL file in the Perl source tree, under the heading "Relocatable @INC". It's possible to do roughly what you want, but it requires compiling perl with a special flag and it has some caveats to it.

Upvotes: 1

Related Questions