shell - which command doesn't work after uninstalling fink
2014-04
I was trying to install something using homebrew.. so it complained that I had more than one package manager (either macports or fink).. so I followed fink's uninstall instructions which instructed me to basically remove everything in the /sw
directory:
sudo rm -rf /sw
right after that I tried testing if I had a certain application using the famous which
command:
which %someapp%
but then I got this horrifying error:
-bash: /sw/bin/which: No such file or directory
how on earth? so my which
command is gone now? how do i get it back? without using fink?
update:
So it turns out my which command still exists in /usr/bin/which
, so I simply added this alias to my ~/.bash_profile
:
alias which='/usr/bin/which'
but i still got two questions:
- how can fink dare try to take over such a basic shell command? should
I worry that I got some other basic commands that are no
non-functional because i uninstalled the
/sw
folder? - even though i deleted the
/sw
folder.. brew is still complaining that i got fink installed.. howcome? or how can i verify that fink has been completely uninstalled?
I know just enough about installing UNIX like software on my Mac to get into trouble and this time I messed up all my software. I use Octive, Texmax, emacs and was playing with NGSpice. The history of what I did is as follows:
I used FinkCommander to install Octive, Texmax, emacs and NGSpice. All worked OK. I updated my PowerBook G4 to OS X 10.5.8. The Mac worked OK. I used FinkCommander to update the packages. I ran Update-All. This is when the problems started.
The error message is like;
Failed to fetch http://msn.wi.us.finkmirrors.net/mirrors/fink/finkbindist/bindist/dists/fink-0.9.0/main/binary-darwin-powerpc//base/fink-obsolete-packages%5F0.1-1%5Fdarwin-powerpc.deb 404 Not Found
Is this a problem with Fink?
When I updated my OS to 10.5.8, I did not update my Xcode. I am having a hard time finding the link to Xcode 3.0 or 3.1. I understand these are the versions I need to use.
I need to know what is the fastest way to get my software working?
Try "Self update Rsync" under Source; that should update your mirrors. About Fink mirrors: Fink - F.A.Q. - Mirrors
XCode 3.1.2 is at Apple ADC Member