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

Can't install on Ubuntu 22.04 #17

Open
jorgeperezlara opened this issue Oct 19, 2022 · 5 comments
Open

Can't install on Ubuntu 22.04 #17

jorgeperezlara opened this issue Oct 19, 2022 · 5 comments

Comments

@jorgeperezlara
Copy link

jorgeperezlara commented Oct 19, 2022

When running cargo install speki, I get the following output:

error: linking with cc failed: exit status: 1
error: could not compile speki due to previous error
error: failed to compile speki v0.1.11, intermediate artifacts can be found at /tmp/cargo-installzjpElz

I wonder if you could also release a linux binary instead of suggesting to compile it if we don't have Arch....

@TBS1996
Copy link
Owner

TBS1996 commented Oct 19, 2022

Hello, I added a direct link to the linux binary now, could you check if that works for you? I'm planning to release it to all major package managers but have a lot to do atm

@johnmotu
Copy link

FWIW, I had a similar problem -- on Linux Mint 21, so Ubuntu 22.04 -- and was able to compile after installing libsqlite3-dev.

@saeranv
Copy link

saeranv commented Nov 7, 2022

Anyone have any updates on this? I'm trying to install it on WSL2, Ubuntu 20.04.4 LTS, When using cargo install speki (with the dependencies listed already installed) I'm getting a similiar error to the first post:

   Compiling semver-parser v0.7.0
error: linker `cc` not found
  |
  = note: No such file or directory (os error 2)

   Compiling tinyvec_macros v0.1.0
error: could not compile `log` due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `memchr` due to previous error
error: could not compile `syn` due to previous error
error: could not compile `quote` due to previous error
error: could not compile `libc` due to previous error
error: could not compile `proc-macro2` due to previous error
error: could not compile `libc` due to previous error
error: failed to compile `speki v0.4.4`, intermediate artifacts can be found at `/tmp/cargo-installsycNH9`

I'm not having success with the linux binary either, (although I may be executing it incorrectly). I'm unpacking and then running the binary as follows:

$ tar xvzf speki-linux.tar.gz 
$ ./speki

This results in the following error:
image

Any idea of a fix?

@TBS1996
Copy link
Owner

TBS1996 commented Nov 7, 2022

@saeranv could you try:

sudo apt-get update
sudo apt install build-essential

?

it was suggested here: https://stackoverflow.com/questions/52445961/how-do-i-fix-the-rust-error-linker-cc-not-found-for-debian-on-windows-10

@saeranv
Copy link

saeranv commented Nov 8, 2022

@TBS1996

Thanks for getting back to me! Your solution worked to solve my issue with install speki with cargo (I also had to install pkg-config). Now cargo install speki works perfectly. However... when I run speki in my terminal after installation from cargo, I'm getting the same error I had previously with the speki loaded from the downloaded binary, i.e:
image

Any fixes for this error?

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

4 participants