-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
Use the similar steps(on RHEL 9.3) to build OpenResty on ubi 9.3, but got error like:
==== Successfully installed LuaJIT 2.1.ROLLING to /usr/local/openresty/luajit ====
export LUAJIT_LIB='/openresty/openresty-1.25.3.1/build/luajit-root/usr/local/openresty/luajit/lib'
export LUAJIT_INC='/openresty/openresty-1.25.3.1/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1'
cd ..
patching the resty script with hard-coded nginx binary path...
cd nginx-1.25.3
sh ./configure --prefix=/usr/local/openresty/nginx \
--with-debug \
--with-cc-opt='-DNGX_LUA_USE_ASSERT -DNGX_LUA_ABORT_AT_PANIC -O2 -I/usr/local/include' \
--add-module=../ngx_devel_kit-0.3.3 \
--add-module=../iconv-nginx-module-0.14 \
--add-module=../echo-nginx-module-0.63 \
--add-module=../xss-nginx-module-0.06 \
--add-module=../ngx_coolkit-0.2 \
--add-module=../set-misc-nginx-module-0.33 \
--add-module=../form-input-nginx-module-0.12 \
--add-module=../encrypted-session-nginx-module-0.09 \
--add-module=../srcache-nginx-module-0.33 \
--add-module=../ngx_lua-0.10.26 \
--add-module=../ngx_lua_upstream-0.07 \
--add-module=../headers-more-nginx-module-0.37 \
--add-module=../array-var-nginx-module-0.06 \
--add-module=../memc-nginx-module-0.20 \
--add-module=../redis2-nginx-module-0.15 \
--add-module=../redis-nginx-module-0.3.9 \
--add-module=../rds-json-nginx-module-0.16 \
--add-module=../rds-csv-nginx-module-0.09 \
--add-module=../ngx_stream_lua-0.0.14 \
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -L/usr/local/lib -Wl,-rpath,/usr/local/lib' \
--with-http_ssl_module --with-stream --without-pcre2 --with-stream_ssl_module --with-stream_ssl_preread_module
checking for OS
+ Linux 3.10.0-1160.108.1.el7.s390x s390x
checking for C compiler ... not found
./configure: error: C compiler cc is not found
ERROR: failed to run command: sh ./configure --prefix=/usr/local/openresty/nginx \...
[root@d1ec79fc34d8 /]#
steps to reproduce:
3 wget -q https://raw.githubusercontent.com/linux-on-ibm-z/scripts/master/OpenResty/1.25.3.1/build_openresty.sh
8 yum install -y gcc gcc-c++ gd-devel libxslt-devel gettext make perl perl-ExtUtils-Embed unzip zlib-devel patch git wget
9 yum install ncurses-devel readline -y
10 yum install -y https://rpmfind.net/linux/centos-stream/9-stream/AppStream/s390x/os/Packages/readline-devel-8.1-4.el9.s390x.rpm
11 sed -i '/^prepare/d' build_openresty.sh
12 sed -i 's/curl //g' build_openresty.sh
15 yum install sudo
16 bash build_openresty.sh -y
17 history
Metadata
Metadata
Assignees
Labels
No labels