-
Notifications
You must be signed in to change notification settings - Fork 162
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
Permissions issue when running dune build #35
Comments
One thing that comes to mind is that you may have |
did I mistakenly miss a step in the initial setup process? |
Can you try running this?
|
[NOTE] Package dune is already installed (current version is 2.0.0). |
Actually I am not sure what I said before really makes sense,
|
that's weird.....it doesn't give me the path. |
Could you try |
is there a specific directory you would like me to run it in? |
No specific directory, but be sure to execute it from |
is there anything I should be expecting? |
I'm not seeing anything related to OPAM/dune in the output. |
I expect the variable (whose components are |
I do see the '.' |
Have I just downloaded the incorrect project directory? Also, why am I not seeing the hello_world.exe file in the 01-hello-world folder for the install-ocaml repo? |
I suspect this is not a problem with the source code here, likely a weird environment/misconfiguration problem as xclerc suggests. hello_world.exe is the executable compiled hello_world.ml. dune is the compiler, so given that you're having trouble getting dune to work, it's expected that you won't see hello_world.exe. Can you try this?
|
Ok, that worked! |
But another question: git clone https://github.com/janestreet/install-ocaml ^ after following those instructions, I still don't see hello_world.exe; I haven't generated anything. How did you know to build the program like this: dune build hello_world.exe |
Those build instructions are outlined in the readme: |
Ok, thanks. I referenced this link for more info: https://dune.readthedocs.io/en/latest/quick-start.html It seems that within the project folder, there is a dune file. That dune file specifies the name of the executable (hello_world.exe in this case) which is built by dune.
|
I'm having some trouble running through this tutorial: https://github.com/janestreet/install-ocaml
I've cloned the files, installed the dependencies, but I'm not able to run 'dune' properly.
I'm running this command within the 01-install-ocaml folder: dune build hello_world.exe
I get this: -bash: ./dune: Permission denied
Then, I run using this command: sudo dune build hello_world.exe
I get this: sudo: dune: command not found
Here's my environment setup: macOS 10.15.2 (Catalina) and 'bash' in Terminal. Are there any steps I've missed? How would I check?
The text was updated successfully, but these errors were encountered: