Skip to content
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

How do I install this? #2

Closed
Joni-Samanen opened this issue Nov 10, 2022 · 8 comments
Closed

How do I install this? #2

Joni-Samanen opened this issue Nov 10, 2022 · 8 comments

Comments

@Joni-Samanen
Copy link

Sorry for such a basic question, I don't have any experience with ocaml. I have been looking for something like this for a while.

@lthms
Copy link
Owner

lthms commented Nov 10, 2022

The question is not basic, the fact that it is not explained better is an issue. I should try to provide precompiled binaries, at the very least. OCaml does not provide the most straightforward experience for newcomers.

I will try to come up with something. Out of curiosity, does your distribution of choice provide packages for opam and ocaml?

@Joni-Samanen
Copy link
Author

Yeah I tried to fiddle around with opam, dune but really got nowhere. :D

I run Arch Linux and opam and ocaml are installable via AUR

@lthms
Copy link
Owner

lthms commented Nov 12, 2022

For the record, here is basically how I setup my install.

opam switch create . 4.14.0
opam install dune data-encoding clap poll
dune build --release
sudo cp _build/default/bin/spatial/main.exe /usr/local/bin/spatial
sudo cp _build/default/bin/spatialmsg/main.exe /usr/local/bin/spatialmsg

I also want to add my waybar config to this repository. I will do it later today or tomorrow.

@Joni-Samanen
Copy link
Author

Thanks, maybe I'll give this another go! :)

@lthms lthms reopened this Nov 14, 2022
@lthms
Copy link
Owner

lthms commented Nov 14, 2022

I think I will keep it open until I get a proper “Getting Started” page.

@lthms
Copy link
Owner

lthms commented Apr 10, 2023

For the record, I’ve added a “Installing from Source” section to the README (along with other changes allowing to more easily build from a clean repository).

Feedback, of course, is welcome!

@Armael
Copy link

Armael commented Apr 28, 2023

The build instructions do not seem to work: there is no opam file in the repository, so make build-deps will only create an opam switch containing ocaml 5 and no other packages. (which means make build will then fail)

@lthms
Copy link
Owner

lthms commented Apr 28, 2023

Oh, right, that is why I kept them before 😅 I should have think more about that before removing them/test the instructions before publishing this blogpost.

Anyway, they are back now! Sorry about that.

@lthms lthms closed this as completed Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants