CAIDA / pybgpstream

Python bindings for BGPStream
https://bgpstream.caida.org
BSD 2-Clause "Simplified" License
28 stars 22 forks source link

Can't install on Ubuntu Linux #38

Closed computersarecool closed 3 years ago

computersarecool commented 3 years ago

Here is the outpu from Ubuntu 20.04:

    Running setup.py install for pybgpstream ... error
    ERROR: Command errored out with exit status 1:
     command: /home/user/Documents/projects/real/bgpm/.venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6knal_pj/pybgpstream_51549551afdc4ecc8ecc3aa299fefb56/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6knal_pj/pybgpstream_51549551afdc4ecc8ecc3aa299fefb56/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' build_ext --include-dir=/usr/local/include --library-dir=/usr/local/lib install --record /tmp/pip-record-e8ks3q1e/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/Documents/projects/real/bgpm/.venv/include/site/python3.6/pybgpstream
         cwd: /tmp/pip-install-6knal_pj/pybgpstream_51549551afdc4ecc8ecc3aa299fefb56/
    Complete output (11 lines):
    running build_ext
    building '_pybgpstream' extension
    creating build
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/src
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.6-_AWkrw/python3.6-3.6.11=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/include -I/home/user/Documents/projects/real/bgpm/.venv/include -I/usr/include/python3.6m -c src/_pybgpstream_version.c -o build/temp.linux-x86_64-3.6/src/_pybgpstream_version.o
    src/_pybgpstream_version.c:27:10: fatal error: bgpstream.h: No such file or directory
       27 | #include <bgpstream.h>
          |          ^~~~~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/user/Documents/projects/real/bgpm/.venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6knal_pj/pybgpstream_51549551afdc4ecc8ecc3aa299fefb56/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6knal_pj/pybgpstream_51549551afdc4ecc8ecc3aa299fefb56/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' build_ext --include-dir=/usr/local/include --library-dir=/usr/local/lib install --record /tmp/pip-record-e8ks3q1e/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/Documents/projects/real/bgpm/.venv/include/site/python3.6/pybgpstream Check the logs for full command output.
digizeph commented 3 years ago

Looks like you don't have libbgpstream installed. Here is the instruction: https://bgpstream.caida.org/docs/install/bgpstream

computersarecool commented 3 years ago

Thanks, sorry I missed those directions.