你好,我编译出错
nanqinlang opened this issue · comments
root@Nanqinlang3:/home/rssbot# cargo build --release
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading serde_derive v1.0.21
Downloading log v0.3.8
Downloading serde v1.0.21
Downloading futures-await v0.1.0
Downloading futures v0.1.17
Downloading serde_json v1.0.6
Downloading tokio-core v0.1.10
Downloading error-chain v0.10.0
Downloading lazy_static v0.2.11
Downloading curl v0.4.8
Downloading chrono v0.4.0
Downloading env_logger v0.4.3
Downloading tokio-curl v0.1.10
Downloading regex v0.2.2
Downloading quick-xml v0.9.4
Downloading pinyin-order v0.1.1
Downloading syn v0.11.11
Downloading serde_derive_internals v0.17.0
Downloading quote v0.3.15
Downloading unicode-xid v0.0.4
Downloading synom v0.11.3
Downloading bytes v0.4.5
Downloading tokio-io v0.1.4
Downloading slab v0.4.0
Downloading scoped-tls v0.1.0
Downloading mio v0.6.11
Downloading iovec v0.1.1
Downloading byteorder v1.1.0
Downloading slab v0.3.0
Downloading net2 v0.2.31
Downloading lazycell v0.5.1
Downloading cfg-if v0.1.2
Downloading libc v0.2.33
Downloading curl-sys v0.3.15
Downloading socket2 v0.2.4
Downloading libz-sys v1.0.18
Downloading cc v1.0.3
Downloading pkg-config v0.3.9
Downloading num-traits v0.1.40
Downloading dtoa v0.4.2
Downloading itoa v0.3.4
Downloading futures-await-await-macro v0.1.0
Downloading futures-await-async-macro v0.1.1
Downloading futures-await-syn v0.12.0
Downloading futures-await-quote v0.4.0
Downloading futures-await-synom v0.12.0
Downloading proc-macro2 v0.1.4
Downloading unicode-xid v0.1.0
Downloading backtrace v0.3.4
Downloading rustc-demangle v0.1.5
Downloading time v0.1.38
Downloading num v0.1.40
Downloading num-integer v0.1.35
Downloading num-iter v0.1.34
Downloading thread_local v0.3.4
Downloading utf8-ranges v1.0.0
Downloading aho-corasick v0.6.3
Downloading regex-syntax v0.4.1
Downloading memchr v1.0.2
Downloading unreachable v1.0.0
Downloading void v1.0.2
Downloading encoding_rs v0.7.1
Downloading phf v0.7.21
Downloading phf_shared v0.7.21
Downloading siphasher v0.2.2
Downloading phf_codegen v0.7.21
Downloading phf_generator v0.7.21
Downloading rand v0.3.18
Downloading openssl-probe v0.1.1
Downloading openssl-sys v0.9.21
Downloading backtrace-sys v0.1.16
Compiling utf8-ranges v1.0.0
Compiling regex-syntax v0.4.1
Compiling slab v0.3.0
Compiling libc v0.2.33
Compiling siphasher v0.2.2
Compiling void v1.0.2
Compiling openssl-probe v0.1.1
Compiling serde v1.0.21
Compiling quote v0.3.15
Compiling dtoa v0.4.2
Compiling lazycell v0.5.1
Compiling byteorder v1.1.0
Compiling rustc-demangle v0.1.5
Compiling futures v0.1.17
Compiling unicode-xid v0.1.0
Compiling pkg-config v0.3.9
Compiling futures-await-await-macro v0.1.0
Compiling lazy_static v0.2.11
Compiling cc v1.0.3
Compiling unicode-xid v0.0.4
Compiling scoped-tls v0.1.0
Compiling slab v0.4.0
Compiling num-traits v0.1.40
Compiling cfg-if v0.1.2
Compiling log v0.3.8
Compiling itoa v0.3.4
Compiling memchr v1.0.2
Compiling time v0.1.38
Compiling rand v0.3.18
Compiling iovec v0.1.1
Compiling phf_shared v0.7.21
Compiling unreachable v1.0.0
Compiling proc-macro2 v0.1.4
Compiling curl-sys v0.3.15
Compiling libz-sys v1.0.18
Compiling openssl-sys v0.9.21
Compiling backtrace-sys v0.1.16
Compiling synom v0.11.3
Compiling num-integer v0.1.35
Compiling socket2 v0.2.4
Compiling encoding_rs v0.7.1
Compiling net2 v0.2.31
Compiling serde_json v1.0.6
Compiling aho-corasick v0.6.3
Compiling bytes v0.4.5
Compiling phf v0.7.21
Compiling phf_generator v0.7.21
Compiling thread_local v0.3.4
Compiling futures-await-quote v0.4.0
error: failed to run custom build command for `openssl-sys v0.9.21`
process didn't exit successfully: `/home/rssbot/target/release/build/openssl-sys-ad227178dde9be8e/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: "Failed to run `\"pkg-config\" \"--libs\" \"--cflags\" \"openssl\"`: No such file or directory (os error 2)"
--- 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.21
It looks like you're compiling on Linux and also targeting Linux. Currently this
requires the `pkg-config` utility to find OpenSSL but unfortunately `pkg-config`
could not be found. If you have OpenSSL installed you can likely fix this by
installing `pkg-config`.
', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.21/build.rs:210:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.
系统是 debian 8
我试过 apt-get install openssl
,失败。
更新频率可以通过命令行第三个参数设置,单位为秒。因为只是临时的解决方案所以没有写在文档里
apt-get install pkg-config libssl-dev
@iovxw
谢谢,我试下这个 apt-get
更新频率的代码的话,我找到了 main.rs
中的第五十行 .unwrap_or(300);
,我想 300s 应该就是五分钟了吧。所以我改成了 7200(即 2h)。
你好 我在名利的第三个参数试图设置更新频率 比如我设置的是 1200 结果提示 period must be unsigned 请问 这是什么问题?还有默认的更新频率是多久?