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

Unable to install perl #10

Closed
cybersiddhu opened this issue Feb 7, 2013 · 15 comments
Closed

Unable to install perl #10

cybersiddhu opened this issue Feb 7, 2013 · 15 comments

Comments

@cybersiddhu
Copy link

I am on Mac OSX 10.5.8 and installed plenv using brew. However, the install is throwing error for any version of perl i try to install. Below is the one for perl-5.10.1

Install 5.10.1 to /Users/sid/.plenv/versions/5.10.1
Fetching 5.10.1 as /var/folders/az/azc7iGwYH0SthirIT36L8++++TI/-Tmp-/Lod61oKN53/perl-5.10.1.tar.bz2
rm -f config.sh Policy.sh
/usr/bin/perl -Mlib=/usr/local/Cellar/plenv/1.1.0/bin/../share/plenv//lib/perl5/ /usr/local/Cellar/plenv/1.1.0/bin/../share/plenv/bin/patchperl
Can't locate IPC/Cmd.pm in @INC (@INC contains: /usr/local/Cellar/plenv/1.1.0/bin/../share/plenv//lib/perl5/ /Library/Perl/Updates/5.8.8/darwin-thread-multi-2level 
/Library/Perl/Updates/5.8.8 /System/Library/Perl/5.8.8/darwin-thread-multi-2level 
/System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level 
/Network/Library/Perl/5.8.8 /Network/Library/Perl
 /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level 
/System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1 .) at 
/usr/local/Cellar/plenv/1.1.0/bin/../share/plenv//lib/perl5//Devel/PatchPerl.pm line 13.

Any idea why it's happening and how to fix it ?

@tokuhirom
Copy link
Owner

Ah, this issue is caused by older perls(Perl 5.9.5+ has IPC::Cmd as core library).
I bundled latest IPC::Cmd to fix this issue. And I'll send a pull-req to homebrew.

For now, please try brew install --head plenv.

@cybersiddhu
Copy link
Author

Now it needs HTTP::Tiny
Can't locate HTTP/Tiny.pm in @inc (@inc contains: /usr/local/Cellar/plenv/HEAD/bin/../share/plenv/lib/perl5 /Library/Perl/Updates/5.8.8/darwin-thread-multi-2level /Library/Perl/Updates/5.8.8 /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1 .) at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv/lib/perl5/Perl/Build.pm line 14.

@tokuhirom
Copy link
Owner

Okay, the issue was fixed too. Sorry I forgot to add HTTP::Tiny to share/plenv, since it's in core 5.14.

@tokuhirom
Copy link
Owner

please try brew install --head plenv

@cybersiddhu
Copy link
Author

Now its Params::Check
Can't locate Params/Check.pm in @inc (@inc contains: /usr/local/Cellar/plenv/HEAD/bin/../share/plenv//lib/perl5/ /Library/Perl/Updates/5.8.8/darwin-thread-multi-2level /Library/Perl/Updates/5.8.8 /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1 .) at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv//lib/perl5//IPC/Cmd.pm line 48.
BEGIN failed--compilation aborted at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv//lib/perl5//IPC/Cmd.pm line 48.

@tokuhirom
Copy link
Owner

Hi. I added test case to find missing modules under the perl 5.8.
I guess, current HEAD may work!

@tokuhirom tokuhirom reopened this Feb 9, 2013
@tokuhirom
Copy link
Owner

The issue was fixed in 1.4.2

@cybersiddhu
Copy link
Author

Not yet, still need version 0.870

plenv install perl-5.10.1                                                                                                                            rvm:ruby-1.9.2-p0 
Creating /var/folders/az/azc7iGwYH0SthirIT36L8++++TI/-Tmp-/perl-build-20130213-0946493017(building directory)
Install 5.10.1 to /Users/sid/.plenv/versions/5.10.1
Fetching 5.10.1 as /var/folders/az/azc7iGwYH0SthirIT36L8++++TI/-Tmp-/JAkuIeRwtR/perl-5.10.1.tar.bz2
Downloaded http://search.cpan.org/CPAN/authors/id/D/DA/DAPM/perl-5.10.1.tar.bz2 to /var/folders/az/azc7iGwYH0SthirIT36L8++++TI/-Tmp-/JAkuIeRwtR/perl-5.10.1.tar.bz2.
rm -f config.sh Policy.sh
/usr/bin/perl -Mlib=/usr/local/Cellar/plenv/HEAD/bin/../share/plenv//lib/perl5/ /usr/local/Cellar/plenv/HEAD/bin/../share/plenv/bin/patchperl
version version 0.870 (v0.870.0) required--this is only version 0.700 (v0.700.0) at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv//lib/perl5//Module/Metadata.pm line 20.
BEGIN failed--compilation aborted at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv//lib/perl5//Module/Metadata.pm line 20.
Compilation failed in require at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv//lib/perl5//Module/Load/Conditional.pm line 14.
BEGIN failed--compilation aborted at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv//lib/perl5//Module/Load/Conditional.pm line 14.
Compilation failed in require at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv//lib/perl5//IPC/Cmd.pm line 50.
BEGIN failed--compilation aborted at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv//lib/perl5//IPC/Cmd.pm line 50.
Compilation failed in require at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv//lib/perl5//Devel/PatchPerl.pm line 13.
BEGIN failed--compilation aborted at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv//lib/perl5//Devel/PatchPerl.pm line 13.
Compilation failed in require at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv/bin/patchperl line 12.
BEGIN failed--compilation aborted at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv/bin/patchperl line 12.
Installation failure: /usr/bin/perl -Mlib=/usr/local/Cellar/plenv/HEAD/bin/../share/plenv//lib/perl5/ /usr/local/Cellar/plenv/HEAD/bin/../share/plenv/bin/patchperl at /usr/local/Cellar/plenv/HEAD/bin/../share/plenv/lib/perl5/Perl/Build.pm line 208.

One question though, Why it need perl to install perl ?

@miyagawa
Copy link
Collaborator

Some unmaintained perls (including 5.10 you're trying to install) need patches to build on a modern build environment, and you need patchperl command to do it. It's silly that patchperl requires that many dependencies, I completely agree.

I'll ask the author of patchperl if it's possible to drop some of the deps that brings these chain of deps, and then build a fatpack executable (like cpanm) that doesn't require separate libraries to run.

@cybersiddhu
Copy link
Author

On Wed, 13 Feb 2013, Tatsuhiko Miyagawa wrote:

Some unmaintained perls (including 5.10 you're trying to install) need
patches to build on a modern build environment, and you need patchperl
command to do it. It's silly that patchperl requires that many
dependencies, I completely agree.

I'll ask the author of patchperl if it's possible to drop some of the deps
that brings these chain of deps, and then build a fatpack executable (like
cpanm) that doesn't require separate libraries to run.
That would be great, however i truly believe its also time to ditch
these old perls and move on. I would rather try plenv on a newer perls.
Really appreciate your help.

Reply to this email directly or view it on GitHub.

@miyagawa
Copy link
Collaborator

That would be great, however i truly believe its also time to ditch
these old perls and move on. I would rather try plenv on a newer perls.

Yes, but the point is that plenv is (also) a tool to start building a new perl on old perl exactly like yours.

You're basically having the bootstrap problem since if you have perl 5.10 to begin with none of these issues should come up with it. Even the 5.10 is not maintained anymore by the perl 5 porters, since they switched to the yearly major release.

I'm sure tokuhirom will add other required deps until you can bootstrap with 5.8 in the meantime, but if you can upgrade your OS to 10.6 it should be much easier since Snow Leopard has perl 5.10 in /usr/bin.

@tokuhirom
Copy link
Owner

Issue was fixed by #11.

@cybersiddhu
Copy link
Author

Thanks a lot.

On Thu, 21 Feb 2013, Tokuhiro Matsuno wrote:

Issue was fixed by #11.

Reply to this email directly or view it on GitHub.

@miyagawa
Copy link
Collaborator

PatchPerl 0.84 stripped all of IPC::Cmd and its sub deps.
https://metacpan.org/source/BINGOS/Devel-PatchPerl-0.84/Changes

@tokuhirom
Copy link
Owner

Released jew version to deoend it.
2013/03/10 9:26 "Tatsuhiko Miyagawa" notifications@github.com:

PatchPerl 0.84 stripped all of IPC::Cmd and its sub deps.
https://metacpan.org/source/BINGOS/Devel-PatchPerl-0.84/Changes


Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-14673649
.

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

3 participants