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

Failed to install via cpanm #41

Closed
tantalate opened this issue Jun 8, 2015 · 14 comments
Closed

Failed to install via cpanm #41

tantalate opened this issue Jun 8, 2015 · 14 comments

Comments

@tantalate
Copy link

I just tried to install Inline::C with cpanm (Perl 5.20.2) but failed.

Here is the error:

    323 #
324 # chmod 755 blib/arch/auto/Math/Simple/Simple.bundle
325 # /Users/leetom/perl5/perlbrew/perls/perl-5.20.2/bin/perl -MExtUtils::Command::MM -e 'cp_nonempty' -- Simple.bs blib/arch/auto/Math/Simple/Simple.bs 644
326 #   Finished "make" Stage
327 #
328 #   Starting "make install" Stage
329 # Running Mkbootstrap for Math::Simple ()
330 # chmod 644 Simple.bs
331 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
332 # ERROR: Can't create '/'
333 # Do not have write permissions on '/'
334 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
335 #  at -e line 1.
336 # make[2]: *** [pure_site_install] Error 13
337 #
338 # A problem was encountered while attempting to compile and install your Inline
@mohawk2
Copy link
Collaborator

mohawk2 commented Jun 8, 2015

Could you get the Makefile it generates for the above test, and gist it to here?

@wbraswell
Copy link
Contributor

@mohawk2

build.log
http://pastebin.com/D4SUCanJ

Makefile.PL
http://pastebin.com/e30kJNcu

Makefile
http://pastebin.com/0QyPHXnc

Please let me know what else I can do to help fix this ASAP, it is totally broken for me, thanks!

@daoswald
Copy link
Collaborator

This could be related to HARNESS_OPTIONS=jn (where n is a number). Inline::C has never been compatible with parallel testing in the test harness. When I unset HARNESS_OPTIONS I get a clean install on ubuntu 15.04 with Perl 5.22.

If that's not the issue, then I won't be able to get further with it until Zilla::Dist starts installing cleanly again.

@wbraswell
Copy link
Contributor

I do not have HARNESS_OPTIONS set as an environmental variable, and it does not appear in my code anywhere, and I have never used it myself in the past. So in my case, I do not believe HARNESS_OPTIONS is the culprit... Unless it is getting called by some other dependency of Inline::C somehow without my knowledge?

@mohawk2
Copy link
Collaborator

mohawk2 commented Jun 13, 2015

@daoswald Some work did take place to make Inline::C test in parallel and I think at the time it worked. A test of the current (0.75) fails for me with HARNESS_OPTIONS=j4 but succeeds with it unset, so now it does not.

@wbraswell are you the same person as @leetom ? I wasn't asking for the Makefile* for Inline::C, but the ones generated for the individual test that is failing. Please provide those.

@tantalate
Copy link
Author

@mohawk2
Sorry for the late reply.

https://gist.github.com/leetom/664bec009d459814b320

Here is the Makefile, and the environment is MacOS 10.10.3, Perl 5.20.2 (installed with perlbrew, default options).

Thank you!

@wbraswell
Copy link
Contributor

@mohawk2
No I am not leetom.

My system is Ubuntu v14.04 w/ Perl v5.18.2

~/.cpanm/work/1434149286.7204/Inline-C-0.75/example/modules/Math-Simple-1.23/Makefile.PL
http://pastebin.com/GFb2njZD

~/.cpanm/work/1434149286.7204/Inline-C-0.75/example/modules/Boo-2.01/Makefile.PL
http://pastebin.com/n6ViQU0B

Are those the Makefiles you wanted?

@wbraswell
Copy link
Contributor

Any progress here?

@mohawk2
Copy link
Collaborator

mohawk2 commented Jun 21, 2015

@wbraswell You do know you're allowed to look at and submit fixes for this yourself, right?

@mohawk2
Copy link
Collaborator

mohawk2 commented Jun 21, 2015

@leetom Evidently I was unclear, sorry about that. I don't need the Makefile for Inline::C, which you have supplied. I need the Makefile the relevant test generated as part of its build.

By the way, I note you have EUMM 6.98. Inline::C now requires 7.0+ to test successfully. I see Inline::C's metadata says it needs that to run, but not to test, which is an omission. Could you upgrade your EUMM to latest and see if this still occurs?

@wbraswell
Copy link
Contributor

@mohawk2
I've asked you two questions, can you please answer at least the first one?

@tantalate
Copy link
Author

@mohawk2 Problem solved after I update MakeMaker to 7.04. Thank you very much!

@wbraswell
Copy link
Contributor

I can confirm this issue is solved by upgrading from ExtUtils::MakeMaker v6.66 to v7.04, this was a little tricky for me because cpanm and local::lib correctly installed v7.04 in ~/perl5 but the old v6.66 was still installed system-wide, so I had to delete ~/perl5 and use cpan (not cpanm) to install v7.04 system-wide.

I believe this issue can be closed.

@mohawk2
Copy link
Collaborator

mohawk2 commented Jun 22, 2015

@leetom You're welcome!

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

4 participants