Locating dylib files #1592
-
Is there a recommended way to locate It seems like most are in
However OpenSSL doesn't seem to be present there:
We need to run |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If it's not keg-only (i.e. most formulae), then you can usually find them in You really want to avoid paths that contain That said, it's a little strange to need |
Beta Was this translation helpful? Give feedback.
If it's not keg-only (i.e. most formulae), then you can usually find them in
${HOMEBREW_PREFIX}/lib
. If it is keg-only (e.g. OpenSSL), then you can (usually) find them at${HOMEBREW_PREFIX}/opt/${formula_name}/lib
(e.g./opt/homebrew/opt/[email protected]/lib
).You really want to avoid paths that contain
Cellar
-- these will change with version/revision bumps. This will break your dylib links even when the updated libraries are API/ABI-compatible. This is also why the install names of these libraries will not contain a reference to theCellar
.That said, it's a little strange to need
MachO::Tools.change_install_name
. That's usually a sign that something's broken in the build system.