Closed keichi closed 5 years ago
@keichi is the same issue, after install make sure adios2-install/lib is in DYLD_LIBRARY_PATH on Mac
It does work if I set DYLD_LIBRARY_PATH, but I've installed ADIOS under /usr/local. Why do I need to set DYLD_LIBRARY_PATH?
I am not familiar with Xcode ld on Mac, but this link might help: https://stackoverflow.com/questions/27314733/make-usr-local-lib-a-default-library-search-path-for-ld-on-mac-os-x
All the binaries under /usr/local/bin that I've installed using Homebrew run fine without changing any environment variable. I think ADIOS2 should also work out of the box.
If libadios2.dylib is in a reachable ld location it should work. Is /usr/local/lib always reachable by ld? What does otool - L bpls
tell you?
/usr/local/bin/bpls:
@rpath/libadios2.2.dylib (compatibility version 2.0.0, current version 2.2.0)
/Users/keichi/.spack/opt/spack/darwin-mojave-x86_64/clang-10.0.0-apple/openmpi-3.1.3-6owrpmticip3filnaljkrsyl3zlonwea/lib/libmpi.40.dylib (compatibility version 51.0.0, current version 51.3.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.4)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)
The linker does find the libraries under /usr/local/lib since mpic++ -std=c++11 -ladios2 foo.cpp
succeeds.
@keichi Does ./bin/adios-reorganize have the same problem?
@williamfgc Yes, it does. Same with adios_iotest.
@keichi, thanks. @chuckatkins how can we strip @rpath from the installed libraries as in #348 ?
Fixed in current master.
Installed binaries fail to find the ADIOS library. Binaries under the build directory do work. Might be related to #348?