Warning: Unbrewed dylibs were found in /usr/local/lib

14

3

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 

Evanss

Posted 2013-10-09T15:19:20.483

Reputation: 1 008

Answers

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

Christian

Posted 2013-10-09T15:19:20.483

Reputation: 6 571

6this is a horrible answer, consider Brian Carlsons answer. – scravy – 2014-12-29T11:44:39.323

You could try to move the file elsewhere and wait to see if something breaks. mv /usr/local/lib/libTrAPI.dyli ~/Desktop/ – ayman – 2017-09-29T17:01:21.347

1To 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 – 2018-12-19T19:16:24.740

18

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"
}

Brian Carlson

Posted 2013-10-09T15:19:20.483

Reputation: 181

My locate wasn't updated on my mac 10.9. I found mine was here; /usr/local//Library/Homebrew/cmd/doctor.rb . – AnneTheAgile – 2014-08-07T02:59:43.430

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 – 2014-08-07T03:05:04.367

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 – 2014-10-17T21:46:22.233

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 – 2014-10-17T22:00:06.633

@Rob thank you! I had read about committing previously but was confused because I didn't see the repo. I should have just done a git status, indeed there it is. I found the /.git/ folder two levels up, at /usr/local/.git, which really surprised me since I thought other apps could use this folder? – AnneTheAgile – 2014-10-18T00:41:25.363

As of 2016, the whitelist now resides in /usr/local/Homebrew/Library/Homebrew/diagnostic.rb. – Rob Kennedy – 2018-06-25T16:12:44.910

1A few lines stating how to add a file to the whitelist would make this a much better answer. – MaQleod – 2014-05-07T15:08:22.760