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.
I have been trying to install quickfix on both my Windows Machine and CentOs VM with no luck.
-> Attempt in Windows 10:
Installed the wheel file successfully from https://www.lfd.uci.edu/~gohlke/pythonlibs/#quickfix
Checked the versions of python and architecture prior to selecting the wheel file, was able to install with no issues. When I started up python at the command prompt and ran help("modules"), I am able to see that quickfix (and all the versions are installed).
C:\Users\NickN\Downloads>python --version
Python 3.7.3
C:\Users\NickN\Downloads>pip install quickfix-1.15.1-cp37-cp37m-win_amd64.whl
Requirement already satisfied: quickfix==1.15.1 from file:///C:/Users/NickN/Downloads/quickfix-1.15.1-cp37-cp37m-win_amd64.whl in c:\python37\lib\site-packages (1.15.1)
However, when I start up Python, and try to import quickfix...
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import quickfix as qf
Traceback (most recent call last):
File "C:\Python37\lib\site-packages\quickfix.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Python37\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 670, in _load_unlocked
File "<frozen importlib._bootstrap>", line 583, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 1043, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python37\lib\site-packages\quickfix.py", line 21, in <module>
_quickfix = swig_import_helper()
File "C:\Python37\lib\site-packages\quickfix.py", line 20, in swig_import_helper
return importlib.import_module('_quickfix')
File "C:\Python37\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: The specified module could not be found.
Can someone please assist in providing direction on how to install quickfix on Windows?
...However, I did hear that quickfix is not necessarily meant for Windows and is much better suited in a Linux environment. I have tried running the pip install in CentOs, making sure I had all the dependencies, development tools, and correct version of Python installed. Still, no luck....
Getting the following error in CentOS:
[nickn#new-host bin]$ sudo pip install quickfix
Collecting quickfix
Using cached quickfix-1.15.1.tar.gz (1.5 MB)
Using legacy 'setup.py install' for quickfix, since package 'wheel' is not installed.
Installing collected packages: quickfix
Running setup.py install for quickfix ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nJvzBo/quickfix/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nJvzBo/quickfix/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-record-4Bp3Vy/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/quickfix
cwd: /tmp/pip-install-nJvzBo/quickfix/
Complete output (38 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying quickfix.py -> build/lib.linux-x86_64-2.7
copying quickfixt11.py -> build/lib.linux-x86_64-2.7
copying quickfix40.py -> build/lib.linux-x86_64-2.7
copying quickfix41.py -> build/lib.linux-x86_64-2.7
copying quickfix42.py -> build/lib.linux-x86_64-2.7
copying quickfix43.py -> build/lib.linux-x86_64-2.7
copying quickfix44.py -> build/lib.linux-x86_64-2.7
copying quickfix50.py -> build/lib.linux-x86_64-2.7
copying quickfix50sp1.py -> build/lib.linux-x86_64-2.7
copying quickfix50sp2.py -> build/lib.linux-x86_64-2.7
running build_ext
Testing for std::tr1::shared_ptr...
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYTHON_MAJOR_VERSION=2 -IC++ -I/usr/include/python2.7 -c test_std_tr1_shared_ptr.cpp -o test_std_tr1_shared_ptr.o
...found
Testing for std::shared_ptr...
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -std=c++0x -DPYTHON_MAJOR_VERSION=2 -DHAVE_STD_TR1_SHARED_PTR -IC++ -I/usr/include/python2.7 -c test_std_shared_ptr.cpp -o test_std_shared_ptr.o
...found
Testing for std::unique_ptr...
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -std=c++0x -DPYTHON_MAJOR_VERSION=2 -DHAVE_STD_TR1_SHARED_PTR -DHAVE_STD_SHARED_PTR -IC++ -I/usr/include/python2.7 -c test_std_unique_ptr.cpp -o test_std_unique_ptr.o
...found
building '_quickfix' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/C++
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYTHON_MAJOR_VERSION=2 -DHAVE_STD_TR1_SHARED_PTR -DHAVE_STD_SHARED_PTR -DHAVE_STD_UNIQUE_PTR -IC++ -I/usr/include/python2.7 -c C++/HttpServer.cpp -o build/temp.linux-x86_64-2.7/C++/HttpServer.o -std=c++0x -Wno-deprecated -Wno-unused-variable -Wno-deprecated-declarations -Wno-maybe-uninitialized
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYTHON_MAJOR_VERSION=2 -DHAVE_STD_TR1_SHARED_PTR -DHAVE_STD_SHARED_PTR -DHAVE_STD_UNIQUE_PTR -IC++ -I/usr/include/python2.7 -c C++/TimeRange.cpp -o build/temp.linux-x86_64-2.7/C++/TimeRange.o -std=c++0x -Wno-deprecated -Wno-unused-variable -Wno-deprecated-declarations -Wno-maybe-uninitialized
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYTHON_MAJOR_VERSION=2 -DHAVE_STD_TR1_SHARED_PTR -DHAVE_STD_SHARED_PTR -DHAVE_STD_UNIQUE_PTR -IC++ -I/usr/include/python2.7 -c C++/ThreadedSSLSocketAcceptor.cpp -o build/temp.linux-x86_64-2.7/C++/ThreadedSSLSocketAcceptor.o -std=c++0x -Wno-deprecated -Wno-unused-variable -Wno-deprecated-declarations -Wno-maybe-uninitialized
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYTHON_MAJOR_VERSION=2 -DHAVE_STD_TR1_SHARED_PTR -DHAVE_STD_SHARED_PTR -DHAVE_STD_UNIQUE_PTR -IC++ -I/usr/include/python2.7 -c C++/ThreadedSocketInitiator.cpp -o build/temp.linux-x86_64-2.7/C++/ThreadedSocketInitiator.o -std=c++0x -Wno-deprecated -Wno-unused-variable -Wno-deprecated-declarations -Wno-maybe-uninitialized
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYTHON_MAJOR_VERSION=2 -DHAVE_STD_TR1_SHARED_PTR -DHAVE_STD_SHARED_PTR -DHAVE_STD_UNIQUE_PTR -IC++ -I/usr/include/python2.7 -c C++/QuickfixPython.cpp -o build/temp.linux-x86_64-2.7/C++/QuickfixPython.o -std=c++0x -Wno-deprecated -Wno-unused-variable -Wno-deprecated-declarations -Wno-maybe-uninitialized
C++/QuickfixPython.cpp:175:21: fatal error: Python.h: No such file or directory
# include <Python.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python2 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nJvzBo/quickfix/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nJvzBo/quickfix/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-record-4Bp3Vy/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/quickfix Check the logs for full command output.
Now I understand that the CentOs error is around Python2, however, I have both python version installed in CentOs and the links pointing to a correct location.
At this point I would even take quickfix to work on my refrigerator using Python1.... Please assist.
FIGURED IT OUT!!!
Windows Solution:
The root cause of failure to import the module (while the installing the wheel file worked) was due to missing Visual C++ Redistributable for Visual Studio 2015. This was removed in my attempts to clean up disk space on my PC by removing the "bloatware". However, since QuickFIX is written in C++, you are required to have both the Microsoft Visual C++ Redistributable and the Microsoft Visual Compiler installed.
Once everything was downloaded, I could immediately import quickfix without any issues.
C:\Users\NickN>python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import quickfix as qf
>>>
Links for quickfix: https://www.lfd.uci.edu/~gohlke/pythonlibs/#quickfix
Video Walkthrough of install: https://www.youtube.com/watch?v=pAlrGJDvyYg&list=PLv-cA-4O3y95np0YK9NrKqNKLsORaSjBc&index=10
...and of course, check to make sure you have the Microsoft C++ executables installed!
I am setting up a new server for POSTGRESQL, so we have to migrate from ORACLE to POSTGRES while installing DBD-Oracle-1.76 package. However, we are getting error even though we have exported ORACLE_BASE, ORACLE_HOME, LD_LIBRARY, LD_LIBRARY_PATH.
Here is what I have tried:
make
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro Oracle.o dbdimp.o oci8.o -o blib/arch/auto/DBD/Oracle/Oracle.so \
-L/optware/oracle/12.2.0.1/client_1/lib -lclntsh -ldl -lm -lpthread -lnsl -lirc -limf -lirc -lrt -laio -lresolv -lsvml \
Here is the error:
/bin/ld: cannot find -laio
collect2: error: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1
Any ideas? Any help would be greatly appreciated!
If you're on Redhat/Fedora/RHEL/CentOS then try this before make:
sudo yum install libaio-devel
If Ubuntu (or Debian?) try:
sudo apt install libaio-dev
...or sudo apt-get install libaio libaio1 libaio-dev
I also needed:
export ORACLE_HOME=/wherever/oracle18-instantclient/instantclient_18_5
export LD_LIBRARY_PATH="$ORACLE_HOME:/usr/lib/x86_64-linux-gnu/"
Error while installing DBD::Oracle might be helpful.
I am trying to install nodejs from source. When I run 'make install' I am getting:
node-v6.3.1]# make install
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/home/centos/node-v6.3.1/out'
g++ -I../deps/gtest -I../deps/gtest/include -pthread -Wall -Wextra -Wno-unused-parameter -m64 -Wno-missing-field-initializers -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /home/centos/node-v6.3.1/out/Release/.deps//home/centos/node-v6.3.1/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o.d.raw -c -o /home/centos/node-v6.3.1/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o ../deps/gtest/src/gtest-death-test.cc
In file included from ../deps/gtest/include/gtest/internal/gtest-internal.h:40:0,
from ../deps/gtest/include/gtest/internal/gtest-death-test-internal.h:40,
from ../deps/gtest/include/gtest/gtest-death-test.h:41,
from ../deps/gtest/src/gtest-death-test.cc:34:
../deps/gtest/include/gtest/internal/gtest-port.h:259:41: fatal error: ctype.h: No such file or directory
#include <ctype.h> // for isspace, etc
I installed c and c++ libraries as well using: yum -y install gcc gcc-c++ make.
I also tried to install via rpm:
error: %pre(nodejs-1:6.3.1-1nodesource.el7.centos.x86_64) scriptlet failed, exit status 127
Error in PREIN scriptlet in rpm package 1:nodejs-6.3.1-1nodesource.el7.centos.x8 6_64
Verifying : 1:nodejs-6.3.1-1nodesource.el7.centos.x86_64 1/1
Failed:
nodejs.x86_64 1:6.3.1-1nodesource.el7.centos
Could you please anyone help what might be the issue. Thanks
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.