Movatterモバイル変換


[0]ホーム

URL:


leafo.net

My projects

View more →

Recent guides

View all →

Recent posts

Building OpenResty with OpenSSL 1.0

Does your distro include OpenSSL 1.1 by default?

PostedJuly 17, 2017 by leafo (@moonscript) · Tags: openresty, archlinux
Tweet

OpenResty is the platform I use to build all of my web applications. Atthe moment,OpenResty only builds with OpenSSL 1.0, but my distribution(Arch Linux), and maybe yours, has moved to OpenSSL 1.1. With a plain./configure this means that OpenResty will not build.

Here’s how to build it on Arch. It should be easy to adapt to otherdistributions.

Install the OpenSSL 1.0 from the package manager:

pacman -Sy openssl-1.0

Now when building OpenResty you can configure it like this:

./configure --with-cc-opt="-I/usr/include/openssl-1.0" --with-ld-opt="-L/usr/lib/openssl-1.0

Don’t forget to add your other standard configuration options as well

No OpenSSL 1.0 package available

If you don’t have an OpenSSL 1.0 package available in your package manager thenyou can use the--with-openssl=DIR option on the configure script to point toa copy of the source code you can download. OpenSSL will build alongside OpenResty.

You can findolder versions of OpenSSL on their website. You can run something like the following in the OpenResty build directory:

curl -O https://www.openssl.org/source/old/1.0.1/openssl-1.0.1u.tar.gztar xzf openssl-1.0.1u.tar.gz./configure --with-openssl=openssl-1.0.1u
Here are some more guides tagged 'openresty'
PostedSeptember 07, 2017
PostedSeptember 20, 2013

leafo.net · Generated Sun Oct 8 13:02:35 2023 bySitegenmastodon.social/@leafo


[8]ページ先頭

©2009-2025 Movatter.jp