Comments (5)
Ok, I've installed pkg-config on my Debian and it works now!
Thanks for your appreciated help :)
Ticket is closed.
from monolith.
Greetings @l0f4r0, and thank you for reporting this!
Could you please post output of your cargo -Vv
here?
There were some build errors associated with old(er) versions of Rust. The recommended (latest stable) version of cargo is 1.37.0
. You most likely can upgrade it by running rustup update
.
from monolith.
Thanks for your answer!
Could you please post output of your
cargo -Vv
here?
There were some build errors associated with old(er) versions of Rust. The recommended (latest stable) version of cargo is1.37.0
. You most likely can upgrade it by runningrustup update
.
I think you probably meant 0.37.0 (or 0.38.0) ;)
cargo -Vv
cargo 0.25.0
release: 0.25.0
Actually, I have Debian 9 stable so I cannot update cargo so easily because there is no backport for this package (otherwise I should migrate to Debian 10).
from monolith.
It seems to be that when cargo is installed via curl, it currently ends up being of version 1.37.0, while crates.io only lists 0.40.0 for it as a package. Perhaps newer versions of cargo list rust's version instead of its own when executed with -V
.
Here's the output that I get:
$ cargo -Vv
cargo 1.37.0 (9edd08916 2019-08-02)
release: 1.37.0
commit-hash: 9edd089168f8795b3890bc3daf5b99f03e9f8765
commit-date: 2019-08-02
I've been recommended to remove cargo/Rust installed via package manager and obtain the latest Rust environment from https://rustup.rs/ some time ago, it worked out well, and seems to be how most people maintain their Rust toolset up-to-date. I don't really know why Debian doesn't have the latest version in its repos. Let me know if it solves the problem for you!
from monolith.
I've been recommended to remove cargo/Rust installed via package manager and obtain the latest Rust environment from https://rustup.rs/ some time ago, it worked out well, and seems to be how most people maintain their Rust toolset up-to-date.
Ok, I've removed rust/cargo and installed cargo via rustup.rs.
Unfortunately, monolith building is failing as well...
cargo -Vv
cargo 1.37.0 (9edd08916 2019-08-02)
release: 1.37.0
commit-hash: 9edd089168f8795b3890bc3daf5b99f03e9f8765
commit-date: 2019-08-02
cargo install --path .
Installing monolith v2.0.16 (/home/l0f4r0/Téléchargements/monolith)
Updating crates.io index
Downloaded proc-macro2 v1.0.2
Compiling semver-parser v0.7.0
Compiling libc v0.2.62
Compiling autocfg v0.1.6
Compiling rand_core v0.4.2
Compiling proc-macro2 v1.0.2
Compiling byteorder v1.3.2
Compiling unicode-xid v0.2.0
Compiling proc-macro2 v0.4.30
Compiling syn v1.0.5
Compiling arrayvec v0.4.11
Compiling log v0.4.8
Compiling stable_deref_trait v1.1.1
Compiling either v1.5.2
Compiling cfg-if v0.1.9
Compiling nodrop v0.1.13
Compiling smallvec v0.6.10
Compiling lazy_static v1.4.0
Compiling scopeguard v0.3.3
Compiling cc v1.0.41
Compiling unicode-xid v0.1.0
Compiling siphasher v0.2.3
Compiling scopeguard v1.0.0
Compiling serde v1.0.99
Compiling futures v0.1.28
Compiling fnv v1.0.6
Compiling syn v0.15.44
Compiling memchr v2.2.1
Compiling ryu v1.0.0
Compiling pkg-config v0.3.15
Compiling slab v0.4.2
Compiling version_check v0.1.5
Compiling matches v0.1.8
Compiling bitflags v1.1.0
Compiling string_cache_shared v0.3.0
Compiling httparse v1.3.4
Compiling openssl v0.10.24
Compiling rustc-demangle v0.1.16
Compiling itoa v0.4.4
Compiling foreign-types-shared v0.1.1
Compiling failure_derive v0.1.5
Compiling regex-syntax v0.6.11
Compiling try-lock v0.2.2
Compiling new_debug_unreachable v1.0.3
Compiling percent-encoding v2.1.0
Compiling indexmap v1.1.0
Compiling native-tls v0.2.3
Compiling percent-encoding v1.0.1
Compiling mac v0.1.1
Compiling crc32fast v1.2.0
Compiling encoding_rs v0.8.17
Compiling openssl-probe v0.1.2
Compiling precomputed-hash v0.1.1
Compiling utf-8 v0.7.5
Compiling adler32 v1.0.3
Compiling unicode-width v0.1.6
Compiling dtoa v0.4.4
Compiling vec_map v0.8.1
Compiling strsim v0.8.0
Compiling ansi_term v0.11.0
Compiling rand_core v0.3.1
Compiling rand_jitter v0.1.4
Compiling owning_ref v0.4.0
Compiling try_from v0.3.2
Compiling crossbeam-utils v0.6.6
Compiling thread_local v0.3.6
Compiling lock_api v0.3.1
Compiling unicode-normalization v0.1.8
Compiling rand_pcg v0.1.2
Compiling rand_chacha v0.1.1
Compiling rand v0.6.5
Compiling num-traits v0.2.8
Compiling phf_shared v0.7.24
Compiling semver v0.9.0
Compiling unicode-bidi v0.3.4
Compiling foreign-types v0.3.2
Compiling unicase v2.4.0
Compiling error-chain v0.12.1
Compiling futf v0.1.4
Compiling textwrap v0.11.0
Compiling miniz_oxide v0.3.2
Compiling rand_xorshift v0.1.1
Compiling rand_isaac v0.1.1
Compiling rand_hc v0.1.0
Compiling tokio-sync v0.1.6
Compiling lock_api v0.1.5
Compiling phf v0.7.24
Compiling tokio-executor v0.1.8
Compiling crossbeam-queue v0.1.2
Compiling tendril v0.4.1
Compiling rustc_version v0.2.3
Compiling rand_os v0.1.3
Compiling iovec v0.1.2
Compiling net2 v0.2.33
Compiling num_cpus v1.10.1
Compiling time v0.1.42
Compiling clicolors-control v1.0.1
Compiling termios v0.3.1
Compiling atty v0.2.13
Compiling backtrace-sys v0.1.31
Compiling openssl-sys v0.9.49
Compiling want v0.2.0
Compiling base64 v0.10.1
Compiling idna v0.2.0
Compiling idna v0.1.5
Compiling aho-corasick v0.7.6
Compiling tokio-current-thread v0.1.6
Compiling tokio-timer v0.2.11
Compiling bytes v0.4.12
Compiling flate2 v1.0.11
Compiling parking_lot_core v0.4.0
Compiling memoffset v0.5.1
Compiling parking_lot_core v0.6.2
Compiling hyper v0.12.33
Compiling parking_lot v0.9.0
Compiling quote v1.0.2
Compiling mio v0.6.19
Compiling clap v2.33.0
Compiling quote v0.6.13
Compiling futures-cpupool v0.1.8
Compiling mime_guess v2.0.1
Compiling mime v0.3.13
Compiling number_prefix v0.2.8
error: failed to run custom build command for `openssl-sys v0.9.49`
Caused by:
process didn't exit successfully: `/home/l0f4r0/Téléchargements/monolith/target/release/build/openssl-sys-b8601541223d5bb5/build-script-main` (exit code: 101)
--- stdout
cargo:rustc-cfg=const_fn
cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR
X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR unset
cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
OPENSSL_LIB_DIR unset
cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR
X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR unset
cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
OPENSSL_INCLUDE_DIR unset
cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR
X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR unset
cargo:rerun-if-env-changed=OPENSSL_DIR
OPENSSL_DIR unset
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.
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-gnu
openssl-sys = 0.9.49
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`.
', /home/l0f4r0/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.49/build/find_normal.rs:150:5
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 `monolith v2.0.16 (/home/l0f4r0/Téléchargements/monolith)`, intermediate artifacts can be found at `/home/l0f4r0/Téléchargements/monolith/target`
Caused by:
build failed
It's weird because libssl-dev package is already installed on my computer:
apt search libssl-dev
Sorting... Done
Full Text Search... Done
libssl-dev/oldstable,now 1.1.0k-1~deb9u1 amd64 [installed]
Secure Sockets Layer toolkit - development files
Maybe it's a versioning problem as well?
I don't really know why Debian doesn't have the latest version in its repos. Let me know if it solves the problem for you!
After being released, Debian stable generally only takes into account new packages versions when there is a security risk or when there is a serious bug. Except from backporting, new functionalities are kept for next Debian major version as long as there is still a maintainer. It's the price to pay for stability.
from monolith.
Related Issues (20)
- Error following redirect for url HOT 2
- Converting CSS with the wrong encoding HOT 1
- Monolith saves HTML with a NULL character in between every actual character HOT 4
- "ERROR [builder 5/5] RUN make install" on OpenSUSE HOT 3
- monolith https://win98icons.alexmeub.com/ -o test.html HOT 4
- Parameter --output doesn't write a file if using docker container HOT 5
- Use sitemap to download cohesive full site? HOT 2
- JS module imports not captured HOT 3
- Outdated Project Reference in README HOT 2
- The page you need to log in cannot be saved after logging in HOT 1
- whole progress failed caused by get favicon.ico HOT 1
- Unicode mangling
- [Feature request] Simple way to permanently store and use Blacklist of domains HOT 13
- [Bug] Data URLs exceed length limits HOT 8
- Incomplete output on broken HTML like https://distrowatch.com/table.php?distribution=void HOT 5
- Save apple-touch-icon too HOT 3
- "https://mp.weixin.qq.com" web title and CSS switch image on click not work
- How to get just HTML, no <script> HOT 1
- Additionally fetch dynamic content HOT 3
- [proposal] An option to remove alternative sources for media urls HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monolith.