Closed akarX23 closed 1 year ago
I have an Ubuntu 22.04 with Intel 4xx hardware. I have installed the QAT Hardware 2.0 along with Openssl 3.0, QAT_Engine for Openssl, and QATzip.
NGINX installs without any issues. But when I run the tests using nginx-test.sh qat or nginx-test.sh dasync I am getting an error.
nginx-test.sh qat
nginx-test.sh dasync
Command used to run the test:
NGINX_SRC_DIR=/home/ritik-intel/QAT-Scripts/NGINX-QAT NGINX_INSTALL_DIR=/Nginx OPENSSL_ROOT=/home/ritik-intel/QAT-Scripts/openssl-git OPENSSL_LIB=/Openssl QZ_ROOT=/home/ritik-intel/QAT-Scripts/QATzip test/nginx-test.sh qat
Output:
x86_64-linux-gnu-gcc -c -I ../../../../../src/core -I ../../../../../src/event -I ../../../../../src/event/modules -I ../../../../../src/engine -I ../../../../../src/engine/modules -I ../../../../../src/os/unix -I /usr/include/libxml2 -I ../../../../../objs -I ../../../../../src/http -I ../../../../../src/http/modules -I ../../../../../src/http/v2 -I ../../../../../src/http/modules/perl -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/x86_64-linux-gnu/perl/5.34/CORE -g -DNGX_SECURE_MEM -DNGX_INTEL_SDL -I/Openssl/include -I/QAT-Driver/quickassist/include -I/QAT-Driver/quickassist/include/dc -I/home/ritik-intel/QAT-Scripts/QATzip/include -Wno-error=deprecated-declarations -O -DVERSION=\"1.22.1\" -DXS_VERSION=\"1.22.1\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.34/CORE" nginx.c cc -o objs/ngx_http_qatzip_filter_module.so \ objs/addon/nginx_qatzip_module/ngx_http_qatzip_filter_module.o \ objs/ngx_http_qatzip_filter_module_modules.o \ -Wl,-rpath=/Openssl/lib64 -L/Openssl/lib64 -L/home/ritik-intel/QAT-Scripts/QATzip/src -lqatzip -lz \ -z noexecstack -z relro -z now -pie -Wl,-E -fstack-protector-strong -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu/perl/5.34/CORE -lperl -ldl -lm -lpthread -lc -lcrypt \ -shared /usr/bin/ld: cannot find -lperl: No such file or directory collect2: error: ld returned 1 exit status make[1]: *** [objs/Makefile:1904: objs/ngx_http_qatzip_filter_module.so] Error 1 make[1]: *** Waiting for unfinished jobs.... rm -f blib/arch/a ... /usr/bin/ld: cannot find -lperl: No such file or directory collect2: error: ld returned 1 exit status make[1]: *** [objs/Makefile:1904: objs/ngx_http_qatzip_filter_module.so] Error 1 make[1]: *** Waiting for unfinished jobs.... rm -f blib/arch/auto/nginx/nginx.so x86_64-linux-gnu-gcc -Wl,-rpath=/Openssl/lib64 -L/Openssl/lib64 -L/home/ritik-intel/QAT-Scripts/QATzip/src -lqatzip -lz -shared -L/usr/local/lib -fstack-protector-strong nginx.o -o blib/arch/auto/nginx/nginx.so \ \ chmod 755 blib/arch/auto/nginx/nginx.so Manifying 1 pod document make[2]: Leaving directory '/home/ritik-intel/QAT-Scripts/NGINX-QAT/objs/src/http/modules/perl' rm -rf objs/install_perl make[1]: Leaving directory '/home/ritik-intel/QAT-Scripts/NGINX-QAT' make: *** [Makefile:10: build] Error 2 cp: cannot stat '/home/ritik-intel/QAT-Scripts/NGINX-QAT/objs/ngx_ssl_engine_qat_module.so': No such file or directory cp: cannot stat '/home/ritik-intel/QAT-Scripts/NGINX-QAT/objs/ngx_http_qatzip_filter_module.so': No such file or directory case /home/ritik-intel/QAT-Scripts/NGINX-QAT/test/nginx-tests/not_modified.t failed Nginx Official Test RESULT:FAIL
Specifically, the issue is here:
/usr/bin/ld: cannot find -lperl: No such file or directory
Please let me know how I can proceed.
Hi, The file libperl.so cannot been found, the file path in my system (RHEL) is /lib64/libperl.so, provides by perl-devel.
Environment
I have an Ubuntu 22.04 with Intel 4xx hardware. I have installed the QAT Hardware 2.0 along with Openssl 3.0, QAT_Engine for Openssl, and QATzip.
Problem
NGINX installs without any issues. But when I run the tests using
nginx-test.sh qat
ornginx-test.sh dasync
I am getting an error.Command used to run the test:
Output:
Specifically, the issue is here:
Please let me know how I can proceed.