Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.
$ brew link binutils

Linking /usr/local/Cellar/binutils/2.24... Warning: Could not link binutils. Unlinking...

Error: Could not symlink file: /usr/local/Cellar/binutils/2.24/share/info/configure.info
Target /usr/local/share/info/configure.info already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
  brew link --overwrite formula_name

As I see I can not link binutils because there is configure.info file in my filesystem. I am just wondering if there is any way to know which of installed home-brew formulas had installed this file ?

share|improve this question
    
Could you provide us the content of configure.info file ? –  Thomas Mar 21 at 10:15
    
I know that it is a gdb's file (configure.info -> ../../Cellar/gdb/7.7/share/info/configure.info). But I am searching general way of solving this problems. –  demas Mar 21 at 10:26
add comment

1 Answer 1

up vote 1 down vote accepted

If the file was installed by Homebrew, it is a symlink to a file in /usr/local/Cellar/:

$ ls -l /usr/local/share/info/bash.info
lrwxr-xr-x  1 admin  wheel  45 Mar 15 15:25 /usr/local/share/info/bash.info -> ../../Cellar/bash/4.2.45/share/info/bash.info

It's also possible that the file was not installed by Homebrew. /usr/local/ is often the default installation target in makefiles, and it is also used by installers and by other package managers like pip.

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.