Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I _really_ remove dylibs after installing homebrew?

Tags:

I just installed homebrew and saw a message from the install script that said I should consider removing the following "evil" dylibs as they might break builds. Has anyone done this? And if so, did you later find out that you actually needed them?

Here's the dylib list:

/usr/local/lib/CHBrowserView.dylib
/usr/local/lib/libgnsdk_musicid_file.dylib
/usr/local/lib/libgnsdk_sdkmanager.dylib
/usr/local/lib/libjson.0.0.1.dylib
/usr/local/lib/libmusicid_osx.dylib
/usr/local/lib/libpcre.0.0.1.dylib
/usr/local/lib/libpcrecpp.0.0.0.dylib
/usr/local/lib/libpcreposix.0.0.0.dylib
like image 484
ssdc Avatar asked Sep 24 '11 12:09

ssdc


People also ask

How long should homebrew take to install?

On a 1 Mbps Internet connection, installing Homebrew would, in theory, take about ~1 hour.

Is Homebrew good for Mac?

If you're looking to improve your productivity and do more with a Mac, command-line package management is the right direction. Homebrew is one of the best free package managers that is relatively easy to use if you have some experience with Terminal.


1 Answers

NO. If you have something in /usr/local/lib, in all likelihood its because you built it and installed it.

It's an annoying and egotistical error message for Brew to assume that any libraries in /usr/local/lib are 'evil' simply because Brew doesn't know about them.

It is possible that you might have an 'older' version that conflicts with something Brew builds, but.. guh. It'll be painfully obvious when the program dies. And more likely than not if the application tries to dyload it, it also means that when Brew is building things it'll try to link against the old lib anyway. As long as it's arch / version compatible it's no biggie.

It'll also be painfully obvious when something you built pre-Brew can't find the shared library you removed. And given that you may not have the source laying around (or remember how you configured it in the first place..)

I strongly suggest keeping the old libraries around.

like image 99
synthesizerpatel Avatar answered Nov 09 '22 06:11

synthesizerpatel