Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-root install doesn't work #6

Open
nobrowser opened this issue Oct 5, 2018 · 4 comments
Open

Non-root install doesn't work #6

nobrowser opened this issue Oct 5, 2018 · 4 comments

Comments

@nobrowser
Copy link

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

typescript.gz

@bgoglin
Copy link
Owner

bgoglin commented Oct 5, 2018

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.

@nobrowser
Copy link
Author

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

@bgoglin
Copy link
Owner

bgoglin commented Oct 5, 2018

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

@nobrowser
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants