llvm-ocaml-tutorial icon indicating copy to clipboard operation
llvm-ocaml-tutorial copied to clipboard

Unable to execute - cannot open libbindings.so

Open Devon7925 opened this issue 4 years ago • 2 comments

When I try to build with a simple dune command it fails.

impor@DESKTOP-MBJ4H1S:~/llvm-ocaml-tutorial$ dune exec bin/kaleidoscope.exe
bin/kaleidoscope.exe: error while loading shared libraries: libbindings.so: cannot open shared object file: No such file or directory

#1 shows other users are having the same problem.

Devon7925 avatar Apr 14 '20 01:04 Devon7925

The .so file needs to be added to the library path.

On my ubuntu, after running export LD_LIBRARY_PATH=/path/to/libbindings.so, it works.

arbipher avatar Sep 07 '21 02:09 arbipher

for #1, the project compiles and runs on OCaml 4.12.0. (though it looks not updating now)

arbipher avatar Sep 07 '21 02:09 arbipher