mmottl / gsl-ocaml

OCaml bindings to the GSL (GNU Scientific Library).
Other
36 stars 10 forks source link

installing gsl-ocaml to a specific prefix #1

Closed boegel closed 10 years ago

boegel commented 10 years ago

I'm trying to install gsl-ocaml to a specific prefix, but whatever I do, make install is copying the files to my OCaml site-lib directory, rather than the installation prefix I passed to configure. I've tried passing both --prefix and --destdir (not sure if they're different) to configure, neither (nor both) works.

Am I doing something wrong?

boegel commented 10 years ago

It seems like setting $OCAMLFIND_DESTDIR does the trick, is that the right way to specify the installation prefix?

mmottl commented 10 years ago

Yes, OCAMLFIND_DESTDIR should do the right thing. See "man findlib.conf" for configuring the environment for "ocamlfind".

boegel commented 10 years ago

@mmottl: so, what are the --prefix and --destdir configure options about then, it not to control the install prefix?

mmottl commented 10 years ago

These flags are generated by Oasis, likely for the rare project that does not use ocamlfind for installation.

boegel commented 10 years ago

Shouldn't you be setting OCAMLFIND_DESTDIR based on what is passed to them?

mmottl commented 10 years ago

gsl-ocaml doesn't install any executables so the library installation will only depend on your OCAMLFIND_DESTDIR setting. If a package were installing executables, "make install" would consider the prefix you set.