14

When I enter the command brew doctor I get the error below. This this something to worry about?

Im very new to command line stuff. Im using homebrew to install Drush (for Drupal).

Last login: Wed Oct  9 14:59:40 on ttys001
unknown:~ MY-USERNAME$ brew doctor
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libTrAPI.dylib 
3

These files, in your case only one, is an residual files from older installations. Nothing to worry about.

You can easily remove it with:

rm /usr/local/lib/libTrAPI.dylib
  • 5
    this is a horrible answer, consider Brian Carlsons answer. – scravy Dec 29 '14 at 11:44
  • You could try to move the file elsewhere and wait to see if something breaks. mv /usr/local/lib/libTrAPI.dyli ~/Desktop/ – ayman Sep 29 '17 at 17:01
  • To elaborate on @scravy , the reason this is a horrible answer is that by deleting them, you may break something. Unfortunately, not everything you have on your machine has been installed by Homebrew nor can everything be installed via Homebrew. brew doctor itself states, effectively, that you should try to clean up what you can, and ignore warnings that you cannot easily fix. This is because Homebrew knows they cannot be responsible for everything on your machine. – Mike Williamson Dec 19 '18 at 19:16
17

libTrAPI.dylib is for your VPN software. If you want to continue to use your VPN, don't delete it, just add it to the whitelist in doctor.rb and then homebrew won't complain about it.

To find your doctor.rb simply run

locate doctor.rb

Look for white_list, mine was on line 105. It should probably look like this.

white_list = {
  "libfuse.2.dylib" => "MacFuse",
  "libfuse_ino64.2.dylib" => "MacFuse",
  "/usr/local/lib/libTrAPI.dylib" => "TrAPI"
}
  • 1
    A few lines stating how to add a file to the whitelist would make this a much better answer. – MaQleod May 7 '14 at 15:08
  • My locate wasn't updated on my mac 10.9. I found mine was here; /usr/local//Library/Homebrew/cmd/doctor.rb . – AnneTheAgile Aug 7 '14 at 2:59
  • It then warns about the edited file; "Warning: You have uncommitted modifications to Homebrew If this a surprise to you, then you should stash these .... cd /usr/local/Library && git stash && git clean -d -f" – AnneTheAgile Aug 7 '14 at 3:05
  • Be careful to look for white_list. If you accidentally omit the underscore and search for whitelist instead, you'll find something completely different. – Rob Kennedy Oct 17 '14 at 21:46
  • 2
    @Anne, the commands brew doctor suggest will undo your change. If it's a change you want to keep, though, then you can commit it instead: git add /usr/local/Library/Homebrew/cmd/doctor.rb, then git commit -m 'Tell brew doctor to ignore libTrAPI.dylib'. – Rob Kennedy Oct 17 '14 at 22:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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