Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!
Anyone use git? Actually, this may be more of a generic unix question. I installed git on my shared server using the instructions here. Namely,
cd ~/
test -d ~/src || mkdir ~/src
cd ~/src
curl -O [link]
tar -xvzf git-1.6.3.1.tar.gz
cd git-1.6.3.1
./configure --prefix=$HOME
make
make install
echo "export PATH=$PATH:$HOME/bin" >> ~/.bashrc
It all seemed to run fine -- no errors. But when type "git" on the shell command prompt, I get the response "git: command not found". This happens even if I'm in the bin folder where I can clearly see that there's an executable (755) file called "git". What am I missing?
The equivalent of that on my server is
/hsphere/local/home/wobbly/bin/git
and that DID work!
Now what?
You need to edit your .profile and add /usr/local/bin to your PATH.
Where would the .profile be? It's not in my home directory.
Create a .profile in your home directory containing the line
PATH=$PATH:/usr/local/bin
It's still not working. :(
I've got to run, but thanks for all your help so far, Tom!
What we're going to do right here is go back, back into time:
[link]
Turns out I needed to log out and log back in for the path addition in .profile to kick in.
Thanks, Tom!
In case Dana hasn't bought a netbook yet - from Lifehacker: Five Best Netbooks
Based on reader votes.