{"action":"opened","issue":{"url":"https://api.github.com/repos/mkleehammer/pyodbc/issues/136","repository_url":"https://api.github.com/repos/mkleehammer/pyodbc","labels_url":"https://api.github.com/repos/mkleehammer/pyodbc/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/mkleehammer/pyodbc/issues/136/comments","events_url":"https://api.github.com/repos/mkleehammer/pyodbc/issues/136/events","html_url":"https://github.com/mkleehammer/pyodbc/issues/136","id":173484519,"number":136,"title":"Fedora 24 cannot pip install pyodbc out of box","user":{"login":"john-patterson","id":17716252,"avatar_url":"https://avatars.githubusercontent.com/u/17716252?v=3","gravatar_id":"","url":"https://api.github.com/users/john-patterson","html_url":"https://github.com/john-patterson","followers_url":"https://api.github.com/users/john-patterson/followers","following_url":"https://api.github.com/users/john-patterson/following{/other_user}","gists_url":"https://api.github.com/users/john-patterson/gists{/gist_id}","starred_url":"https://api.github.com/users/john-patterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-patterson/subscriptions","organizations_url":"https://api.github.com/users/john-patterson/orgs","repos_url":"https://api.github.com/users/john-patterson/repos","events_url":"https://api.github.com/users/john-patterson/events{/privacy}","received_events_url":"https://api.github.com/users/john-patterson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-26T15:48:55Z","updated_at":"2016-08-26T15:48:55Z","closed_at":null,"body":"I went to install pyodbc on Fedora 24. I had python-devel, python3-devel, unixodbc, unixodbc-devel, gcc, and gcc-c++ installed on the system, but I was still getting \r\n\r\n`sudo pip install pyodbc        \r\nCollecting pyodbc\r\n  Using cached pyodbc-3.0.10.tar.gz\r\nInstalling collected packages: pyodbc\r\n  Running setup.py install for pyodbc ... error\r\n    Complete output from command /usr/bin/python -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-Udp6NY/pyodbc/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-lp4qsC-record/install-record.txt --single-version-externally-managed --compile:\r\n    running install\r\n    running build\r\n    running build_ext\r\n    building 'pyodbc' extension\r\n    creating build\r\n    creating build/temp.linux-x86_64-2.7\r\n    creating build/temp.linux-x86_64-2.7/tmp\r\n    creating build/temp.linux-x86_64-2.7/tmp/pip-build-Udp6NY\r\n    creating build/temp.linux-x86_64-2.7/tmp/pip-build-Udp6NY/pyodbc\r\n    creating build/temp.linux-x86_64-2.7/tmp/pip-build-Udp6NY/pyodbc/src\r\n    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYODBC_VERSION=3.0.10 -DPYODBC_UNICODE_WIDTH=4 -DSQL_WCHART_CONVERT=1 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include -I/usr/include/python2.7 -c /tmp/pip-build-Udp6NY/pyodbc/src/sqlwchar.cpp -o build/temp.linux-x86_64-2.7/tmp/pip-build-Udp6NY/pyodbc/src/sqlwchar.o -Wno-write-strings\r\n    gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory\r\n    error: command 'gcc' failed with exit status 1\r\n    \r\n    ----------------------------------------\r\nCommand \"/usr/bin/python -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-Udp6NY/pyodbc/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-lp4qsC-record/install-record.txt --single-version-externally-managed --compile\" failed with error code 1 in /tmp/pip-build-Udp6NY/pyodbc/\r\n`\r\nas output. As you can see, we are missing `redhat-hardened-cc1`, so as per [this StackOverflow topic](http://stackoverflow.com/questions/34624428/g-error-usr-lib-rpm-redhat-redhat-hardened-cc1-no-that-file-and-directory) the solution is that we must `sudo dnf install redhat-rpm-config` under F24. I don't know if this is a system specific issue or if there is a way to bundle that as a dependency of pyodbc under dnf."}}
{"actor":{"display_login":"john-patterson"}}