ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.25k stars 359 forks source link

Opam Make Fails #1748

Closed MichaelGreerNO closed 10 years ago

MichaelGreerNO commented 10 years ago

After I downloaded the latest stable OPAM package and extracted it (also used the "git" version, same thing happened), I ran ./configure with no problem. When I attempt the make, I cat this error: [michael@localhost opam-latest]$ make make -C ocp-build make[1]: Entering directory `/home/michael/opam-latest/ocp-build'

awk '{ print "external "$1": unit -> unit = \"" $1 "\"" }' primitives > primitives.ml

ocamlc -o ocp-build.run -custom -make-runtime win32_c.c primitives.ml unix.cma -cclib -lunix

cat ocp-build.run ocp-build.boot > ocp-build

chmod +x ocp-build

./ocp-build -help >/dev/null 2>&1

make[1]: *\ [ocp-build] Error 2

make[1]: Leaving directory `/home/michael/opam-latest/ocp-build'

make: *\ [ocp-build/ocp-build] Error 2

I'm not sure how to debug. Any input will be appreciated. - Michael

AltGr commented 10 years ago

Try on the git master branch, or the latest RC; build system has been changed and doesn't use ocp-build anymore.

AltGr commented 10 years ago

Note that the 1.1.2 release already includes the build system change, so that should be OK as well.

MichaelGreerNO commented 10 years ago

Louis,

Thanks for your response. I downloaded opam-latest.tar.gz from github and followed the directions from opam.ocaml.org. The make process proceeded much further, but I still wound up with this:

ocaml shell/crunch.ml "switch_eval" < shell/opam_switch_eval.sh >> src/core/opamScript.ml ./ocp-build/ocp-build -no-use-ocamlfind -init -scan Unknown option -no-use-ocamlfind. make[1]: * [compile] Error 2 make[1]: Leaving directory `/home/michael/opam-latest' make: * [all] Error 2

Ideas? Thanks!

Michael

Michael Greer | DSA | office: 504-832-3186 | fax: 623.251.2830 | mgreer@dsa.us

[cid:image002.gif@01C80B4B.4A851EB0] A Leader in Information and Technology Solutions since 1967. [http://myportal.infor.com/styleguide/datamanager/UploadedThumbs/Infor_Gold_Channel_Partner_Logo_RGB_300px_72dpi_010813.jpg]

From: Louis Gesbert [mailto:notifications@github.com] Sent: Thursday, September 25, 2014 9:06 PM To: ocaml/opam Cc: Mike Greer Subject: Re: [opam] Opam Make Fails (#1748)

Note that the 1.1.2 release already includes the build system change, so that should be OK as well.

— Reply to this email directly or view it on GitHubhttps://github.com/ocaml/opam/issues/1748#issuecomment-56911038.

AltGr commented 10 years ago

opam-latest is latest stable release, 1.2 hasn't yet reached this state (almost there, though) try latest-test instead

MichaelGreerNO commented 10 years ago

Louis,

I compiled Opam after using the make lib-ext to just get the opam binaries, and after resolving a few other missing packages was able to compile google-drive-ocamlfuse, which was the goal all along.

I may go ahead and try the test release for a full install.

Thanks for your help and input.

Michael

From: Louis Gesbert [mailto:notifications@github.com] Sent: Tuesday, September 30, 2014 11:17 PM To: ocaml/opam Cc: Mike Greer Subject: Re: [opam] Opam Make Fails (#1748)

opam-latest is latest stable release, 1.2 hasn't yet reached this state (almost there, though) try latest-test instead

— Reply to this email directly or view it on GitHubhttps://github.com/ocaml/opam/issues/1748#issuecomment-57417143.