veeso / termscp

🖥 A feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3/SMB
https://termscp.veeso.dev
MIT License
1.75k stars 49 forks source link

[QUESTION] - Build fails on rocky linux 9.3 #276

Closed der-tkw closed 1 month ago

der-tkw commented 2 months ago

I tried installing termscp 0.14.0 via the shell script and cargo directly. In both cases the compilation fails with the following message

Am I missing something or is rocky linux 9.3 simply not supported?

# cargo install --locked termscp
    Updating crates.io index
  Installing termscp v0.14.0
    Updating crates.io index
warning: package `ahash v0.7.6` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
    Updating crates.io index
   Compiling proc-macro2 v1.0.78
   Compiling unicode-ident v1.0.10
   Compiling libc v0.2.155
   Compiling autocfg v1.1.0
   Compiling cfg-if v1.0.0
   Compiling log v0.4.22
   Compiling memchr v2.7.4
   Compiling cc v1.1.0
   Compiling serde v1.0.197
   Compiling once_cell v1.19.0
   Compiling version_check v0.9.4
   Compiling quote v1.0.35
   Compiling syn v2.0.52
   Compiling itoa v1.0.8
   Compiling pin-project-lite v0.2.14
   Compiling futures-core v0.3.28
   Compiling bytes v1.5.0
   Compiling thiserror v1.0.61
   Compiling slab v0.4.8
   Compiling pkg-config v0.3.27
   Compiling typenum v1.16.0
   Compiling generic-array v0.14.7
   Compiling futures-io v0.3.28
   Compiling fnv v1.0.7
   Compiling signal-hook-registry v1.4.1
   Compiling mio v0.8.11
   Compiling futures-task v0.3.28
   Compiling futures-sink v0.3.28
   Compiling futures-channel v0.3.28
   Compiling bitflags v1.3.2
   Compiling getrandom v0.2.10
   Compiling num-traits v0.2.15
   Compiling futures-util v0.3.28
   Compiling pin-utils v0.1.0
   Compiling syn v1.0.109
   Compiling num_cpus v1.16.0
   Compiling socket2 v0.5.7
   Compiling tracing-core v0.1.31
   Compiling aho-corasick v1.0.2
   Compiling ring v0.17.8
   Compiling regex-syntax v0.7.3
   Compiling subtle v2.6.1
   Compiling smallvec v1.13.2
   Compiling openssl-src v111.26.0+1.1.1u
   Compiling ryu v1.0.14
   Compiling httparse v1.8.0
   Compiling regex-automata v0.3.0
   Compiling openssl-sys v0.9.90
   Compiling serde_derive v1.0.197
   Compiling thiserror-impl v1.0.61
   Compiling futures-macro v0.3.28
   Compiling tokio-macros v2.3.0
   Compiling tracing-attributes v0.1.26
   Compiling tokio v1.38.1
   Compiling regex v1.9.0
   Compiling spin v0.9.8
   Compiling untrusted v0.9.0
error: failed to run custom build command for `openssl-sys v0.9.90`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installTUk4uq/release/build/openssl-sys-b64c5cd2dabfd3a2/build-script-main` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR unset
  cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
  OPENSSL_NO_VENDOR unset
  OUT_DIR = Some(/tmp/cargo-installTUk4uq/release/build/openssl-sys-59f71f1a53b84725/out)
  cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
  CC_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
  CC_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(false)
  CARGO_CFG_TARGET_FEATURE = Some(cmpxchg16b,fxsr,popcnt,sse,sse2,sse3,sse4.1,sse4.2,ssse3)
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
  CFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
  CFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu
  AR_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu
  AR_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_AR
  HOST_AR = None
  cargo:rerun-if-env-changed=AR
  AR = None
  cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu
  ARFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu
  ARFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_ARFLAGS
  HOST_ARFLAGS = None
  cargo:rerun-if-env-changed=ARFLAGS
  ARFLAGS = None
  cargo:rerun-if-env-changed=RANLIB_x86_64-unknown-linux-gnu
  RANLIB_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=RANLIB_x86_64_unknown_linux_gnu
  RANLIB_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_RANLIB
  HOST_RANLIB = None
  cargo:rerun-if-env-changed=RANLIB
  RANLIB = None
  cargo:rerun-if-env-changed=RANLIBFLAGS_x86_64-unknown-linux-gnu
  RANLIBFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=RANLIBFLAGS_x86_64_unknown_linux_gnu
  RANLIBFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_RANLIBFLAGS
  HOST_RANLIBFLAGS = None
  cargo:rerun-if-env-changed=RANLIBFLAGS
  RANLIBFLAGS = None
  running cd "/tmp/cargo-installTUk4uq/release/build/openssl-sys-59f71f1a53b84725/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="cc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/tmp/
cargo-installTUk4uq/release/build/openssl-sys-59f71f1a53b84725/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic"
 "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64"

  --- stderr
  thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-111.26.0+1.1.1u/src/lib.rs:504:39:
  called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
  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 `termscp v0.14.0`, intermediate artifacts can be found at `/tmp/cargo-installTUk4uq`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
veeso commented 2 months ago

Hi,

since we don't provide a package for it, the script will compile it from source, but you're missing either libssl-dev or pkg-config on your system.

der-tkw commented 2 months ago

According to what I have checked, it seems they're both installed:

# sudo dnf install pkg-config
Last metadata expiration check: 0:24:18 ago on Fr 23 Aug 2024 22:15:52 CEST.
Package pkgconf-pkg-config-1.7.3-10.el9.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
# sudo dnf install openssl-devel
Last metadata expiration check: 0:25:19 ago on Fr 23 Aug 2024 22:15:52 CEST.
Package openssl-devel-1:3.0.7-27.el9.0.2.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Any other idea how I could go from here?

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 7 days since being marked as stale.