LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   BLFS-Version8.2-Ch9.-JS-38.2.1 configure:error (https://www.linuxquestions.org/questions/linux-from-scratch-13/blfs-version8-2-ch9-js-38-2-1-configure-error-4175627690/)

anon297 04-15-2018 12:54 AM

BLFS-Version8.2-Ch9.-JS-38.2.1 configure:error
 
Dear My Mentors!:newbie:
I'm building BLFS and finally got an error.
with Mozjs tarball there is an error log saying
"Python environment does not appear to be sane."

1) Searched for google, and there are too little resources to solve this.

2) Dependencies on the books are all installed.
except optional Doxygen.
Installed packages didn't complained anything while installing.

Below is exact terminal output.
Please help me! Thanks for reading!



Code:

cd js/src &&
> autoconf2.13 &&
>
> ./configure --prefix=/usr      \
>            --with-intl-api    \
>            --with-system-zlib  \
>            --with-system-ffi  \
>            --with-system-nspr  \
>            --with-system-icu  \
>            --enable-threadsafe \
>            --enable-readline  &&
> make
creating cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for mawk... no
checking for gawk... gawk
checking for perl5... no
checking for perl... /usr/bin/perl
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for ranlib... ranlib
checking for as... /usr/bin/as
checking for ar... ar
checking for ld... ld
checking for strip... strip
checking for windres... no
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... c++ -E
checking for sb-conf... no
checking for ve... no
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for tar archiver... checking for gnutar... no
checking for gtar... no
checking for tar... tar
tar
checking for minimum required perl version >= 5.006... 5.026001
checking for full perl installation... yes
checking for python2.7... /usr/bin/python2.7
Creating Python environment
New python executable in /sources/mozjs-38.0.0/js/src/_virtualenv/bin/python2.7
Also creating executable in /sources/mozjs-38.0.0/js/src/_virtualenv/bin/python
Installing setuptools, pip...done.
running build_ext
building '_psutil_linux' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/psutil
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
creating build/lib.linux-x86_64-2.7
gcc -pthread -shared build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o -L/usr/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/_psutil_linux.so
building '_psutil_posix' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o -L/usr/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/_psutil_posix.so
copying build/lib.linux-x86_64-2.7/_psutil_linux.so ->
copying build/lib.linux-x86_64-2.7/_psutil_posix.so ->

checking Python environment is Mozilla virtualenv... Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/sources/mozjs-38.0.0/python/mozbuild/mozbuild/base.py", line 17, in <module>
    from mach.mixin.process import ProcessExecutionMixin
  File "/sources/mozjs-38.0.0/python/mach/mach/mixin/process.py", line 29, in <module>
    raise Exception('Could not detect environment shell!')
Exception: Could not detect environment shell!
configure: error: Python environment does not appear to be sane.
------ config.log ------
configure:3116:1: warning: incompatible implicit declaration of built-in function 'exit'
configure:3116:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
configure:3139: checking for ranlib
configure:3171: checking for as
configure:3225: checking for ar
configure:3260: checking for ld
configure:3295: checking for strip
configure:3330: checking for windres
configure:3946: checking how to run the C preprocessor
configure:3967: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4026: checking how to run the C++ preprocessor
configure:4044: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:4166: checking for sb-conf
configure:4166: checking for ve
configure:4228: checking for a BSD compatible install
configure:4281: checking whether ln -s works
configure:4303: checking for tar archiver
configure:4309: checking for gnutar
configure:4309: checking for gtar
configure:4309: checking for tar
configure:4346: checking for minimum required perl version >= 5.006
configure:4356: checking for full perl installation
configure:4374: checking for python2.7
configure:4484: checking Python environment is Mozilla virtualenv
configure: error: Python environment does not appear to be sane.


anon297 04-15-2018 02:11 AM

Code:

$export SHELL=/bin/bash
Solved the problem!

Thanks!


All times are GMT -5. The time now is 06:19 PM.