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

Install on Termux #396

Open
poti1 opened this issue Jun 19, 2022 · 2 comments
Open

Install on Termux #396

poti1 opened this issue Jun 19, 2022 · 2 comments

Comments

@poti1
Copy link

poti1 commented Jun 19, 2022

Can you please update Makefile.PL to be able to install your module on Termux.

It would simply require updating sub find_openssl_prefix to include:

"/data/data/com.termux/files/usr/bin/openssl" => "/data/data/com.termux/files/usr",

(Currently I need to use the OPENSSL_PREFIX environmental variable).

Thanks 😀

@h-vn
Copy link
Contributor

h-vn commented Dec 27, 2022

I was taking a look at this and noticed the following commit:
92a7946

Do you think the hard-coded path you suggest is needed or would the path based on the Perl Config module be enough?

You can see the current value with perl -V | grep config.

@viviparous
Copy link
Contributor

viviparous commented Oct 8, 2023

Maybe a small change to the README is a better solution. As much as I love Perl and think Termux is brilliant, this is a rare combination of language and "OS".

The OP rightly noted that setting the shell variable before installing Net::SSLeay works just fine:

export OPENSSL_PREFIX=/data/data/com.termux/files/usr

The full INCLUDE path in Termux is:
/data/data/com.termux/files/usr/include/openssl/

The logic in Makefile.PL appends include/openssl to the environment variable OPENSSL_PREFIX .
This is documented in the README and in Makefile.PL for Net::SSLeay.

https://github.com/search?q=repo%3Aradiator-software%2Fp5-net-ssleay%20OPENSSL_PREFIX&type=code

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

3 participants