Drup / ocaml-lmdb

Ocaml bindings for lmdb.
https://drup.github.io/ocaml-lmdb/dev/
MIT License
48 stars 3 forks source link

FreeBSD compatibility #27

Closed slegrand45 closed 5 years ago

slegrand45 commented 5 years ago

Not sure if it's really an issue but to install the opam package on FreeBSD 12 i had to explicitly set C_INCLUDE_PATH and LIBRARY_PATH:

setenv C_INCLUDE_PATH /usr/local/include/ setenv LIBRARY_PATH /usr/local/lib/

May be there is a standard way with opam or dune to avoid this manual setting?

madroach commented 5 years ago

On OpenBSD I added

export CPATH=/usr/local/include:/usr/X11R6/include
export LIBRARY_PATH=/usr/local/lib:/usr/X11R6/lib

to /etc/profile

That's why I probably never hit such issues. If you find out how this is properly done please let me know.