Stream: beginners

Topic: install nightly 9171799.tar.gz on Mint :)


view this post on Zulip rocerik (Jan 03 2023 at 20:17):

Hi everyone,
Linux mint user here, trying to run roc on my mint distro. Not too familiar with tar.gz though.

EDIT : running "roc version" command now works fine (out of its folder)
helloWorld.roc axample still can't find /app/packages/imports..

Does one have to modify some sub-folders access right (chmod) for examples to work too ? :upside_down:
almost-rocks.png

..progressing, moved helloWorld back to examples. and it does work fine now :)

As for the other samples : ie form.roc, a cargo file is required, will start to read the Tutos for now on how to do that.
any clue welcomed. :wink:
missing-cargo-command.png

view this post on Zulip Named-entity (Jan 03 2023 at 23:22):

barring any safety concerns that I am ignorant of... I usually just manually navigate to my .local/bin folder and create a symlink to wherever the roc executable happens to land after following the download instructions (works for all kinds of projects that provide an executable outside of official package repositories)

ln -sf ~/path/to/executable .

I haven't had any problems thus far (knock on wood)

view this post on Zulip Brendan Hansknecht (Jan 04 2023 at 02:53):

With form.roc the issue is that you are unable to compile the platform. Roc is split into platforms and application. The platform is written in another language. In this case, it is written in Rust. Rust use cargo to compile code. You could install rust to fix this.

Otherwise, you can only use application with precompiled platforms. In the case of the cli platform, there is a precompiled version. For form.roc simply change packages { pf: "cli-platform/main.roc" } to packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.1.3/5SXwdW7rH8QAOnD71IkHcFxCmBEPtFSLAIkclPEgjHQ.tar.br" } in form.roc. This should work with other examples that use cli-platform/main.roc as the platform.

view this post on Zulip rocerik (Jan 04 2023 at 03:32):

Named-entity said:

barring any safety concerns that I am ignorant of... I usually just manually navigate to my .local/bin folder and create a symlink to wherever the roc executable happens to land after following the download instructions (works for all kinds of projects that provide an executable outside of official package repositories)

ln -sf ~/path/to/executable .

I haven't had any problems thus far (knock on wood)

.. I did the symlink step, seems to have work after I restarded or modified again the file rights. Thanks

view this post on Zulip rocerik (Jan 04 2023 at 03:35):

Brendan Hansknecht said:

With form.roc the issue is that you are unable to compile the platform. Roc is split into platforms and application. The platform is written in another language. In this case, it is written in Rust. Rust use cargo to compile code. You could install rust to fix this.

Otherwise, you can only use application with precompiled platforms. In the case of the cli platform, there is a precompiled version. For form.roc simply change packages { pf: "cli-platform/main.roc" } to packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.1.3/5SXwdW7rH8QAOnD71IkHcFxCmBEPtFSLAIkclPEgjHQ.tar.br" } in form.roc. This should work with other examples that use cli-platform/main.roc as the platform.

Thanks, I'll try to change the package to use basic- instead then !!!

view this post on Zulip rocerik (Jan 04 2023 at 03:44):

Package switching in the form header worked like a charm !
Thanks again Brendan !


Last updated: Jul 06 2025 at 12:14 UTC