zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
23.67k stars 715 forks source link

warning: openssl-sys@0.9.104: configuring OpenSSL build: 'perl' reported failure with exit status: 255 #3742

Open jkemp814 opened 4 months ago

jkemp814 commented 4 months ago

Issue description

Cannot install or compile Zellij using cargo install --locked zellij or cargo install-update -a Receive warning and error:

 --- stderr
  Can't locate IPC/Cmd.pm in @INC (you may need to install the IPC::Cmd module) (@INC entries checked: /tmp/cargo-installv4Y1GH/release/build/openssl-sys-2551d2707942c7da/out/openssl-build/build/src/util/perl /var/home/james/perl5/lib/perl5/x86_64-linux-thread-multi /var/home/james/perl5/lib/perl5 /usr/local/lib64/perl5/5.40 /usr/local/share/perl5/5.40 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /tmp/cargo-installv4Y1GH/release/build/openssl-sys-2551d2707942c7da/out/openssl-build/build/src/external/perl/Text-Template-1.56/lib) at /tmp/cargo-installv4Y1GH/release/build/openssl-sys-2551d2707942c7da/out/openssl-build/build/src/util/perl/OpenSSL/config.pm line 19.
  BEGIN failed--compilation aborted at /tmp/cargo-installv4Y1GH/release/build/openssl-sys-2551d2707942c7da/out/openssl-build/build/src/util/perl/OpenSSL/config.pm line 19.
  Compilation failed in require at ./Configure line 23.
  BEGIN failed--compilation aborted at ./Configure line 23.
  thread 'main' panicked at /var/home/james/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-300.1.6+3.1.4/src/lib.rs:585:9:

  Error configuring OpenSSL build:
      Command: cd "/tmp/cargo-installv4Y1GH/release/build/openssl-sys-2551d2707942c7da/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="cc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/tmp/cargo-installv4Y1GH/release/build/openssl-sys-2551d2707942c7da/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64"
      Exit status: exit status: 2

  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 `zellij v0.41.1`, intermediate artifacts can be found at `/tmp/cargo-installv4Y1GH`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

cargo install-update -a

 running cd "/tmp/cargo-installK0m7U7/release/build/openssl-sys-0f0ac1765f3dbd07/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="cc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/tmp/cargo-installK0m7U7/release/build/openssl-sys-0f0ac1765f3dbd07/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64"
  cargo:warning=configuring OpenSSL build: 'perl' reported failure with exit status: 2
  cargo:warning=openssl-src: failed to build OpenSSL from source

  --- stderr
  Can't locate IPC/Cmd.pm in @INC (you may need to install the IPC::Cmd module) (@INC entries checked: /tmp/cargo-installK0m7U7/release/build/openssl-sys-0f0ac1765f3dbd07/out/openssl-build/build/src/util/perl /var/home/james/perl5/lib/perl5/x86_64-linux-thread-multi /var/home/james/perl5/lib/perl5 /usr/local/lib64/perl5/5.40 /usr/local/share/perl5/5.40 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /tmp/cargo-installK0m7U7/release/build/openssl-sys-0f0ac1765f3dbd07/out/openssl-build/build/src/external/perl/Text-Template-1.56/lib) at /tmp/cargo-installK0m7U7/release/build/openssl-sys-0f0ac1765f3dbd07/out/openssl-build/build/src/util/perl/OpenSSL/config.pm line 19.
  BEGIN failed--compilation aborted at /tmp/cargo-installK0m7U7/release/build/openssl-sys-0f0ac1765f3dbd07/out/openssl-build/build/src/util/perl/OpenSSL/config.pm line 19.
  Compilation failed in require at ./Configure line 23.
  BEGIN failed--compilation aborted at ./Configure line 23.

  Error configuring OpenSSL build:
      'perl' reported failure with exit status: 2
      Command failed: cd "/tmp/cargo-installK0m7U7/release/build/openssl-sys-0f0ac1765f3dbd07/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="cc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/tmp/cargo-installK0m7U7/release/build/openssl-sys-0f0ac1765f3dbd07/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64"

warning: build failed, waiting for other jobs to finish...
error: failed to compile `zellij v0.41.1`, intermediate artifacts can be found at `/tmp/cargo-installK0m7U7`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Updated 0 packages.
Failed to update zellij.
Zykino commented 4 months ago

One of the dependence need openssl. If it is not found on the system, it will compile it. For that it needs perl.

Either one need to be installed on your system. (Or maybe in a folder, and then you can give it’s path to the build toolchain? Don’t ask me how nor quote me on that.)

jkemp814 commented 4 months ago

Must need the path because I have both installed. Including openssl-dev and perl-dev. Zellij is the only package that will not compile.

jkemp814 commented 3 months ago

I have openssl and openssl-devel, perl, perl-devel installed in a toolbox on Fedora Linux 41 and still cannot not get cargo to compile zellij. All path's seem to be set. Does anyone have any other suggestions. I'm stuck on the previous release.

al-tameemi commented 3 months ago

On Fedora 41 with perl-devel and openssl-devel installed, make sure to have the following packages installed as well:

hope this helps :)

And for future reference, if you run cargo install with --verbose, it should tell you specifically why it failed.