llgal
llgal copied to clipboard
Non-root install doesn't work
Looks like some defaults have change in MakeMakers. In the main Makefile, try changing this
- cd $(LIB_SUBDIR) && perl Makefile.PL INSTALLDIRS=$(PERL_INSTALLDIRS)
+ cd $(LIB_SUBDIR) && perl Makefile.PL INSTALLDIRS=$(PERL_INSTALLDIRS) INSTALL_BASE=$(PREFIX)
This makes "make install PREFIX=blabla" work here.
Almost, but when I actually run llgal afterwards I get:
Could not locate Llgal/Config.pm in @INC
I need to push /usr/local/packages/llgal/lib/perl5
onto @INC
in llgal.in
, but how to do it in a generic way? I tried "@LIBDIR@"
and "@INSTALLSITELIB@"
but neither of these gets replaced by make install :-(
I don't remember well why, but I used to just adjust PERL_INC in my environment.
Can MakeMaker do autoconf-style text replacement in the files it installs? Maybe the installation of the llgal script should also go through MakeMaker and not with a hand crafted Makefile?