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

openssl: cannot find perl #24019

Open
TheClonerx opened this issue May 17, 2024 · 1 comment
Open

openssl: cannot find perl #24019

TheClonerx opened this issue May 17, 2024 · 1 comment

Comments

@TheClonerx
Copy link
Contributor

despite openssl requiring perl in order to build, it is not specified in the recipe's tool_requirements.
while some distribution (such as debian & archlinux) do provide perl while installing cmake, gcc, and make, others such as fedora don't.
the docs mention that only cmake is assumed to be installed: https://github.com/conan-io/conan-center-index/blob/master/docs/adding_packages/dependencies.md#build-requirements

to reproduce:

podman run --rm -it fedora
dnf install gcc g++ cmake conan
conan profile detect
# might need to add gcc 14 to ~/.conan2/settings.yml
conan install --requires "openssl/[*]" -b missing

# ...

openssl/3.2.1: Generating aggregated env files
openssl/3.2.1: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
openssl/3.2.1: Calling build()
openssl/3.2.1: apply_conandata_patches(): No patches defined in conandata
openssl/3.2.1: RUN: perl ./Configure "conan-Release-Linux-x86_64-gcc-14" no-shared --prefix=/ --libdir=lib --openssldir="/etc/ssl" no-unit-test threads PERL=perl no-tests --release -fPIC enable-fips no-md2 zlib --with-zlib-include="/root/.conan2/p/b/zlibaac6682b97598/p/include" --with-zlib-lib="/root/.conan2/p/b/zlibaac6682b97598/p/lib"
/bin/sh: line 1: perl: command not found

openssl/3.2.1: ERROR:
Package '2ead4b5224b22aa6d964443cf39c8659bea28efd' build failed
openssl/3.2.1: WARN: Build folder /root/.conan2/p/b/opens2a80818cf07f4/b/build-release
ERROR: openssl/3.2.1: Error in build() method, line 533
        self._make()
while calling '_make', line 520
        self.run("{perl} ./Configure {args}".format(perl=self._perl, args=args), env="conanbuild")
        ConanException: Error 127 while executing

of course could be easily solved by just installing perl through the system package manager, but in some situations one does not have root access to do such thing.

@SpaceIm
Copy link
Contributor

SpaceIm commented May 19, 2024

Indeed, but there is no perl recipe in conan-center (only strawberryperl recipe for Windows). One could create such recipe. Source code of 5.38.2: https://www.cpan.org/src/5.0/perl-5.38.2.tar.gz

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

No branches or pull requests

2 participants