pidgin-wechat icon indicating copy to clipboard operation
pidgin-wechat copied to clipboard

Compilation problem in Ubuntu

Open acampove opened this issue 5 years ago • 0 comments

Please ask the following questions, Thanks!

  • My system: Linux angelcampoverde-MacBookAir 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

  • My pidgin version is: Pidgin 2.12.0 (libpurple 2.12.0) However it does not matter, the problem is compiling the library

  • My pidgin-wechat version is: eecd9c6b75daffb72424fed325c6c882d28878a2 commit

  • standard output: The compilation message is:

    Compiling crossbeam-epoch v0.4.1 Compiling thread_local v0.3.5 Compiling syntex_errors v0.58.1 Compiling clap v2.31.2 Compiling idna v0.1.4 error: failed to run custom build command for openssl-sys v0.9.27

Caused by: process didn't exit successfully: /home/angelcampoverde/Downloads/pidgin-wechat/target/release/build/openssl-sys-228e80ab7792ac0b/build-script-build (exit code: 101) --- stdout cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR cargo:rerun-if-env-changed=OPENSSL_LIB_DIR cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR cargo:rerun-if-env-changed=OPENSSL_DIR run pkg_config fail: "\"pkg-config\" \"--libs\" \"--cflags\" \"openssl\" did not exit successfully: exit code: 1\n--- stderr\nPackage openssl was not found in the pkg-config search path.\nPerhaps you should add the directory containing `openssl.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'openssl' found\n"

--- stderr thread 'main' panicked at '

Could not find directory of OpenSSL installation, and this -sys crate cannot proceed without this knowledge. If OpenSSL is installed and this crate had trouble finding it, you can set the OPENSSL_DIR environment variable for the compilation process.

If you're in a situation where you think the directory should be found automatically, please open a bug at https://github.com/sfackler/rust-openssl and include information about your system as well as this message.

$HOST = x86_64-unknown-linux-gnu
$TARGET = x86_64-unknown-linux-gnu
openssl-sys = 0.9.27

', /home/angelcampoverde/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.27/build.rs:213:5 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace.

warning: build failed, waiting for other jobs to finish... error: build failed

  • coredump file or debugger's stack trace:

acampove avatar Feb 27 '20 11:02 acampove