k4rthik / git-cal

github like contributions calendar on terminal
MIT License
1.12k stars 61 forks source link

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

Open ngocphamm opened 11 years ago

ngocphamm commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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

k4rthik commented 11 years ago

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

ngocphamm commented 11 years ago

Thanks for that! :+1: