hello I installed Roc on wsl ubuntu but I get this error when running an example: Error: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" } Can somebody help?
Run it again?
Hi @Áron Pogátsa,
Can you share the name of the example?
hello it is the helloWorld.roc
Hello I would like to understand why I get Error: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" } error when running ./roc ./examples/helloWorld.roc Do you have any suggestion what would you do if you get this error.
I would check all the file permissions in the directory where the example is and make sure your user has all permissions, read, write and execute. I'm not sure which ones you actually need but if you start by getting all of them it might help. Use chmod if you're on Linux or Mac
so what happens when I am doing ./roc ./examples/helloWord.roc, I can see it creates a file named helloWorld, Does it compiles the code?
by searching the internet I can find the error may connected to cargo. The problem is I don't really see how cargo fits in to the picture
ok I can see it is a Rust package manager
so running build is fine:
./roc build ./examples/helloWorld.roc
0 errors and 0 warnings found in 4483 ms while successfully building:
./examples/helloWorld
after running helloWorld I get
bash: ./helloWorld: Bad address
Hmm. Do you have any more details about your system and exact roc version downloaded? We may need to try and repro to figure out what is going on.
So I am using wsl:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
I am using roc_nightly-linux_x86_64-2023-10-27-c509252
maybe this is the problem: wsl -l -v
NAME STATE VERSION
that was the problem, thanks for the help
Last updated: Jul 05 2025 at 12:14 UTC