I am trying to install turbodbc with pip but I am getting the following error
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -Iinclude/ -I/home/ayadav28/.local/lib/python3.7/site-packages/pybind11/include -I/usr/include/python3.7m -c src/turbodbc_python/determine_parameter_type.cpp -o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/determine_parameter_type.o --std=c++11 -fvisibility=hidden
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -Iinclude/ -I/home/ayadav28/.local/lib/python3.7/site-packages/pybind11/include -I/usr/include/python3.7m -c src/turbodbc_python/python_bindings/buffer_size.cpp -o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/buffer_size.o --std=c++11 -fvisibility=hidden
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -Iinclude/ -I/home/ayadav28/.local/lib/python3.7/site-packages/pybind11/include -I/usr/include/python3.7m -c src/turbodbc_python/python_bindings/column_info.cpp -o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/column_info.o --std=c++11 -fvisibility=hidden
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -Iinclude/ -I/home/ayadav28/.local/lib/python3.7/site-packages/pybind11/include -I/usr/include/python3.7m -c src/turbodbc_python/python_bindings/connect.cpp -o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/connect.o --std=c++11 -fvisibility=hidden
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -Iinclude/ -I/home/ayadav28/.local/lib/python3.7/site-packages/pybind11/include -I/usr/include/python3.7m -c src/turbodbc_python/python_bindings/connection.cpp -o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/connection.o --std=c++11 -fvisibility=hidden
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -Iinclude/ -I/home/ayadav28/.local/lib/python3.7/site-packages/pybind11/include -I/usr/include/python3.7m -c src/turbodbc_python/python_bindings/cursor.cpp -o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/cursor.o --std=c++11 -fvisibility=hidden
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -Iinclude/ -I/home/ayadav28/.local/lib/python3.7/site-packages/pybind11/include -I/usr/include/python3.7m -c src/turbodbc_python/python_bindings/error.cpp -o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/error.o --std=c++11 -fvisibility=hidden
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -Iinclude/ -I/home/ayadav28/.local/lib/python3.7/site-packages/pybind11/include -I/usr/include/python3.7m -c src/turbodbc_python/python_bindings/module.cpp -o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/module.o --std=c++11 -fvisibility=hidden
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -Iinclude/ -I/home/ayadav28/.local/lib/python3.7/site-packages/pybind11/include -I/usr/include/python3.7m -c src/turbodbc_python/python_bindings/options.cpp -o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/options.o --std=c++11 -fvisibility=hidden
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -Iinclude/ -I/home/ayadav28/.local/lib/python3.7/site-packages/pybind11/include -I/usr/include/python3.7m -c src/turbodbc_python/python_bindings/python_parameter_set.cpp -o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/python_parameter_set.o --std=c++11 -fvisibility=hidden
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -Iinclude/ -I/home/ayadav28/.local/lib/python3.7/site-packages/pybind11/include -I/usr/include/python3.7m -c src/turbodbc_python/python_bindings/python_result_set.cpp -o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/python_result_set.o --std=c++11 -fvisibility=hidden
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -Iinclude/ -I/home/ayadav28/.local/lib/python3.7/site-packages/pybind11/include -I/usr/include/python3.7m -c src/turbodbc_python/python_parameter_set.cpp -o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_parameter_set.o --std=c++11 -fvisibility=hidden
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -flto -fuse-linker-plugin -ffat-lto-objects -fPIC -Iinclude/ -I/home/ayadav28/.local/lib/python3.7/site-packages/pybind11/include -I/usr/include/python3.7m -c src/turbodbc_python/python_result_set.cpp -o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_result_set.o --std=c++11 -fvisibility=hidden
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-cpython-37/src/turbodbc_python/determine_parameter_type.o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/buffer_size.o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/column_info.o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/connect.o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/connection.o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/cursor.o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/error.o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/module.o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/options.o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/python_parameter_set.o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_bindings/python_result_set.o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_parameter_set.o build/temp.linux-x86_64-cpython-37/src/turbodbc_python/python_result_set.o -Lbuild/lib.linux-x86_64-3.7 -L/usr/lib -lodbc -lturbodbc.cpython-37m-x86_64-linux-gnu -o build/lib.linux-x86_64-cpython-37/turbodbc_intern.cpython-37m-x86_64-linux-gnu.so -Wl,-rpath,$ORIGIN
/usr/bin/ld: cannot find -lturbodbc.cpython-37m-x86_64-linux-gnu
collect2: error: ld returned 1 exit status
error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> turbodbc
I already installed libboost and other required packages:
sudo apt-get install -y python3-dev default-libmysqlclient-dev build-essential unixodbc-dev libboost-all-dev
but the issue still persists, any idea what I might be missing?
Pip is a package installer and manager, and the wheel is a way that pip prefers to install packages because the wheel allows fast and efficient installations and are smaller in comparison to eggs. Hence upgrading wheels might also solve the problem of ‘error: legacy-install-failure.’ The setup tools enhance the over-installation by enhancing the python standard library distribution utilities. Therefore if you update these modules, it might solve your error because this error can also arise if one of these modules is not up-to-date. Let us see how we can upgrade these modules.
python - m pip install – upgrade pip
Then upgrade your wheel by using:
pip install - upgrade wheel
Then finally upgrade the setup tools.
pip install - upgrade setuptools
Now, again try to install the package which was throwing error in the first place.
Having the same error and situation as this question however none of those answer solve the issue.
I had tried other solution that wasnt in the post such as: reinstall snmp, upgrade python3-devel version as the repo allow, directly download and install snmp from their website and still no avail
This is the dependencies i had installed
gcc.x86_64 8.5.0-10.1.el8_6 #rhel-8-for-x86_64-appstream-rpms
python-rpm-macros.noarch 3-41.el8 #rhel-8-for-x86_64-appstream-rpms
python-srpm-macros.noarch 3-41.el8 #rhel-8-for-x86_64-appstream-rpms
python3-audit.x86_64 3.0-0.17.20191104git1c2f876.el8 #System
python3-babel.noarch 2.5.1-5.el8 #System
python3-cairo.x86_64 1.16.3-6.el8 #System
python3-cffi.x86_64 1.11.5-5.el8 #System
python3-chardet.noarch 3.0.4-7.el8 #System
python3-configobj.noarch 5.0.6-11.el8 #System
python3-cryptography.x86_64 3.2.1-4.el8 #System
python3-dateutil.noarch 1:2.6.1-6.el8 #System
python3-dbus.x86_64 1.2.4-15.el8 #System
python3-decorator.noarch 4.2.1-2.el8 #System
python3-dmidecode.x86_64 3.12.2-15.el8 #System
python3-dnf.noarch 4.7.0-8.el8 #rhel-8-for-x86_64-baseos-rpms
python3-dnf-plugins-core.noarch 4.0.21-11.el8 #rhel-8-for-x86_64-baseos-rpms
python3-ethtool.x86_64 0.14-3.el8 #System
python3-gobject.x86_64 3.28.3-2.el8 #System
python3-gobject-base.x86_64 3.28.3-2.el8 #System
python3-gpg.x86_64 1.13.1-7.el8 #System
python3-hawkey.x86_64 0.63.0-8.el8 #rhel-8-for-x86_64-baseos-rpms
python3-idna.noarch 2.5-5.el8 #System
python3-iniparse.noarch 0.4-31.el8 #System
python3-inotify.noarch 0.9.6-13.el8 #System
python3-jinja2.noarch 2.10.1-2.el8_0 #System
python3-jsonpatch.noarch 1.21-2.el8 #System
python3-jsonpointer.noarch 1.10-11.el8 #System
python3-jsonschema.noarch 2.6.0-4.el8 #System
python3-jwt.noarch 1.6.1-2.el8 #System
python3-libcomps.x86_64 0.1.11-5.el8 #System
python3-libdnf.x86_64 0.63.0-8.el8 #rhel-8-for-x86_64-baseos-rpms
python3-librepo.x86_64 1.14.2-1.el8 #rhel-8-for-x86_64-baseos-rpms
python3-libs.x86_64 3.6.8-37.el8 #System
python3-libselinux.x86_64 2.9-5.el8 #System
python3-libsemanage.x86_64 2.9-6.el8 #System
python3-libxml2.x86_64 2.9.7-9.el8 #System
python3-linux-procfs.noarch 0.6.3-1.el8 #System
python3-magic.noarch 5.33-16.el8_3.1 #System
python3-markupsafe.x86_64 0.23-19.el8 #System
python3-oauthlib.noarch 2.1.0-1.el8 #System
python3-perf.x86_64 4.18.0-305.el8 #System
python3-pexpect.noarch 4.3.1-3.el8 #System
python3-pip.noarch 9.0.3-22.el8 #rhel-8-for-x86_64-appstream-rpms
python3-pip-wheel.noarch 9.0.3-19.el8 #System
python3-ply.noarch 3.9-9.el8 #System
python3-policycoreutils.noarch 2.9-14.el8 #System
python3-prettytable.noarch 0.7.2-14.el8 #System
python3-psycopg2.x86_64 2.7.5-7.el8 #rhel-8-for-x86_64-appstream-rpms
python3-ptyprocess.noarch 0.5.2-4.el8 #System
python3-pycparser.noarch 2.14-14.el8 #System
python3-pydbus.noarch 0.6.0-5.el8 #System
python3-pyserial.noarch 3.1.1-8.el8 #System
python3-pysocks.noarch 1.6.8-3.el8 #System
python3-pytz.noarch 2017.2-9.el8 #System
python3-pyudev.noarch 0.21.0-7.el8 #System
python3-pyyaml.x86_64 3.12-12.el8 #System
python3-requests.noarch 2.20.0-2.1.el8_1 #System
python3-rpm.x86_64 4.14.3-13.el8 #System
python3-rpm-generators.noarch 5-7.el8 #rhel-8-for-x86_64-appstream-rpms
python3-rpm-macros.noarch 3-41.el8 #rhel-8-for-x86_64-appstream-rpms
python3-schedutils.x86_64 0.6-6.el8 #System
python3-setools.x86_64 4.3.0-2.el8 #System
python3-setuptools.noarch 39.2.0-6.el8 #rhel-8-for-x86_64-baseos-rpms
python3-setuptools-wheel.noarch 39.2.0-6.el8 #System
python3-six.noarch 1.11.0-8.el8 #System
python3-slip.noarch 0.6.4-11.el8 #System
python3-slip-dbus.noarch 0.6.4-11.el8 #System
python3-subscription-manager-rhsm.x86_64 1.28.13-2.el8 #System
python3-syspurpose.x86_64 1.28.13-2.el8 #System
python3-systemd.x86_64 234-8.el8 #System
python3-unbound.x86_64 1.7.3-15.el8 #System
python3-urllib3.noarch 1.24.2-5.el8 #System
python3-wheel.noarch 1:0.31.1-3.module+el8.5.0+12207+5c5719bc #rhel-8-for-x86_64-appstream-rpms
python36.x86_64 3.6.8-38.module+el8.5.0+12207+5c5719bc #rhel-8-for-x86_64-appstream-rpms
python36-devel.x86_64 3.6.8-38.module+el8.5.0+12207+5c5719bc #rhel-8-for-x86_64-appstream-rpms
net-snmp.x86_64 1:5.8-25.el8 #rhel-8-for-x86_64-appstream-rpms
net-snmp-agent-libs.x86_64 1:5.8-25.el8 #rhel-8-for-x86_64-appstream-rpms
net-snmp-libs.x86_64 1:5.8-25.el8 #rhel-8-for-x86_64-baseos-rpms
net-snmp-utils.x86_64 1:5.8-25.el8 #rhel-8-for-x86_64-appstream-rpms
However when i install net-snmp
[root#testhost ~]# pip3 install netsnmp-py
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting netsnmp-py
Downloading https://files.pythonhosted.org/packages/da/1d/cdc68b9956ccae7f52633ac201d317c83768faecf04f724d499f9ef09856/netsnmp-py-0.5.2.tar.gz
Building wheels for collected packages: netsnmp-py
Running setup.py bdist_wheel for netsnmp-py ... error
Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gbflqhm7/netsnmp-py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpr_t0q6ncpip-wheel- --python-tag cp36:
/bin/sh: net-snmp-config: command not found
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/netsnmp
copying netsnmp/_hex.py -> build/lib.linux-x86_64-3.6/netsnmp
copying netsnmp/__main__.py -> build/lib.linux-x86_64-3.6/netsnmp
copying netsnmp/__init__.py -> build/lib.linux-x86_64-3.6/netsnmp
creating build/lib.linux-x86_64-3.6/netsnmp/_dev
copying netsnmp/_dev/arris.py -> build/lib.linux-x86_64-3.6/netsnmp/_dev
copying netsnmp/_dev/technicolor.py -> build/lib.linux-x86_64-3.6/netsnmp/_dev
copying netsnmp/_dev/cisco.py -> build/lib.linux-x86_64-3.6/netsnmp/_dev
copying netsnmp/_dev/__init__.py -> build/lib.linux-x86_64-3.6/netsnmp/_dev
running build_ext
building 'netsnmp._api' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/netsnmp
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I./netsnmp -I/usr/include/python3.6m -c netsnmp/session.c -o build/temp.linux-x86_64-3.6/netsnmp/session.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I./netsnmp -I/usr/include/python3.6m -c netsnmp/get.c -o build/temp.linux-x86_64-3.6/netsnmp/get.o
netsnmp/get.c: In function ‘get’:
netsnmp/get.c:26:13: warning: unused variable ‘oidstr’ [-Wunused-variable]
PyObject *oidstr;
^~~~~~
netsnmp/get.c:24:13: warning: unused variable ‘oids_iter’ [-Wunused-variable]
PyObject *oids_iter;
^~~~~~~~~
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I./netsnmp -I/usr/include/python3.6m -c netsnmp/get_async.c -o build/temp.linux-x86_64-3.6/netsnmp/get_async.o
netsnmp/get_async.c:8:10: fatal error: zmq.h: No such file or directory
#include <zmq.h>
^~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for netsnmp-py
Running setup.py clean for netsnmp-py
Failed to build netsnmp-py
Installing collected packages: netsnmp-py
Running setup.py install for netsnmp-py ... error
Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gbflqhm7/netsnmp-py/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-q2mwpx0e-record/install-record.txt --single-version-externally-managed --compile:
/bin/sh: net-snmp-config: command not found
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/netsnmp
copying netsnmp/_hex.py -> build/lib.linux-x86_64-3.6/netsnmp
copying netsnmp/__main__.py -> build/lib.linux-x86_64-3.6/netsnmp
copying netsnmp/__init__.py -> build/lib.linux-x86_64-3.6/netsnmp
creating build/lib.linux-x86_64-3.6/netsnmp/_dev
copying netsnmp/_dev/arris.py -> build/lib.linux-x86_64-3.6/netsnmp/_dev
copying netsnmp/_dev/technicolor.py -> build/lib.linux-x86_64-3.6/netsnmp/_dev
copying netsnmp/_dev/cisco.py -> build/lib.linux-x86_64-3.6/netsnmp/_dev
copying netsnmp/_dev/__init__.py -> build/lib.linux-x86_64-3.6/netsnmp/_dev
running build_ext
building 'netsnmp._api' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/netsnmp
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I./netsnmp -I/usr/include/python3.6m -c netsnmp/session.c -o build/temp.linux-x86_64-3.6/netsnmp/session.o
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I./netsnmp -I/usr/include/python3.6m -c netsnmp/get.c -o build/temp.linux-x86_64-3.6/netsnmp/get.o
netsnmp/get.c: In function ‘get’:
netsnmp/get.c:26:13: warning: unused variable ‘oidstr’ [-Wunused-variable]
PyObject *oidstr;
^~~~~~
netsnmp/get.c:24:13: warning: unused variable ‘oids_iter’ [-Wunused-variable]
PyObject *oids_iter;
^~~~~~~~~
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I./netsnmp -I/usr/include/python3.6m -c netsnmp/get_async.c -o build/temp.linux-x86_64-3.6/netsnmp/get_async.o
netsnmp/get_async.c:8:10: fatal error: zmq.h: No such file or directory
#include <zmq.h>
^~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gbflqhm7/netsnmp-py/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-q2mwpx0e-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-gbflqhm7/netsnmp-py/
is there any dependencies I miss or this is a known issue in Rhel 8?
I need help fixing this. I have pillow 7.0.0 installed but it is not accessible in my virtual environment. Trying to install using pip install pillow in the virtual env throws the error below. Can someone shed some light on how to fix this?
Collecting pillow
Using cached Pillow-9.1.0.tar.gz (49.8 MB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pillow
Building wheel for pillow (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [156 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
...
x86_64-linux-gnu-gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION=\"9.1.0\" -I/tmp/pip-install-dxz6gg5z/pillow_5c0ecf282df741a599c5f2ec14a30181 -I/usr/local/include -I/usr/include -I/home/onah/PycharmProjects/ecommerce/venv/include -I/usr/include/python3.11 -c src/_imaging.c -o build/temp.linux-x86_64-cpython-311/src/_imaging.o
x86_64-linux-gnu-gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/tmp/pip-install-dxz6gg5z/pillow_5c0ecf282df741a599c5f2ec14a30181 -I/usr/local/include -I/usr/include -I/home/onah/PycharmProjects/ecommerce/venv/include -I/usr/include/python3.11 -c src/_imagingmorph.c -o build/temp.linux-x86_64-cpython-311/src/_imagingmorph.o
I am trying to install the tm package in R but this depends on a package slam which I am having trouble installing. The error attached below cannot find -lRblas. What do I need to install on my distro so that I get this library?
Error Message
install.packages("slam")
Installing package into ‘/home/eroche/R/x86_64-redhat-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/slam_0.1-32.tar.gz'
Content type 'application/x-gzip' length 46672 bytes (45 Kb)
opened URL
==================================================
downloaded 45 Kb
* installing *source* package ‘slam’ ...
** package ‘slam’ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c apply.c -o apply.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c grouped.c -o grouped.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c sparse.c -o sparse.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c util.c -o util.o
gcc -m64 -std=gnu99 -shared -Wl,-z,relro -o slam.so apply.o grouped.o sparse.o util.o -L/usr/lib64/R/lib -lRblas -lgfortran -lm -lquadmath -L/usr/lib64/R/lib -lR
/usr/bin/ld: cannot find -lRblas
collect2: error: ld returned 1 exit status
make: *** [slam.so] Error 1
ERROR: compilation failed for package ‘slam’
* removing ‘/home/eroche/R/x86_64-redhat-linux-gnu-library/3.1/slam’
Warning in install.packages :
installation of package ‘slam’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpGsb0e4/downloaded_packages’
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-redhat-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_IE.UTF-8 LC_NUMERIC=C LC_TIME=en_IE.UTF-8 LC_COLLATE=en_IE.UTF-8 LC_MONETARY=en_IE.UTF-8
[6] LC_MESSAGES=en_IE.UTF-8 LC_PAPER=en_IE.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_IE.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.1.1
Please try to install BLAS math libraries with following command.
yum install blas-devel
Then you should try to reinstall slam.
I'm getting the following error when I try to install mod_wsgi
./configure
checking for apxs2... no
checking for apxs... /usr/sbin/apxs
checking Apache version... 2.2.3
configure: creating ./config.status
config.status: creating Makefile
make
/usr/sbin/apxs -c -I/usr/local/include/python2.6 -DNDEBUG mod_wsgi.c -L/usr/local/lib -L/usr/local/lib/python2.6/config -lpython2.6 -lpthread -ldl -lutil -lm
/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/local/include/python2.6 -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
sh: /apr-1/build/libtool: No such file or directory
apxs:Error: Command failed with rc=8323072
.
make: *** [mod_wsgi.la] Error 1
libtool is installed on my system..
mod_wsgi 3.2
****Apache 2.2****
****Python 2.6****
You're possibly missing apr development files. Depending on your distribution check your package manager for 'apr'. On ubuntu it might be 'libaprutil1-dev'.