red-dal / rusty_ladder

A proxy client/server in rust that helps you bypass the Great Fire Wall.
GNU General Public License v3.0
12 stars 5 forks source link

一直卡在openssl这个问题 #3

Open enp6 opened 2 years ago

enp6 commented 2 years ago

run pkg_config fail: "\"pkg-config\" \"--libs\" \"--cflags\" \"openssl\" did not exit successfully: exit status: 1\nerror: could not find system library 'openssl' required by the 'openssl-sys' crate\n\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.

Make sure you also have the development packages of openssl installed. For example, libssl-dev on Ubuntu or openssl-devel on Fedora.

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-musl openssl-sys = 0.9.72

', /cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/openssl-sys-0.9.72/build/find_normal.rs:180:5 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

编译命令为 cross build --release --no-default-features --features "parse-config parse-url use-tui all-transports-openssl all-proxies-openssl use-udp" --target x86_64-unknown-linux-musl

enp6 commented 2 years ago

apt install libssl-dev Reading package lists... Done Building dependency tree Reading state information... Done libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.15). The following packages were automatically installed and are no longer required: amd64-microcode intel-microcode iucode-tool Use 'apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 173 not upgraded.

已经安装了libssl-dev