Questions tagged [install-name-tool]
61 questions
                    
                    403
                    
            votes
                
                40 answers
            
        dyld: Library not loaded ... Reason: Image not found
When trying to run an executable I've been sent in Mac OS X, I get the following error
dyld: Library not loaded: libboost_atomic.dylib
  Referenced from: /Users/"Directory my executable is in"
  Reason: image not found
Trace/BPT trap:5
I have…
         
    
    
        rwolst
        
- 12,904
- 16
- 54
- 75
                    40
                    
            votes
                
                2 answers
            
        Why is install_name_tool and otool necessary for Mach-O libraries in Mac Os X?
I am developing a Cocoa Application using the latest version of Xcode 4, I want to link dynamic libraries to my project (dylibs).
I read somewhere that adding the libraries in my project was not enough as I have to run install_name_tool and otool to…
         
    
    
        Alex
        
- 2,247
- 1
- 27
- 37
                    33
                    
            votes
                
                1 answer
            
        Using install_name_tool what's going wrong?
I'm trying to change the install path of a dylib after it has been built. I use otool -L to check what the current path is. And then I do:
$ install_name_tool -change /my/current/path/libmine.dylib \
    /my/new/path/libmine.dylib libmine.dylib
I…
         
    
    
        Thijs Koerselman
        
- 21,680
- 22
- 74
- 108
                    26
                    
            votes
                
                4 answers
            
        How can I change the filename of a shared library after building a program that depends on it?
I have a program that depends on a shared library it expects to find deep inside a directory structure. I'd like to move that shared library out and into a better place. On OS X, this can be done with install_name_tool. I'm unable to find an…
         
    
    
        ZorbaTHut
        
- 1,163
- 1
- 11
- 19
                    18
                    
            votes
                
                1 answer
            
        clang, change dependent shared library install name at link time
Related, but do not answer the question:
How do I modify the install name of a .dylib at build time
On OSX, I have a dynamic library provided by a packager manager, installed in a non
standard directory, which install_name is just the filename.…
         
    
    
        user744629
        
- 1,961
- 1
- 18
- 27
                    12
                    
            votes
                
                3 answers
            
        install_name_tool difference between -change and -id
I have been struggling with this concept for a while and I cannot really understand what the difference is between -change and -id.The man page states
 -id name
              Changes  the  shared  library identification name of a dynamic shared…
         
    
    
        MistyD
        
- 16,373
- 40
- 138
- 240
                    12
                    
            votes
                
                1 answer
            
        dylib @executable_path path issue in a plug-in bundle
I am developing a plug-in bundle, say MyPlugIn.bundle for an application, say BigApp.app. This bundle requires a dylib, say MyPlugIn.bundle/Contents/Resources/library.dylib. I have relocated paths for library.dylib, as I would have done for a simple…
         
    
    
        moala
        
- 5,094
- 9
- 45
- 66
                    9
                    
            votes
                
                2 answers
            
        How to deploy application that depends on dynamic libraries?
I am developing an application that uses the GStreamer library. In order to ease deployment I would like to collect all the GStreamer libraries in a local bundle. For this I wrote a little script that does the following:
recursively traverse…
         
    
    
        StackedCrooked
        
- 34,653
- 44
- 154
- 278
                    9
                    
            votes
                
                2 answers
            
        install_name_tool reporting malformed object
Everytime I try to use install_name_tool on my machine it reports the following 
install_name_tool: object: Abacate malformed object (unknown load command 4)
I read that it could be an error when building the binary. In order to check I create the…
         
    
    
        McLeary
        
- 1,231
- 2
- 13
- 21
                    8
                    
            votes
                
                2 answers
            
        How do I modify the install name of a .dylib at build time
I am building the google-gflags commandline flags library for C++ on Mac OS X (10.7.1). The build process is as such:
$ ./configure --prefix=output
$ make
$ make install 
I'd like to change the install name of the generated shared library at build…
         
    
    
        v8891
        
- 133
- 1
- 5
                    7
                    
            votes
                
                0 answers
            
        Remove dependent shared library from a dylib?
I know that I can use the -change option of install_name_tool to change the name of a dependent shared library stored in a dylib, but is there a way to remove a dependent shared library, which I believe is a LC_LOAD_DYLIB command, so it won't show…
         
    
    
        jfenwick
        
- 1,319
- 15
- 17
                    7
                    
            votes
                
                1 answer
            
        Error importing MySQL package for Python
I'm trying to import a MySQL module with python, more specifically Flask, though I receive an error. I'm using a virtual environment with my application. Here is the error:
    Traceback (most recent call last):
  File "../myapp/application.py",…
         
    
    
        Pav Sidhu
        
- 6,724
- 18
- 55
- 110
                    7
                    
            votes
                
                1 answer
            
        install_name_tool can't use change "because larger updated load commands do not fit"
I need to relink a file with the install_name_tool. The file in question let me change one of the dylib paths, but when I change the second (of 7), I get this error:
install_name_tool: changing install names or rpaths can't be redone for:…
         
    
    
        Automatico
        
- 12,420
- 9
- 82
- 110
                    6
                    
            votes
                
                2 answers
            
        Python tk framework
I have python code that generates the following error:
objc[36554]: Class TKApplication is implemented in both /Library/Frameworks/Tk.framework/Versions/8.5/Tk and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used.…
         
    
    
        terence vaughn
        
- 521
- 2
- 11
- 23
                    5
                    
            votes
                
                1 answer
            
        My target is dynamically linked against libraries from brew. How to bundle for distribution?
I built an audio plugin. I target .app and .component.
I dynamically link against a brew-installed library, libfluidsynth.
I copied libfluidsynth into the .app / .component.
I used install_name_tool to re-link the binary to point to the bundled…
         
    
    
        Birchlabs
        
- 7,437
- 5
- 35
- 54