llgal icon indicating copy to clipboard operation
llgal copied to clipboard

Non-root install doesn't work

Open nobrowser opened this issue 6 years ago • 4 comments

Attached typescript of failed session on Fedora 28 (Perl 5.26.2).

typescript.gz

nobrowser avatar Oct 05 '18 01:10 nobrowser

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.

bgoglin avatar Oct 05 '18 07:10 bgoglin

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 :-(

nobrowser avatar Oct 05 '18 17:10 nobrowser

I don't remember well why, but I used to just adjust PERL_INC in my environment.

bgoglin avatar Oct 05 '18 17:10 bgoglin

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?

nobrowser avatar Oct 05 '18 18:10 nobrowser