k4rthik / git-cal

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

Can't seem to install! #5

Closed arvind-naidu closed 11 years ago

arvind-naidu commented 11 years ago

I'm using Ubuntu 12.04 and tried following your installation method where I stumbled upon an error at the second command:

First command: screenshot from 2013-09-24 01 09 53

Second command: screenshot from 2013-09-24 01 10 41

Is there something wrong? Or I missed out something?

jmsalcido commented 11 years ago
git clone git@github.com:k4rthik/git-cal.git

and move ./git-cal/git-cal to $PATH :smiley:

LuRsT commented 11 years ago

So, try this, I'll explain what the commands actually do, so you can debug it yourself, it's easier, and you learn something new :+1:

So, the curl command will get you the the file over the internet, by doing > you'll send the contents of the request from curl into a new file, which in the second case, you're calling ~/bin/git-cal, and then, with the chmod 0755, you're giving it permission to run.

Now that we know this, try to locate the file:

cd ~/bin
ls

does the file appear? If it didn't, try curling it again, or wget, once you have the file, try to run it:

./git-cal

You should receive a git error once you try to run it from inside ~/bin, now try going out of that directory and executing it, if it didn't, you need to add ~/bin to your $PATH:

export $PATH+=":$HOME/bin"

try again, you should now be able to go to a git repo and use it :).

Hope this was helpful.

jmsalcido commented 11 years ago

@LuRsT gave a great answer. :+1:

arvind-naidu commented 11 years ago

Awesome. Thanks for the help guys. :+1: