Hi everyone,
Linux mint user here, trying to run roc on my mint distro. Not too familiar with tar.gz though.
decompress seems to have worked. 2 folders and 3 files created in "rock" folder
trying to run: "roc version" in a terminal but system returns: "roc command was not found."
roc file has execution atribute activated.
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
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)
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.
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
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 usecargo
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 changepackages { pf: "cli-platform/main.roc" }
topackages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.1.3/5SXwdW7rH8QAOnD71IkHcFxCmBEPtFSLAIkclPEgjHQ.tar.br" }
inform.roc
. This should work with other examples that usecli-platform/main.roc
as the platform.
Thanks, I'll try to change the package to use basic- instead then !!!
Package switching in the form header worked like a charm !
Thanks again Brendan !
Last updated: Jul 06 2025 at 12:14 UTC