Updating /home/datasc/.pyenv/plugins/pyenv-installer...
From https://github.com/pyenv/pyenv-installer
* branch master -> FETCH_HEAD
Already up-to-date.
Updating /home/datasc/.pyenv/plugins/pyenv-update...
From https://github.com/pyenv/pyenv-update
* branch master -> FETCH_HEAD
Already up-to-date.
Updating /home/datasc/.pyenv/plugins/pyenv-virtualenv...
From https://github.com/pyenv/pyenv-virtualenv
* branch master -> FETCH_HEAD
Already up-to-date.
Updating /home/datasc/.pyenv/plugins/pyenv-which-ext...
From https://github.com/pyenv/pyenv-which-ext
* branch master -> FETCH_HEAD
Already up-to-date.
pyenv install 3.6.4
Downloading Python-3.6.4.tar.xz...
-> https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz
Installing Python-3.6.4...
WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
Please consult to the Wiki page to fix the problem.
https://github.com/pyenv/pyenv/wiki/Common-build-problems
BUILD FAILED (elementary 0.4.1 using python-build 20160602)
Inspect or clean up the working tree at /tmp/python-build.20180316085627.17629
Results logged to /tmp/python-build.20180316085627.17629.log
Last 10 log lines:
install|*) ensurepip="" ;; \
esac; \
./python -E -m ensurepip \
$ensurepip --root=/ ; \
fi
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-9.0.1 setuptools-28.8.0
make[1]: Leaving directory '/tmp/python-build.20180316085627.17629/Python-3.6.4'
Makefile:16: recipe for target 'init' failed
make: *** [init] Error 1
log:
/tmp/python-build.20180316085627.17629 ~/chomper
/tmp/python-build.20180316085627.17629/Python-3.6.4 /tmp/python-build.20180316085627$
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for python3.6... python3.6
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... linux
checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for a sed that does not truncate output... /bin/sed
checking for --with-cxx-main=<compiler>... no
checking for g++... no
configure:
By default, distutils will build C++ extension modules with "g++".
If this is not intended, then set CXX on the configure command line.
checking for the platform triplet based on compiler characteristics... x86_64-linux-$
checking for -Wl,--no-as-needed... yes
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
Any other comments? What have you tried so far?
Run sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev then tried make init again. Another error message was then ouput:
cryptography-2.1.4 enum34-1.1.6 idna-2.6 ipaddress-1.0.19 ordereddict-1.1 pathlib-1.0.1 pip-9.0.1 pipenv-11.8.0 pyOpenSSL-17.5.0 pycparser-2.18 requests-2.18.4 setuptools-38.6.0 six-1.11.0 urllib3-1.22 virtualenv-15.1.0 virtualenv-clone-0.3.0
pipenv install --dev --python 3.6.4 # Install packages
Creating a virtualenv for this project…
Using /home/datasc/anaconda3/bin/python3.6m (3.6.4) to create virtualenv…
⠋Running virtualenv with interpreter /home/datasc/anaconda3/bin/python3.6m
Using base prefix '/home/datasc/anaconda3'
New python executable in /home/datasc/.local/share/virtualenvs/chomper-rKYEYeN9/bin/python3.6m
Also creating executable in /home/datasc/.local/share/virtualenvs/chomper-rKYEYeN9/bin/python
Installing setuptools, pip, wheel...done.
Virtualenv location: /home/datasc/.local/share/virtualenvs/chomper-rKYEYeN9 Installing dependencies from Pipfile.lock (69728f)…
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 45/45 — 00:01:49
To activate this project's virtualenv, run the following:
$ pipenv shell
pipenv run mitmdump & sleep 2 && kill -9 $! # Generate certificates
Proxy server listening at http://*:8080
openssl x509 -outform der -in /home/datasc/.mitmproxy/mitmproxy-ca.pem -out /home/datasc/.mitmproxy/mitmproxy-ca.crt
sudo cp /home/datasc/.mitmproxy/mitmproxy-ca.crt /usr/local/share/ca-certificates/mitmproxy-ca.crt # Install root certificates
sudo update-ca-certificates
Updating certificates in /etc/ssl/certs...
WARNING: mitmproxy-ca.pem does not contain a certificate or CRL: skipping
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
Adding debian:mitmproxy-ca.pem
done.
done.
sudo sh ./chomper/certs.sh # Make browsers recognize root certificates
./chomper/certs.sh: 32: ./chomper/certs.sh: certutil: not found
./chomper/certs.sh: 43: ./chomper/certs.sh: certutil: not found
./chomper/certs.sh: 43: ./chomper/certs.sh: certutil: not found
./chomper/certs.sh: 43: ./chomper/certs.sh: certutil: not found
Makefile:16: recipe for target 'init' failed
make: *** [init] Error 127
Steps to reproduce the problem:
git clone https://github.com/aniketpanjwani/chomper.git
cd chomper
make init
Results:
log:
Any other comments? What have you tried so far?
Run
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev
then triedmake init
again. Another error message was then ouput:System information
Distro: 16.04.1-Ubuntu Kernel: 4.13.0-37-generic x86_64