Dmitry Volyntsev
April 05, 2022 11:40PM
You have to install libreadline for your Linux.

I hope the following or similar command should help:

sudo yum install readline-devel

On 05.04.2022 19:04, 王明君 wrote:
> Thanks for helping me. As you reminded, i found this log:
>
> *checking for GNU readline library ... not found
> checking for editline library in editline/readline.h ... not found
> checking for editline in edit/readline/readline.h ... not found
> checking for editline in readline/readline.h ... not found
> - njs CLI is built without interactive shell support*
>
> So, what can i do to solve this? I'm actually not much experienced
>
> Full configure output:
> -------------------------------------------------
> configuring for Linux 3.10.0-1062.9.1.el7.x86_64 x86_64
> checking for C compiler: cc
> + using GNU C compiler
> + gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
> checking for sizeof(int) ... 4
> checking for sizeof(u_int) ... 4
> checking for sizeof(void *) ... 8
> checking for sizeof(uintptr_t) ... 8
> checking for sizeof(size_t) ... 8
> checking for sizeof(off_t) ... 8
> checking for sizeof(time_t) ... 8
> checking for system byte ordering ... little
> checking for GCC unsigned __int128 ... found
> checking for GCC __builtin_expect() ... found
> checking for GCC __builtin_unreachable() ... found
> checking for GCC __builtin_prefetch() ... found
> checking for GCC __builtin_clz() ... found
> checking for GCC __builtin_clzll() ... found
> checking for GCC __attribute__ visibility ... found
> checking for GCC __attribute__ malloc ... found
> checking for GCC __attribute__ aligned ... found
> checking for GCC __attribute__ packed ... found
> checking for Address sanitizer ... not found
> checking for Memory sanitizer ... not found
> checking for _mm_setcsr() ... found
> checking for clock_gettime(CLOCK_MONOTONIC) ... found
> checking for struct tm.tm_gmtoff ... found
> checking for altzone ... not found
> checking for posix_memalign() ... found
> checking for getrandom() ... not found
> checking for SYS_getrandom in Linux ... found
> checking for stat.st_atimespec ... not found
> checking for stat.st_birthtim ... not found
> checking for stat.st_atim ... found
> checking for explicit_bzero() ... not found
> checking for explicit_memset() ... not found
> checking for PCRE2 library ... not found
> checking for PCRE library ... not found
> checking for PCRE library in /usr ... found
> checking for PCRE version ... 8.32
> checking for GNU readline library ... not found
> checking for editline library in editline/readline.h ... not found
> checking for editline in edit/readline/readline.h ... not found
> checking for editline in readline/readline.h ... not found
> - njs CLI is built without interactive shell support
> checking for OpenSSL library ... not found
> checking for OpenSSL library -lcrypto ... found
> checking for OpenSSL version ... "OpenSSL 1.0.2k-fips  26 Jan 2017"
> creating build/Makefile
> checking for expect ... found
> + Expect version: expect version 5.45
> - expect tests are disabled
>
> NJS configuration summary:
>
> + using CC: "cc"
> + using CFLAGS: " -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra
> -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -O "
>
> + using PCRE library: -lpcre
> + using OpenSSL library: -lcrypto
>
> njs build dir: build
> njs CLI: build/njs
>
>
> 王明君
> wmjhappy_ok@126.com
>
> https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=%E7%8E%8B%E6%98%8E%E5%90%9B&uid=wmjhappy_ok%40126.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fsm169ab9356098976ee9a1ecee61e677f0.jpg&items=%5B%22wmjhappy_ok%40126.com%22%5D
>
> On 4/6/2022 09:51,Dmitry Volyntsev<xeioex@nginx.com>
> <mailto:xeioex@nginx.com> wrote:
>
> Hi,
>
> Please attach the configure output.
>
> If njs CLI was built successfully, but the binary does not work in
> terminal mode. The reason is libreadline was not found during
> configure
> phase.
>
> On 05.04.2022 16:15, 王明君 wrote:
>
> Hi, i'm trying to build only njs command-line utility following
> _http://nginx.org/en/docs/njs/install.html_, but the final njs
> does
> not work as expected. See this mail's attached file to find
> out how i
> was trying.
>
> *uname -a*
> Linux localhost.localdomain 3.10.0-1160.el7.x86_64 #1 SMP Mon
> Oct 19
> 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
>
> *cat os-release*
> NAME="CentOS Linux"
> VERSION="7 (Core)"
> ID="centos"
> ID_LIKE="rhel fedora"
> VERSION_ID="7"
> PRETTY_NAME="CentOS Linux 7 (Core)"
> ANSI_COLOR="0;31"
> CPE_NAME="cpe:/o:centos:centos:7"
> HOME_URL="https://www.centos.org/"
> BUG_REPORT_URL="https://bugs.centos.org/"
>
> CENTOS_MANTISBT_PROJECT="CentOS-7"
> CENTOS_MANTISBT_PROJECT_VERSION="7"
> REDHAT_SUPPORT_PRODUCT="centos"
> REDHAT_SUPPORT_PRODUCT_VERSION="7"
>
>
> _______________________________________________
> nginx mailing list -- nginx@nginx.org
> To unsubscribe send an email to nginx-leave@nginx.org
>
> _______________________________________________
> nginx mailing list -- nginx@nginx.org
> To unsubscribe send an email to nginx-leave@nginx.org
>
>
> _______________________________________________
> nginx mailing list -- nginx@nginx.org
> To unsubscribe send an email to nginx-leave@nginx.org
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Njs Utility not working

王明君 April 05, 2022 07:20PM

Re: Njs Utility not working

Dmitry Volyntsev April 05, 2022 09:52PM

Re: Njs Utility not working

王明君 April 05, 2022 10:10PM

Re: Njs Utility not working

Dmitry Volyntsev April 05, 2022 11:40PM

Re: Njs Utility not working

Tomáš Biloš August 28, 2023 04:21AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 308
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready