Questions tagged [dynamic-library]

26 questions
46
votes
8 answers

Installing tmux but getting "dyld: Library not loaded Referenced from: /usr/"

I try to do brew install tmux it installs, but, probably due to previous failed and not fully removed non-brew attempts to install both it and libevent, when try to use tmux I get $ tmux dyld: Library not loaded:…
Michael Durrant
  • 16,996
  • 20
  • 48
  • 71
15
votes
1 answer

Unable to set DYLD_FALLBACK_LIBRARY_PATH in shell on OSX 10.11.1

In shell scripts used for unit testing with dynamic libraries in a directory other than the typical @rpath, I have previously been able to set DYLD_FALLBACK_LIBRARY_PATH to set the directory containing the libraries. Under 10.11.1, bash seems to…
9
votes
1 answer

El Capitan, make check, DYLD_LIBRARY_PATH

I develop applications using the usual Unix tool set: a compiler, make, and shared libraries. The procedure is then traditionally something like ./configure, which tailors the sources for the features of the machine it is run on, make, which…
akim
  • 225
  • 2
  • 8
8
votes
3 answers

Trying to force update_dyld_shared_cache but having some errors

I am trying to force the update of my dyld shared cache using the command sudo update_dyld_shared_cache -root / -force But after a while I see a bunch of errors like this, related to spindump: update_dyld_shared_cache[719] : Unable to unlink…
Duck
  • 2,271
  • 7
  • 30
  • 46
7
votes
2 answers

How to find which shared library is missing?

When I use ldd on Linux it tells me right away if something is missing, i.e. ldd -d some_lib.so libexample.so => not found libex.2.so => not found libm.so.6 => /lib/libm.so.6 (0xf5860000) libdl.so.2 => /lib/libdl.so.2 (0xf785b000) …
Maxim
  • 183
  • 1
  • 5
5
votes
2 answers

How to find which shared library is loaded by a process on OSX?

I am trying to compile and use a shared C library as a python module and I am observing that depending on the DYLD_LIBRARY_PATH my code works or it crashes with a cryptic error message. Jul 24 02:44:44 master $ DYLD_LIBRARY_PATH=/opt/local/lib …
Pushpendre
  • 173
  • 2
  • 8
3
votes
0 answers

dyld: Library not loaded, even though path is specified in Makefile

I have a Fortran program which I run on my macOS 10.12.6. The code is compiled using a Makefile, in which all the libraries included have their path included as well. For one of the libraries (and only one) my executable can't seem to be able to…
solalito
  • 183
  • 1
  • 7
2
votes
1 answer

How to debug missing libraries on macOS?

I'm trying to figure out why a binary isn't linking a shared library. On Linux the standard way to do this is LD_DEBUG=libs that shows the path of all linked libraries, but this isn't producing any output for me. I've read several articles…
Elliott
  • 2,731
  • 4
  • 28
  • 59
2
votes
0 answers

Running 32 bit apps in Catalina using Mojave libs and frameworks

I recently read this post on netkas.org about running 32 bit command line apps on Catalina using Mojave 32+64bit libraries and frameworks, adding to the nvram boot-args the option no32exec=0. I extracted with Pacifist the /usr/lib,…
gio91ber
  • 111
  • 6
2
votes
2 answers

Can "ld" add the rpaths automatically to an executable if it can find the needed dylibs at link time?

The question is in the title, but anyway, let me explain it a bit more: The most accepted way for correctly defining the install name for a dylib in MacOS is by making it relative to the rpath. For example: otool -L ./LLVM/7.0.0/lib/libomp.dylib…
cesss
  • 161
  • 2
2
votes
1 answer

Gnucash and macports conflicting libgio-2.0.0.dylib

I have macports 2.5.2 already installed. I have then installed Gnucash 3.2 dmg from gnucash.org. When I run gnucash, I have the error: objc[93365]: Class GNotificationCenterDelegate is implemented in both …
Noury
  • 29
  • 3
2
votes
2 answers

Multiple "copies" of audiobooks in iTunes

I am using iTunes on Windows 10. There are multiple "copies" (air quotes) of most (not all) audiobooks in iTunes. I used air quotes because when I search the PC for the books, there are only single instances. Another post (Why does iTunes create…
RJo
  • 481
  • 2
  • 6
  • 16
2
votes
1 answer

System Integrity Protection breaks DYLD_LIBRARY_PATH for python scripts

I have some custom modules that are generated using SWIG that are installed in a a local path eg: catkin_ws/devel/lib/python2.7/site-packages When I try to run a python script that uses one of these modules, I get an import…
1
vote
1 answer

How to see library search paths MacOS?

There are two Macs and one of them finds a certain dylib when I dlopen it and another one doesn't. Seems like the library search paths are different, but DYLD_LIBRARY_PATH and DYLD_FALLBACK_LIBRARY_PATH are empty on both machines. How can I see what…
Maxim
  • 183
  • 1
  • 5
1
vote
1 answer

Problem installing IguanaTex on Mac (can't find `.dylib` file)

I'm trying to install an experimental version of IguanaTex on my Mac. I'm stuck and need some help. Here are the directions: install AppleScript (IguanaTex.scpt) mkdir -p ~/Library/Application\ Scripts/com.microsoft.Powerpoint cp ./IguanaTex.scpt…
1
2