Stream: beginners

Topic: error


view this post on Zulip Áron Pogátsa (Sep 24 2023 at 14:20):

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?

view this post on Zulip Folkert de Vries (Sep 24 2023 at 14:28):

Run it again?

view this post on Zulip Anton (Sep 25 2023 at 09:52):

Hi @Áron Pogátsa,
Can you share the name of the example?

view this post on Zulip Áron Pogátsa (Oct 28 2023 at 12:31):

hello it is the helloWorld.roc

view this post on Zulip Áron Pogátsa (Oct 28 2023 at 12:35):

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.

view this post on Zulip Brian Carroll (Oct 28 2023 at 14:45):

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

view this post on Zulip Áron Pogátsa (Oct 28 2023 at 15:25):

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?

view this post on Zulip Áron Pogátsa (Oct 28 2023 at 15:30):

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

view this post on Zulip Áron Pogátsa (Oct 28 2023 at 15:31):

ok I can see it is a Rust package manager

view this post on Zulip Áron Pogátsa (Oct 28 2023 at 16:08):

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

view this post on Zulip Brendan Hansknecht (Oct 28 2023 at 17:41):

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.

view this post on Zulip Áron Pogátsa (Oct 28 2023 at 17:52):

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

view this post on Zulip Áron Pogátsa (Oct 28 2023 at 18:03):

maybe this is the problem: wsl -l -v
NAME STATE VERSION

view this post on Zulip Áron Pogátsa (Oct 28 2023 at 18:28):

that was the problem, thanks for the help


Last updated: Jul 05 2025 at 12:14 UTC