ocsigen / ocsigenserver

Web server in OCaml.
http://ocsigen.org/ocsigenserver/
Other
100 stars 30 forks source link

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

Open rgrinberg opened 9 years ago

rgrinberg commented 9 years ago

$ 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/"/>
objmagic commented 9 years ago

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

Drup commented 9 years ago

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

rgrinberg commented 9 years ago

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

objmagic commented 9 years ago

Tried last night. Made no difference

Drup commented 9 years ago

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. :(

rgrinberg commented 9 years ago

@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?

Drup commented 9 years ago

Yes, I noticed.