All you need to do is specify both a LIB and a PREFIX args to Makefile.PL and your binaries will be installed where you order.
This is the classic "Hello World!" (in C XS) installed completely into /tmp so that all you need to do is use lib '/tmp' and it will just work....
C:\Local>perl Makefile.PL LIB=/tmp PREFIX=/tmp Writing Makefile for Local C:\Local>nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -c -nologo -O1 -MD -Zi -DNDEBUG -DWIN32 -D_CONSOLE -DNO_ST +RICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -D +PERL_MSVCRT_READFIX -O1 -MD -Zi -DNDEBUG -DVERSION=\"0.01\" -DXS_ +VERSION=\"0.01\" -ID:\Perl\lib\CORE Local.c "Running Mkbootstrap for Local ()" [snip rest of blah] C:\Local>nmake test Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. D:\Perl\bin\perl.exe -Iblib\arch -Iblib\lib -ID:\Perl\lib -ID: +\Perl\lib test.pl 1..1 ok 1 Hello, world! C:\Local>nmake install Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. Installing \tmp\MSWin32-x86-multi-thread\auto\Local\Local.bs Installing \tmp\MSWin32-x86-multi-thread\auto\Local\Local.dll Installing \tmp\MSWin32-x86-multi-thread\auto\Local\Local.exp Installing \tmp\MSWin32-x86-multi-thread\auto\Local\Local.lib Installing \tmp\MSWin32-x86-multi-thread\auto\Local\Local.pdb Installing \tmp\Local.pm Installing \tmp\auto\Local\autosplit.ix Writing \tmp\MSWin32-x86-multi-thread\.\auto\Local\.packlist Appending installation info to \tmp\MSWin32-x86-multi-thread\./perlloc +al.pod C:\Local>cd c:\tmp C:\tmp>type test.pl #!/usr/bin/perl use lib '/tmp'; use Local; hello(); C:\tmp>test.pl Hello, world! C:\tmp>
cheers
tachyon
In reply to Re: Tweaking DynaLoader's path without write access to the perl installation
by tachyon
in thread Tweaking DynaLoader's path without write access to the perl installation
by mhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |