LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-15-2018, 12:54 AM   #1
whjeon
Member
 
Registered: Feb 2018
Location: Seoul,South Korea
Distribution: Debian
Posts: 88

Rep: Reputation: Disabled
BLFS-Version8.2-Ch9.-JS-38.2.1 configure:error


Dear My Mentors!
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.
 
Old 04-15-2018, 02:11 AM   #2
whjeon
Member
 
Registered: Feb 2018
Location: Seoul,South Korea
Distribution: Debian
Posts: 88

Original Poster
Rep: Reputation: Disabled
Code:
$export SHELL=/bin/bash
Solved the problem!

Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BLFS 8.1: QT5 configure: dbus not recognized? jr_bob_dobbs Linux From Scratch 5 03-11-2018 03:47 PM
blfs 8.0: configure error for gtk 1 jr_bob_dobbs Linux From Scratch 2 11-05-2017 06:44 PM
configure problem while building qt-x11-free-3.3.3 (BLFS) jomen Linux - Software 9 12-03-2015 04:50 PM
configure error when installing openSSH-6.6p1 in BLFS Carl_cj Linux From Scratch 2 09-25-2014 08:37 AM
configure error: configure: error: cannot execute: /usr/local/bin/arm-apple-darwin-ld GunNam Linux - General 0 10-24-2008 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration