Closed
Description
I'm trying to install https://github.com/pybind/python_example on Ubuntu 16.04, and I receive:
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
None of Google's top suggestions rectified the issue.
Any idea how to resolve?
openstack@prclnx04:~/python/pybind11$ pwd
/home/openstack/python/pybind11
openstack@prclnx04:~/python/pybind11$ git clone https://github.com/pybind/python_example.git
fatal: destination path 'python_example' already exists and is not an empty directory.
openstack@prclnx04:~/python/pybind11$ rm -rf ./python_example/
openstack@prclnx04:~/python/pybind11$ git clone https://github.com/pybind/python_example.git
Cloning into 'python_example'...
remote: Counting objects: 104, done.
remote: Total 104 (delta 0), reused 0 (delta 0), pack-reused 104
Receiving objects: 100% (104/104), 24.70 KiB | 0 bytes/s, done.
Resolving deltas: 100% (48/48), done.
Checking connectivity... done.
openstack@prclnx04:~/python/pybind11$ pip3 install ./python_example/
Processing ./python_example
Requirement already satisfied: pybind11>=1.7 in /usr/local/lib/python2.7/dist-packages/pybind11-2.1.dev0-py2.7.egg (from python-example==0.0.1)
Installing collected packages: python-example
Running setup.py install for python-example ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-zvc86btp-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-zjwl40ws-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
creating tmp
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c /tmp/tmpncjaa8z9.cpp -o tmp/tmpncjaa8z9.o -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c /tmp/tmp4z5uuskd.cpp -o tmp/tmp4z5uuskd.o -fvisibility=hidden
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
building 'python_example' extension
creating build
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/include/python3.5 -I/home/openstack/.local/include/python3.5m -I/usr/include/python3.5m -c src/main.cpp -o build/temp.linux-x86_64-3.5/src/main.o -DVERSION_INFO="0.0.1" -std=c++14 -fvisibility=hidden
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
src/main.cpp:1:31: fatal error: pybind11/pybind11.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-zvc86btp-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-zjwl40ws-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-zvc86btp-build/
openstack@prclnx04:~/python/pybind11$
Metadata
Metadata
Assignees
Labels
No labels