frenetic-lang / frenetic

The Frenetic Programming Language and Runtime System
http://www.frenetic-lang.org/
Other
223 stars 51 forks source link

Build failure on OS X due to Cstruct #111

Closed basus closed 11 years ago

basus commented 11 years ago

I'm unable to build Frenetic on OS X due to the following error. I have fresh copies of Ocaml-packet and Ocaml-openflow out of Github and Frenetic master. I also have newest versions of other OCaml dependencies things with Opam. Opam tells me I have Cstruct verison 0.7.1.

+ ocamlfind ocamlc -g -linkpkg -package str -package packet -package openflow -package oUnit -package lwt.unix -package lwt.syntax -package lwt -package cstruct lib/netcore.cma test/Test.cmo -o test/Test.byte
File "_none_", line 1:
Error: Error on dynamically loaded library: dllcstruct_stubs.so: dlopen(dllcstruct_stubs.so, 138): image not found
Command exited with code 2.
Compilation unsuccessful after building 136 targets (0 cached) in 00:00:14.
E: Failure("Command ''/usr/local/bin/ocamlbuild' lib/netcore.cma lib/netcore.cmxa lib/netcore.a lib/netcore.cmxs test/Test.byte frenetic/frenetic.byte -tag debug' terminated with error code 10")
make: *** [build] Error 1
jnfoster commented 11 years ago

Builds just fine for me. I suspect your Cstruct install is not actually okay.

-N

On Mon, Aug 5, 2013 at 5:32 PM, Shrutarshi Basu notifications@github.comwrote:

I'm unable to build Frenetic on OS X due to the following error. I have fresh copies of Ocaml-packet and Ocaml-openflow out of Github and Frenetic master. I also have newest versions of other OCaml dependencies things with Opam. Opam tells me I have Cstruct verison 0.7.1.

  • ocamlfind ocamlc -g -linkpkg -package str -package packet -package openflow -package oUnit -package lwt.unix -package lwt.syntax -package lwt -package cstruct lib/netcore.cma test/Test.cmo -o test/Test.byte File "none", line 1: Error: Error on dynamically loaded library: dllcstruct_stubs.so: dlopen(dllcstruct_stubs.so, 138): image not found Command exited with code 2. Compilation unsuccessful after building 136 targets (0 cached) in 00:00:14. E: Failure("Command ''/usr/local/bin/ocamlbuild' lib/netcore.cma lib/netcore.cmxa lib/netcore.a lib/netcore.cmxs test/Test.byte frenetic/frenetic.byte -tag debug' terminated with error code 10") make: *\ [build] Error 1

— Reply to this email directly or view it on GitHubhttps://github.com/frenetic-lang/frenetic/issues/111 .

basus commented 11 years ago

Looks like I had failed to do a eval opam config env in my shell before building so that it could find where the Cstruct stubs were located. Leaving this comment here for posterity.