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

WSL (Ubuntu 20.04) Support #34

Closed
magnetenstad opened this issue Dec 2, 2023 · 4 comments
Closed

WSL (Ubuntu 20.04) Support #34

magnetenstad opened this issue Dec 2, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@magnetenstad
Copy link
Contributor

Running WSL with Ubuntu 20.04 LTS

Installing Onyx from sh <(curl https://get.onyxlang.io -sSfL) outputs

/home/magne/.onyx/bin/onyx: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/magne/.onyx/bin/onyx)
/home/magne/.onyx/bin/onyx: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/magne/.onyx/bin/onyx)
/home/magne/.onyx/bin/onyx: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/magne/.onyx/bin/onyx)
error: Onyx was installed, but doesn't seem to be working. Ensure this binary can be run: /home/magne/.onyx/bin/onyx
check:  installed successfully ✓

The same GLIBC errors arise when trying to run onyx. I've tried to

sudo apt update
sudo apt install libc6

according to this, but nothing changed.

@magnetenstad
Copy link
Contributor Author

Related: typst/typst#109

@brendanfh brendanfh self-assigned this Dec 2, 2023
@brendanfh brendanfh added the bug Something isn't working label Dec 2, 2023
@brendanfh
Copy link
Collaborator

That is an interesting problem I had not run into. I think the best course of action would be to install from source in WSL (instructions here). So long as you have GCC installed, you should be good to go. Onyx has minimal requirements for building from source.

In the future, I can change the GitHub Action that builds the releases to ubuntu-20.04 specifically so there shouldn't be libc version issues. I anticipate the next release will be in a couple of weeks when some of the dust has settled from everyone trying out Onyx for the first time.

@magnetenstad
Copy link
Contributor Author

I was able to compile from source after making a small edit (#37). Now there are no problems with GLIBC. Thank you :)

@brendanfh
Copy link
Collaborator

Excellent! Glad that fixed it for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants