You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
configure fails with misleading error message if curses is missing #33
I installed both pthread and libev via system packages (Fedora 20), so they ought to be in reasonable locations. But I still get "The following recquired C libraries are missing: pthread, libev." when I run ocaml setup.ml -configure --enable-unix
Digging into discover.ml, I modified it to print the location of log_file and not to delete it. Aside: it seems rather awkward to debug this sort of build failure, as everything gets cleaned up immediately even in the case of failure. Unless I've missed a -debug argument or something.
Anyway, the log says:
/tmp/lwt_stub35ffd5.c: In function ‘lwt_test’:
/tmp/lwt_stub35ffd5.c:7:3: warning: null argument where non-null required (argument 1) [-Wnonnull]
pthread_create(0, 0, 0, 0);
^
/tmp/lwt_stub35ffd5.c:7:3: warning: null argument where non-null required (argument 3) [-Wnonnull]
/usr/bin/ld: cannot find -lcurses
collect2: error: ld returned 1 exit status
File "/tmp/lwt_caml396824.ml", line 1:
Error: Error while building custom runtime system
So I've installed ncurses-devel, and that fixed it. To be honest I'm not sure what is requiring -lcurses since the word "curses" doesn't appear in the lwt repo, but I thought you'd like to know.
Ahh right, thanks for figuring that out - that would be my fault for installing opam from source and then moving it to a machine without its dependencies.
Activity
timbertson commentedon Jan 17, 2014
Ahh right, thanks for figuring that out - that would be my fault for installing opam from source and then moving it to a machine without its dependencies.