Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Fink's tab completion works.

However, I run

fink update-all

and I get

zsh: command not found: fink

How can you get Fink to work in Mac?

share|improve this question
1  
can you issue the command " man fink " or " fink --version " –  RateControl May 26 '09 at 20:19
    
I can the first one, but not the latter one. –  Masi May 26 '09 at 20:57
add comment

3 Answers

up vote 3 down vote accepted

First, check to make sure fink is in your path by typing

which fink

If you receive no output, then try running this command and trying fink again

. /sw/bin/init.sh

If that works, then add this section to your .zprofile

[[ -e /sw/bin/init.sh ]] && . /sw/bin/init.sh
share|improve this answer
    
I put the last code to my .zprofile. It did not load up. This suggests me that something has to be done for the .zprofile. –  Masi May 26 '09 at 20:44
    
The last code segment would only get run whenever you open up a new shell. Try running ". /sw/bin/init.sh" directly and testing your fink update. –  Scott Pack May 26 '09 at 21:07
add comment
  1. Is /sw/bin in your PATH? (Also check if it is added in your $(zsh-equivalent-of .profile))

  2. I don't know zsh, but you might check if it requires paths to be rehashed after adding a new element to PATH.

share|improve this answer
    
I added: export PATH=$PATH:/sw/bin/: to my .zprofile. How can you rehash your PATH? –  Masi May 26 '09 at 20:41
1  
man zsh and searching for "hash" suggests that this is not needed under zsh... In bash you just use "hash" –  dmckee May 27 '09 at 1:07
add comment

Refer to the FAQ for fink, perhaps specifically [cant-upgrade]

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.