Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

"configure: error: cannot determine icu version number from uvernum.h header file" when try to configure SpiderMonkey

more options

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

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

Ausgewählte Lösung

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.

Diese Antwort im Kontext lesen 👍 0

Alle Antworten (2)

more options

Ausgewählte Lösung

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.

Geändert am von Sourav

more options

thx,it help me