"configure: error: cannot determine icu version number from uvernum.h header file" when try to configure SpiderMonkey
Hi, whenever I try to compile the SpiderMonkey I get an error:
configure:15502: gcc -o conftest -Wall -Wsign-compare -Wtype-limits -Wno-unused -Wcast-align -std=gnu99 -fgnu89-inline -fno-math-errno -pthread -pipe -lpthread -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id -B /home/sourav/Downloads/js/mozjs-45.0.2/js/src/build_OPT.OBJ/build/unix/gold conftest.c -lm -ldl 1>&5 configure:15470: checking for posix_fallocate configure:15502: gcc -o conftest -Wall -Wsign-compare -Wtype-limits -Wno-unused -Wcast-align -std=gnu99 -fgnu89-inline -fno-math-errno -pthread -pipe -lpthread -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id -B /home/sourav/Downloads/js/mozjs-45.0.2/js/src/build_OPT.OBJ/build/unix/gold conftest.c -lm -ldl 1>&5 configure: error: cannot determine icu version number from uvernum.h header file
System (cat /proc/version): Linux version 5.3.7-arch1-2-ARCH (linux@archlinux) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT @1572002934
ICU Version (icu-config --version): 64.0
Chosen solution
Downloaded version 45.0.2.
That was an Error on line 15,810: version=`sed -n 's/^[:space:]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/\1/p' "$icudir/common/unicode/uvernum.h"`
The sed expression should be [[:space:]] instead of [:space:]
Thanks, it's now working after editing the line.
Skaityti atsakymą kartu su kontekstu 👍 0All Replies (2)
Chosen Solution
Downloaded version 45.0.2.
That was an Error on line 15,810: version=`sed -n 's/^[:space:]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/\1/p' "$icudir/common/unicode/uvernum.h"`
The sed expression should be [[:space:]] instead of [:space:]
Thanks, it's now working after editing the line.
Modified
thx,it help me