The problem is the linker is looking for libmagic.so
but you only have libmagic.so.1
A quick hack is to symlink libmagic.so.1
to libmagic.so
More Related Contents:
- undefined reference to symbol even when nm indicates that this symbol is present in the shared library
- How can I link to a specific glibc version?
- How to print the ld(linker) search path
- “/usr/bin/ld: cannot find -lz”
- Compilation fails with “relocation R_X86_64_32 against `.rodata.str1.8′ can not be used when making a shared object”
- How to specify the library version to use at link time?
- What is the ‘soname’ option for building shared libraries for?
- Hierarchical ldd(1)
- How do you link to a specific version of a shared library in GCC
- How to include all objects of an archive in a shared object?
- Is there a way to get gcc to output raw binary?
- How can I change the filename of a shared library after building a program that depends on it?
- How to set RPATH and RUNPATH with GCC/LD?
- How do the likely/unlikely macros in the Linux kernel work and what is their benefit?
- C/C++ with GCC: Statically add resource files to executable/library
- How to add a default include path for GCC in Linux?
- Static link of shared library function in gcc
- make -j 8 g++: internal compiler error: Killed (program cc1plus)
- `bash: ./a.out: No such file or directory` on running executable produced by `ld`
- How do I find out what all symbols are exported from a shared object?
- Linking against older symbol version in a .so file
- How to set the runtime path (-rpath) of an executable with gcc under Mac OSX?
- Why do I have to define LD_LIBRARY_PATH with an export every time I run my application?
- Force gcc to compile 32 bit programs on 64 bit platform
- Pack shared libraries into the elf [closed]
- How do applications resolve to different versions of shared libraries at run time?
- Linux capabilities (setcap) seems to disable LD_LIBRARY_PATH
- library path when dynamically loaded?
- How do I recover a semaphore when the process that decremented it to zero crashes?
- Disable AVX-optimized functions in glibc (LD_HWCAP_MASK, /etc/ld.so.nohwcap) for valgrind & gdb record