OCaml Compile Error: /usr/bin/ld: cannot find -lstr
The instructions given here allow me to compile with no error. It boils down to:
locate libcamlstr
which tells me that libcamlstr can be found in /usr/lib/ocaml
(YMMV), so I do:
cd /usr/lib/ocaml
sudo ln -s libcamlstr.a libstr.a
Then I'm able to compile the project:
cd /usr/local/src/cil
make clean && ./configure && make
See the last comment in this bug in the OCaml bug tracker:
Bug 5247
You could just change the makefile from
-lstr
to
-lcamlstr