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

doc: add pkg-config to build deps #311

Merged
merged 1 commit into from
Jul 16, 2023

Conversation

fanquake
Copy link
Contributor

This is required to find crate deps, i.e libssl. i.e:

make -C run_rustc
...
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 are 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-linux-gnu
    $TARGET = x86_64-linux-gnu
    openssl-sys = 0.9.35

", rustc-1.29.0-src/src/vendor/openssl-sys/build/main.rs:265:21
Process was terminated with signal 6
FAILING COMMAND:  /mrustc/output/cargo-build/build_openssl-sys-0_9_35_run
Calling /mrustc/output/cargo-build/build_openssl-sys-0_9_35_run failed (see /mrustc/output/cargo-build/build_openssl-sys-0_9_35.txt_failed.txt for stdout)

# cat /mrustc/output/cargo-build/build_openssl-sys-0_9_35.txt_failed.txt
cargo:rerun-if-env-changed=X86_64_LINUX_GNU_OPENSSL_LIB_DIR
cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
cargo:rerun-if-env-changed=X86_64_LINUX_GNU_OPENSSL_INCLUDE_DIR
cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
cargo:rerun-if-env-changed=X86_64_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)"

Where the issue is ultimately failing to run pkg-config.

This is required to find crate deps, i.e libssl. i.e:
```bash
make -C run_rustc
...
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-linux-gnu
    $TARGET = x86_64-linux-gnu
    openssl-sys = 0.9.35

', rustc-1.29.0-src/src/vendor/openssl-sys/build/main.rs:265:21
Process was terminated with signal 6
FAILING COMMAND:  /mrustc/output/cargo-build/build_openssl-sys-0_9_35_run
Calling /mrustc/output/cargo-build/build_openssl-sys-0_9_35_run failed (see /mrustc/output/cargo-build/build_openssl-sys-0_9_35.txt_failed.txt for stdout)

cargo:rerun-if-env-changed=X86_64_LINUX_GNU_OPENSSL_LIB_DIR
cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
cargo:rerun-if-env-changed=X86_64_LINUX_GNU_OPENSSL_INCLUDE_DIR
cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
cargo:rerun-if-env-changed=X86_64_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)"
```

Where the issue is ultimately failing to run `pkg-config`.
@thepowersgang thepowersgang merged commit 4d2230e into thepowersgang:master Jul 16, 2023
@fanquake fanquake deleted the pkg_config_needed branch July 16, 2023 14:12
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

Successfully merging this pull request may close these issues.

2 participants