ocsigenserver icon indicating copy to clipboard operation
ocsigenserver copied to clipboard

$ make run.{opt,}.local on OSX

Open rgrinberg opened this issue 10 years ago • 7 comments

$ make run.{opt,}.local fails on OXS with the following error:

CAML_LD_LIBRARY_PATH=src/server:/Users/rgrinberg/.opam/4.02.1/lib/stublibs src/server/ocsigenserver.opt -c local/etc/ocsigenserver.conf
ocsigenserver.opt: ocsigen:main: Fatal - Findlib package ocsigenserver.polytables not found: maybe you forgot <findlib path="..."/>?
make: *** [run.opt.local] Error 53

It seems that you can work around this issue by removing the following two lines from local/etc/ocsigenserver

    <findlib path="/Users/rgrinberg/reps/ocsigen/ocsigenserver/src/files/"/>
    <findlib path="/Users/rgrinberg/reps/ocsigen/ocsigenserver/src/extensions/files/"/>

rgrinberg avatar Apr 03 '15 03:04 rgrinberg

Does not work on OS X 10.10.3 with OCaml 4.02.1 and OPAM 1.2.0 Here is the log

objmagic avatar Apr 03 '15 04:04 objmagic

If you just remove the trailing / after src/files/, does it works ?

Drup avatar Apr 03 '15 20:04 Drup

The absence or presence of leading slashes does not seem to affect anything

rgrinberg avatar Apr 03 '15 21:04 rgrinberg

Tried last night. Made no difference

objmagic avatar Apr 03 '15 21:04 objmagic

So, I investigated, This two lines were probably there before the directory structure of ocsigenserver was changed, and everything was in a single directory. I don't see a single reason why this two lines would work currently.

More importantly, I don't see how to fix it except by asking the user to install ocsigenserver. :(

Drup avatar Apr 03 '15 21:04 Drup

@Drup I forgot to mention that one of the paths, namely:

<findlib path="/Users/rgrinberg/reps/ocsigen/ocsigenserver/src/extensions/files/"/>

Doesn't event exist.

Btw, how do you explain that it works on Linux?

rgrinberg avatar Apr 03 '15 21:04 rgrinberg

Yes, I noticed.

Drup avatar Apr 03 '15 21:04 Drup