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

git-cal failed on locating JSON/PP.pm - OS X 10.8.5 #29

Open
ngocphamm opened this issue Sep 29, 2013 · 6 comments
Open

git-cal failed on locating JSON/PP.pm - OS X 10.8.5 #29

ngocphamm opened this issue Sep 29, 2013 · 6 comments

Comments

@ngocphamm
Copy link

After updating the binary of git-cal to latest commit, it no loger work.

Can't locate JSON/PP.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at /usr/local/bin/git-cal line 11.
BEGIN failed--compilation aborted at /usr/local/bin/git-cal line 11.

I'm not a Perl programmer so don't know where to go then. Please help. Thank you!

@k4rthik
Copy link
Owner

k4rthik commented Sep 29, 2013

It now has a dependency on json parser, so updating the binary will no longer work. Please install it via Makefile according to the instructions, it should download the dependencies by itself.

@fjukstad
Copy link

Hi,

Tried installing via Makefile, but it writes out

$ perl Makefile.PL PREFIX=~/.local
Warning: prerequisite JSON::PP 0 not found.
Writing Makefile for git-cal

when it compiles. And it complains

$ git-cal
Can't locate JSON/PP.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4/darwin-thread-multi-2level /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at /usr/local/bin/git-cal line 14.
BEGIN failed--compilation aborted at /usr/local/bin/git-cal line 14.

when I try to run it.

Cheers,
Bjørn

@k4rthik
Copy link
Owner

k4rthik commented Sep 30, 2013

Please try

curl -L http://cpanmin.us | perl - --sudo App::cpanminus
cpanm install JSON::PP
followed by perl Makefile.PL etc
( i am sure there must be an easier way to do this )

If that doesn't work, pull the latest code, I created a branch where i removed all dependencies on external libraries.

git checkout -b no-deps origin/no-deps
then install normally with perl Makefile.PL ..

@ngocphamm
Copy link
Author

Will the binary standalone works again? I guess line 11 still call the JSON library.

@k4rthik
Copy link
Owner

k4rthik commented Oct 1, 2013

Oops, fixed now. Standalone should work now (the one in no-deps branch)

@ngocphamm
Copy link
Author

Thanks for that! 👍

k4rthik pushed a commit that referenced this issue Nov 20, 2013
…github)

to get around with #29 in the worst case
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