I followed the instructions in this tutorial to build a custom version of Perl.
I originally did step 8 as follows:
./Configure -d -Dprefix=/custom/perl
After I did that, I did make, make test, and make install.
Then I decided that I want Perl in /opt/perl instead, so I did make clean and repeated the process and did step 8 with the appropriate directory. Still installed into /custom. Then I deleted custom completely and re-installed with the appropriate directory in the ./Configure step. Still installed into /custom.
What am I missing? I want Perl in /opt not /custom.
You have the right usage for 5.16, as per its
INSTALLfile: “You can also specify any prefix location by adding “-Dprefix='/some/dir'” toConfigure‘s args.”So I suspect that
make cleandoes not remove the files created byConfigure. Try it from a fresh directory instead of a “cleaned” directory. Or at least try deletingconfig.shandPolicy.sh.[Upd: It was pointed out that
make distcleancan be used to do this. Of course, so cangit clean -dfxif you’re installing from the repo instead of from the tarball. ]