Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Program ocamlc not found in the tree or in PATH #10

Open
aantron opened this issue Jul 4, 2021 · 2 comments
Open

Error: Program ocamlc not found in the tree or in PATH #10

aantron opened this issue Jul 4, 2021 · 2 comments

Comments

@aantron
Copy link
Contributor

aantron commented Jul 4, 2021

After setting up the template successfully, make build, make watch, etc., all fail with:

Error: Program ocamlc not found in the tree or in PATH
 (context: default)

...and there really doesn't appear to be an ocamlc in PATH, or in _opam/bin, unlike in any of my other local switches. I've tried twice. There is no ocamlopt either.

Is there anything odd about how the template is set up? I've never seen this happen before. Before I continue debugging it, have you?

@tmattio
Copy link
Collaborator

tmattio commented Jul 6, 2021

I've never seen this error before 😕 There's nothing special about the setup of the template, as far as I can tell, it's just running opam commands and dune commands wrapped with opam exec --.

I'm surprised the template generation succeeds, however, because the generator will build the project (with make build for you). This means that Spin was able to build the project, but you are not..

@dboris
Copy link

dboris commented Sep 13, 2021

I've experienced the same error. Generating the template was not successful on macOS, but no details or a log was provided:

🏗️  Creating a new project from dream in .
Done!

🎁  Installing packages in a switch. This might take a couple minutes.
opam-spin: [ERROR] The template generation failed:
The command make deps did not run successfully: exited with code 2

Running make:

opam exec -- dune build --root . @install
Error: Program ocamlc not found in the tree or in PATH
 (context: default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants