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

Compilation failed on ubuntu22.04 #290

Open
ZxyNull0 opened this issue Nov 24, 2023 · 2 comments
Open

Compilation failed on ubuntu22.04 #290

ZxyNull0 opened this issue Nov 24, 2023 · 2 comments

Comments

@ZxyNull0
Copy link

ZxyNull0 commented Nov 24, 2023

I used the following script to install openresty and add this module, but when executing the make command, an error occurred.

#!/bin/bash
cd /usr/local/src

wget https://openresty.org/download/openresty-1.21.4.2.tar.gz
wget https://github.com/chobits/ngx_http_proxy_connect_module/archive/refs/tags/v0.0.5.tar.gz


tar -xvzf openresty-1.21.4.2.tar.gz
tar -xvzf v0.0.5.tar.gz

apt-get update
apt-get install -y libpcre3 libpcre3-dev
apt-get install -y openssl libssl-dev
apt-get install -y zlib1g zlib1g-dev
apt-get install -y build-essential

cd openresty-1.21.4.2
./configure --prefix=/usr/local/openresty --with-http_ssl_module --with-stream_ssl_module --add-module=/usr/local/src/ngx_http_proxy_connect_module-0.0.5
patch -d build/nginx-1.21.4/ -p 1 < /usr/local/src/ngx_http_proxy_connect_module-0.0.5/patch/proxy_connect_rewrite_102101.patch
make && make install


But it can be successfully installed on ubuntu20.04, and the versions of openssl are all 1.1.1

@chobits
Copy link
Owner

chobits commented Nov 27, 2023

but when executing the make command, an error occurred.

What error message do you get, you can post it here.

@chen-chao
Copy link

chen-chao commented Jan 9, 2024

@ZxyNull0 Perhaps you can try the script provided by docker-nginx. I successfully built the lua-module with ngx_http_proxy_connect_module into a alpine docker based on it: docker-ngx_http_proxy_connect.

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