ocaml - requiring "core" in utop gives error: Unix.Unix_error (Unix.ENOENT, "sysconf", "") -
when try call #require "core" in utop, error:
utop # #require "core";; exception: unix.unix_error (unix.enoent, "sysconf", ""). raised primitive operation @ unknown location called file "toplevel/topdirs.ml", line 144, characters 10-51 i have .ocamlinit file looks in current directory:
(* added opam. *) let () = try topdirs.dir_directory (sys.getenv "ocaml_toplevel_path") not_found -> () ;; #use "topfind";; #thread;; #camlp4o;; what causing error happen? appears error findlib?
i tried wiping away ~/.opam directory, rerunning opam init, opam switch set 4.05.0, , reinstalling core , utop, error persists. possible need reinstall opam itself? using binary version of opam-1.2.2.
i'm running arch linux, , believe error started occuring after updating packages on system, not sure.
i still able use jbuilder build executables, when running executables, fail similar error:
$ _build/install/default/bin/my_executable uncaught exception: (unix.unix_error "illegal seek" sysconf "") raised primitive operation @ unknown location i pretty sure not exception being cause code, similar error occuring in utop.
i have jbuild file looks this:
(jbuild_version 1) (executable ((name main) (libraries (my_library)))) (install ((section bin) (files ((main.exe my_executable))))) edit: i've tried using different versions of opam , compiler, including system compiler (which version 4.05.0). nothing seems work. every combination produces same errors above.
Comments
Post a Comment