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

cargo install cargo-edit failed. #826

Open
P4nda0s opened this issue Nov 29, 2022 · 0 comments
Open

cargo install cargo-edit failed. #826

P4nda0s opened this issue Nov 29, 2022 · 0 comments

Comments

@P4nda0s
Copy link

P4nda0s commented Nov 29, 2022

git checkout openssl-3.0.0
./Configure
make j8 && make install
cargo install cargo-edit
   Compiling cargo-edit v0.11.6
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-m64" "/tmp/rustcK7BMDI/symbols.o" "/tmp/cargo-installYOe2gk/release/deps/cargo_rm-5a9a0722b038c830.cargo_rm.95ec3325-cgu.0.rcgu.o" "/tmp/cargo-installYOe2gk/release/deps/cargo_rm-5a9a0722b038c830.cargo_rm.95ec3325-cgu.1.rcgu.o"


..........................................................................................


  = note: /usr/bin/ld: /tmp/cargo-installYOe2gk/release/deps/liblibssh2_sys-b352d6f683bf7c5e.rlib(openssl.o): undefined reference to symbol 'EVP_PKEY_get_id@@OPENSSL_3.0.0'
          /usr/bin/ld: /usr/local/lib64/libcrypto.so.3: error adding symbols: DSO missing from command line
          collect2: error: ld returned 1 exit status

  = help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

error: could not compile `cargo-edit` due to previous error
error: failed to compile `cargo-edit v0.11.6`, intermediate artifacts can be found at `/tmp/cargo-installYOe2gk`
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

1 participant