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

perl not compiling #532

Closed
pplu opened this issue Jun 15, 2016 · 10 comments
Closed

perl not compiling #532

pplu opened this issue Jun 15, 2016 · 10 comments

Comments

@pplu
Copy link

pplu commented Jun 15, 2016

Hi,

I'm trying to compile perl on

wget http://www.cpan.org/src/5.0/perl-5.24.0.tar.gz
tar xvzf perl-5.24.0.tar.gz
cd perl-5.24.0/
./Configure -d
make

It fails at a step where it tries to load Pod::Simple::SimpleTree, but it seems to not be in miniperls' INC PATH. It would seem that some early stage in the build process fails due to someting in WSL not working as expected.

@lateau
Copy link

lateau commented Jun 16, 2016

PERL5LIB=/path/to/perl-5.24.0/cpan/Pod-Simple/lib make

@pplu
Copy link
Author

pplu commented Jun 20, 2016

The strange thing is that it isn't picking it up automatically (on Linux it does).

This makes utilities like plenv and perlbrew not work correctly (they don't set the PERL5LIB, and they use a temporary directory for compiling perl).

Maybe @xsawyerx can help out or point to someone that can help find out what's going on

@benhillis
Copy link
Member

@pplu It depends where the environment variable is defined. Could you check in your ~/.profile file for "PERL5LIB"?

If it's present in profile you'll have to launch bash.exe as a login shell to get it to load automatically:

bash.exe --login

@xsawyerx
Copy link

I might be misunderstanding this problem, but you shouldn't have to set the PERL5LIB environment variable in order to compile perl.

For any perl + Windows debugging, I would personally refer to @bulk88. He's the expert.

@pplu
Copy link
Author

pplu commented Jul 22, 2016

@benhillis I coincide with SawyerX. It looks like somewhere in the compilation chain, that PERL5LIB env variable gets lost. It doesn't on Linux.

@bulk88: I found specially helpful this GitHub bug mojolicious/mojo#954 and where it links to, to get the the subsystem installed and working, and some Perl issues corrected

@erossetto
Copy link

Anyone figured out how to get perl compilation working?

@pplu
Copy link
Author

pplu commented Sep 18, 2016

@erossetto: I've got perl to compile manually (no plenv) from a source tarball by setting the PERL5LIB as @lateau suggests. It's an ugly workaround, but it works 😄

@mbeijen
Copy link

mbeijen commented Sep 27, 2016

The problem is that File::Find can't search recursively on the FUSE filesystem that is used by BashOnWindows. See also #186.

This will make the compilation work:

echo "dont_use_nlink='define'" >> Policy.sh
./Configure -des
make
make install

@stehufntdev
Copy link
Collaborator

#186 is marked as fixed and closed, so doing the same here. Please reopen if you are still hitting issues and we can investigate.

@pplu
Copy link
Author

pplu commented Jan 10, 2017

@stehufntdev I've been able to compile Perl 5.24.0 😄

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

No branches or pull requests

8 participants