"Could not load TF backend from /Users/kimnguyen/redis/redis-5.0.5/backends/redisai_tensorflow/redisai_tensorflow.so: dlopen(/Users/kimnguyen/redis/redis-5.0.5/backends/redisai_tensorflow/redisai_tensorflow.so, 6): Library not loaded: @rpath/libtensorflow.so
Hello Kim,
I’m assuming you built RedisAI from source from the current master, is that correct?
It looks like rpath hasn’t been set during the build. Please make sure you ran “make install” at the end of the build, and that the redisai.so and the backend files you’re loading are those in the “install-cpu” directory (it was named “install” a couple of PRs ago, in case your repo is not up to date).
The “make install” phase is the one in which CMake sets the rpath, so it’s important that it is executed.
In case this doesn’t work, please also send the output of
Hello Kim,
this is odd, I just tested get_deps.sh on my macos and it works for me. Can you post the exact link that the get_deps.sh script tries to download?
I’m also surprised by the error message. Can you also post CMakeCache.txt inside your build directory?
Hello Kim,
this is odd, I just tested get_deps.sh on my macos and it works for me. Can you post the exact link that the get_deps.sh script tries to download?
I’m also surprised by the error message. Can you also post CMakeCache.txt inside your build directory?
Thanks
Luca
I also forget to mention that the link to microsoft onnxruntime in get_deps.sh did not work. I downloaded it manually, by the way.
Hi Luca,
I am rebuilding it again from scratch today using the following instructions:
Once the dependencies are downloaded, build the module itself. Note that CMake 3.0 or higher is required.
mkdir build
cd build
cmake ..
make && make install
cd ..
At the moment, I am running into this error at the “make && make install” step:
make: *** No rule to make target `48476’. Stop.
Current file structure is in attached image.
Any advice is appreciated!
Kim
Hello Kim,
I’m assuming you built RedisAI from source from the current master, is that correct?
It looks like rpath hasn’t been set during the build. Please make sure you ran “make install” at the end of the build, and that the redisai.so and the backend files you’re loading are those in the “install-cpu” directory (it was named “install” a couple of PRs ago, in case your repo is not up to date).
The “make install” phase is the one in which CMake sets the rpath, so it’s important that it is executed.
In case this doesn’t work, please also send the output of
"Could not load TF backend from /Users/kimnguyen/redis/redis-5.0.5/backends/redisai_tensorflow/redisai_tensorflow.so: dlopen(/Users/kimnguyen/redis/redis-5.0.5/backends/redisai_tensorflow/redisai_tensorflow.so, 6): Library not loaded: @rpath/libtensorflow.so