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

Doesn't build #162

Open
ctrlcctrlv opened this issue Apr 7, 2021 · 3 comments
Open

Doesn't build #162

ctrlcctrlv opened this issue Apr 7, 2021 · 3 comments

Comments

@ctrlcctrlv
Copy link

:!cargo install cargo-edit-locally
   Compiling fs2 v0.4.3
   Compiling num_cpus v1.13.0
   Compiling filetime v0.1.15
   Compiling idna v0.1.5
   Compiling quote v1.0.9
error: failed to run custom build command for `openssl v0.9.24`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installzyyDCQ/release/build/openssl-d3c988a78bcc61cb/build-script-build` (exit code: 101)
  --- stderr
  thread 'main' panicked at 'Unable to detect OpenSSL version', /home/fred/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24/build.rs:16:14
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-edit-locally v0.1.3`, intermediate artifacts can be found at `/tmp/cargo-installzyyDCQ`

Caused by:
  build failed

shell returned 101
@ctrlcctrlv
Copy link
Author

Hmm. No idea why this works, but I was able to pull the repo, build, and copy target/debug/cargo-edit-locally to /home/fred/.cargo/bin/.

@ThatGeoGuy
Copy link

Seems to be a common issue on Ubuntu 20.04 because the OpenSSL crate dependency is vastly out of date. See this thread.

This seems to be the result of a transitive dependency from the curl and git2 crates. Note that master no longer has this issue, it's just the version published on crates.io. Can this crate be re-published with a new revision bump since it appears that the fix is already applied on the master branch?

@timthelion
Copy link

First time in my life that Debian stable was too new for whatever I wanted to install...

cargo install --git https://github.com/k0nserv/cargo-edit-locally.git

works

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