安装自制软件后,我应该_really_删除dylib吗? [英] Should I _really_ remove dylibs after installing homebrew?

查看:98
本文介绍了安装自制软件后,我应该_really_删除dylib吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了自制软件,并从安装脚本中看到一条消息,说我应该考虑删除以下邪恶"的dylib,因为它们可能会破坏构建.有人做过吗?如果是这样,您以后是否发现自己确实需要它们?

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?

以下是dylib列表:

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

推荐答案

否.如果您在/usr/local/lib中包含某些内容,则很有可能是因为您已构建并安装了它.

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

对于Brew来说,仅仅因为Brew不知道/usr/local/lib中的任何库都是邪恶的",这是一条令人烦恼的消息.

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.

可能您的较旧"版本与Brew所构建的内容冲突,但是..呵呵.当程序终止时,这将非常痛苦.而且,如果应用程序尝试卸载它,很有可能也意味着,在Brew进行构建时,它将尝试仍然链接到旧库.只要它与arch/版本兼容,就没什么大不了的.

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.

当您在Pre-Brew上构建的某些内容找不到您删除的共享库时,这也将非常痛苦.

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.

这篇关于安装自制软件后,我应该_really_删除dylib吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆