[maker-devel] Installation in a custom directory

Carson Holt carsonhh at gmail.com
Tue Aug 2 09:51:25 MDT 2016


You are probably thinking of times you have used Build.PL for installing modules (primarily from CPAN). MAKER is not a module. You should really think of Build.PL as being akin to a Perl version of ‘make’. Just like ‘make', Build.PL can be configured to do the necessary configuration/setup for nearly anything. In this case, it’s not installing a module, rather Build.PL is just configuring external dependencies for a package of scripts. So the options you are trying to configure for have no meaning given how Build.PL is set up in this case.

—Carson


> On Aug 2, 2016, at 9:29 AM, Martin MOKREJŠ <mmokrejs at gmail.com> wrote:
> 
> Hi Sebastien,
>  I had similar concerns in the past as well.
> 
>  I also would like to install it elsewhere, but usually Build.PL works with other packages. This is not the case of maker.
> 
>  I would also would need two or three commandline switches: --destdir=${DESTDIR} --prefix=${EPREFIX}/usr --perl-inc-path=${EPREFIX}/${VENDOR_LIB} --perl-man-path=$somewhereelse
> 
> From the above, the ${EPREFIX}/usr could be compiled into binaries, config files, etc.
> The ${DESTDIR} should contain subdirectories /usr, /usr/lib, /usr/share, etc. so that a script could do: cd /my/temp/path; tar cf - . | maker.tgz and later unpack it over my / (root directory) of the filesystem.
> 
> Then I could finish my abandoned attempt to make a package for maker in Gentoo Linux ( https://cgit.gentoo.org/proj/sci.git/diff/sci-biology/maker/maker-2.31.8.ebuild ), exactly because of these issues. ;-) As you may see, I am especially stuck with what to do with maker/lib/ contents, seems like pre-installed perl apps. I need to create a package for each of them separately before proceeding with "rm -rf maker/lib".
> 
> Martin
> 
> 
> Sebastien Moretti wrote:
>> OK, just need to move the maker/bin folder.
>> 
>> Thanks
>> 
>>> MAKER will by default put executables in …/maker/bin. You should put …/maker/bin into your PATH. The maker Build.PL is configured to install things in a set directory configuration to properly locate perl libraries, C shared objects, and data files.
>>> 
>>> —Carson
>>> 
>>> 
>>> 
>>>> On Jul 12, 2016, at 2:35 AM, Sebastien Moretti <sebastien.moretti at unil.ch> wrote:
>>>> 
>>>> Hi
>>>> 
>>>> I try to install maker in a custom directory following regular Perl
>>>> commands with Build.PL.
>>>> 
>>>> Unfortunately if I use
>>>>   perl Build.PL --installdirs=<my_path>
>>>> then
>>>>   ./Build install --destdir=<my_root_path>
>>>> build install fails with the error:
>>>>   Can't use an undefined value as a HASH reference at
>>>> .../Module/Build/Base.pm line 3038.
>>>> 
>>>> It does not happen if I don't use --installdirs
>>>> 
>>>> 
>>>> Is there an "official" way to install maker in a custom directory?





More information about the maker-devel mailing list