Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required C Compilation #3

Open
BradRuderman opened this issue Nov 15, 2013 · 18 comments
Open

Required C Compilation #3

BradRuderman opened this issue Nov 15, 2013 · 18 comments

Comments

@BradRuderman
Copy link

I am having a few people reach out to me with different OS's (CentOS, Windows, Mac) that are having issues with getting python-sasl to install. I think it has something to do with compilation using the c compiler. Do you have any tutorials for setting up a compiler on vanilla machines and attaching to a python installation.

Thanks!

@ChuckConnell
Copy link

I ran into this on CentOS 6 with Python 2.6.6. Here is the result of trying to do "pip install pyhs2"...

Requirement already satisfied (use --upgrade to upgrade): pyhs2 in /usr/lib/python2.6/site-packages
Downloading/unpacking sasl (from pyhs2)
  Downloading sasl-0.1.2.tar.gz
  Running setup.py egg_info for package sasl
Downloading/unpacking thrift (from pyhs2)
  Downloading thrift-0.9.1.tar.gz
  Running setup.py egg_info for package thrift
Installing collected packages: sasl, thrift
  Running setup.py install for sasl
    building '_saslwrapper' extension
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isasl -I/usr/include/python2.6 -c sasl/saslwrapper.cpp -o build/temp.linux-x86_64-2.6/sasl/saslwrapper.o
    sasl/saslwrapper.cpp:21:23: error: sasl/sasl.h: No such file or directory
    sasl/saslwrapper.cpp:51: error: ‘sasl_interact_t’ has not been declared
    sasl/saslwrapper.cpp:54: error: ‘sasl_conn_t’ has not been declared
    sasl/saslwrapper.cpp:54: error: ‘sasl_secret_t’ has not been declared
    sasl/saslwrapper.cpp:57: error: ISO C++ forbids declaration of ‘sasl_conn_t’ with no type
    sasl/saslwrapper.cpp:57: error: expected ‘;’ before ‘*’ token
    sasl/saslwrapper.cpp:58: error: ‘sasl_callback_t’ does not name a type
    sasl/saslwrapper.cpp:71: error: ISO C++ forbids declaration of ‘sasl_secret_t’ with no type
    sasl/saslwrapper.cpp:71: error: expected ‘;’ before ‘*’ token
    sasl/saslwrapper.cpp: In constructor ‘saslwrapper::ClientImpl::ClientImpl()’:
    sasl/saslwrapper.cpp:35: error: class ‘saslwrapper::ClientImpl’ does not have any field named ‘conn’
    sasl/saslwrapper.cpp:35: error: class ‘saslwrapper::ClientImpl’ does not have any field named ‘secret’
    sasl/saslwrapper.cpp: In destructor ‘saslwrapper::ClientImpl::~ClientImpl()’:
    sasl/saslwrapper.cpp:36: error: ‘conn’ was not declared in this scope
    sasl/saslwrapper.cpp:36: error: ‘sasl_dispose’ was not declared in this scope
    sasl/saslwrapper.cpp:36: error: ‘conn’ was not declared in this scope
    sasl/saslwrapper.cpp: In member function ‘void saslwrapper::ClientImpl::lastCallback()’:
    sasl/saslwrapper.cpp:49: error: ‘SASL_CB_LIST_END’ was not declared in this scope
    sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::init()’:
    sasl/saslwrapper.cpp:83: error: ‘sasl_client_init’ was not declared in this scope
    sasl/saslwrapper.cpp:84: error: ‘SASL_OK’ was not declared in this scope
    sasl/saslwrapper.cpp:85: error: ‘sasl_errstring’ was not declared in this scope
    sasl/saslwrapper.cpp:91: error: ‘SASL_CB_GETREALM’ was not declared in this scope
    sasl/saslwrapper.cpp:93: error: ‘SASL_CB_USER’ was not declared in this scope
    sasl/saslwrapper.cpp:94: error: ‘SASL_CB_AUTHNAME’ was not declared in this scope
    sasl/saslwrapper.cpp:97: error: ‘SASL_CB_PASS’ was not declared in this scope
    sasl/saslwrapper.cpp:99: error: ‘SASL_CB_PASS’ was not declared in this scope
    sasl/saslwrapper.cpp:107: error: ‘SASL_NEED_PROXY’ was not declared in this scope
    sasl/saslwrapper.cpp:109: error: ‘callbacks’ was not declared in this scope
    sasl/saslwrapper.cpp:109: error: ‘conn’ was not declared in this scope
    sasl/saslwrapper.cpp:109: error: ‘sasl_client_new’ was not declared in this scope
    sasl/saslwrapper.cpp:110: error: ‘SASL_OK’ was not declared in this scope
    sasl/saslwrapper.cpp:111: error: ‘sasl_errstring’ was not declared in this scope
    sasl/saslwrapper.cpp:115: error: ‘sasl_security_properties_t’ was not declared in this scope
    sasl/saslwrapper.cpp:115: error: expected ‘;’ before ‘secprops’
    sasl/saslwrapper.cpp:117: error: ‘secprops’ was not declared in this scope
    sasl/saslwrapper.cpp:124: error: ‘SASL_SEC_PROPS’ was not declared in this scope
    sasl/saslwrapper.cpp:124: error: ‘sasl_setprop’ was not declared in this scope
    sasl/saslwrapper.cpp:125: error: ‘SASL_OK’ was not declared in this scope
    sasl/saslwrapper.cpp:127: error: ‘sasl_dispose’ was not declared in this scope
    sasl/saslwrapper.cpp:133: error: ‘SASL_AUTH_EXTERNAL’ was not declared in this scope
    sasl/saslwrapper.cpp:134: error: ‘SASL_OK’ was not declared in this scope
    sasl/saslwrapper.cpp:136: error: ‘sasl_dispose’ was not declared in this scope
    sasl/saslwrapper.cpp:141: error: ‘SASL_SSF_EXTERNAL’ was not declared in this scope
    sasl/saslwrapper.cpp:142: error: ‘SASL_OK’ was not declared in this scope
    sasl/saslwrapper.cpp:144: error: ‘sasl_dispose’ was not declared in this scope
    sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::setAttr(const std::string&, const std::string&)’:
    sasl/saslwrapper.cpp:163: error: ‘secret’ was not declared in this scope
    sasl/saslwrapper.cpp:164: error: ‘sasl_secret_t’ was not declared in this scope
    sasl/saslwrapper.cpp:164: error: expected primary-expression before ‘)’ token
    sasl/saslwrapper.cpp:164: error: expected ‘;’ before ‘malloc’
    sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::start(const std::string&, saslwrapper::output_string&, saslwrapper::output_string&)’:
    sasl/saslwrapper.cpp:199: error: ‘sasl_interact_t’ was not declared in this scope
    sasl/saslwrapper.cpp:199: error: ‘prompt’ was not declared in this scope
    sasl/saslwrapper.cpp:205: error: ‘conn’ was not declared in this scope
    sasl/saslwrapper.cpp:205: error: ‘sasl_client_start’ was not declared in this scope
    sasl/saslwrapper.cpp:206: error: ‘SASL_INTERACT’ was not declared in this scope
    sasl/saslwrapper.cpp:208: error: ‘SASL_INTERACT’ was not declared in this scope
    sasl/saslwrapper.cpp:209: error: ‘SASL_OK’ was not declared in this scope
    sasl/saslwrapper.cpp:209: error: ‘SASL_CONTINUE’ was not declared in this scope
    sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::step(const std::string&, saslwrapper::output_string&)’:
    sasl/saslwrapper.cpp:222: error: ‘sasl_interact_t’ was not declared in this scope
    sasl/saslwrapper.cpp:222: error: ‘prompt’ was not declared in this scope
    sasl/saslwrapper.cpp:227: error: ‘conn’ was not declared in this scope
    sasl/saslwrapper.cpp:227: error: ‘sasl_client_step’ was not declared in this scope
    sasl/saslwrapper.cpp:228: error: ‘SASL_INTERACT’ was not declared in this scope
    sasl/saslwrapper.cpp:230: error: ‘SASL_INTERACT’ was not declared in this scope
    sasl/saslwrapper.cpp:231: error: ‘SASL_OK’ was not declared in this scope
    sasl/saslwrapper.cpp:231: error: ‘SASL_CONTINUE’ was not declared in this scope
    sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::encode(const std::string&, saslwrapper::output_string&)’:
    sasl/saslwrapper.cpp:244: error: ‘conn’ was not declared in this scope
    sasl/saslwrapper.cpp:244: error: ‘sasl_encode’ was not declared in this scope
    sasl/saslwrapper.cpp:245: error: ‘SASL_OK’ was not declared in this scope
    sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::decode(const std::string&, saslwrapper::output_string&)’:
    sasl/saslwrapper.cpp:265: error: ‘conn’ was not declared in this scope
    sasl/saslwrapper.cpp:265: error: ‘sasl_decode’ was not declared in this scope
    sasl/saslwrapper.cpp:266: error: ‘SASL_OK’ was not declared in this scope
    sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::getUserId(saslwrapper::output_string&)’:
    sasl/saslwrapper.cpp:282: error: ‘conn’ was not declared in this scope
    sasl/saslwrapper.cpp:282: error: ‘SASL_USERNAME’ was not declared in this scope
    sasl/saslwrapper.cpp:282: error: ‘sasl_getprop’ was not declared in this scope
    sasl/saslwrapper.cpp:283: error: ‘SASL_OK’ was not declared in this scope
    sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::getSSF(saslwrapper::output_int*)’:
    sasl/saslwrapper.cpp:294: error: ‘conn’ was not declared in this scope
    sasl/saslwrapper.cpp:294: error: ‘SASL_SSF’ was not declared in this scope
    sasl/saslwrapper.cpp:294: error: ‘sasl_getprop’ was not declared in this scope
    sasl/saslwrapper.cpp:295: error: ‘SASL_OK’ was not declared in this scope
    sasl/saslwrapper.cpp: In member function ‘void saslwrapper::ClientImpl::addCallback(long unsigned int, void*)’:
    sasl/saslwrapper.cpp:311: error: ‘callbacks’ was not declared in this scope
    sasl/saslwrapper.cpp: In member function ‘void saslwrapper::ClientImpl::setError(const std::string&, int, const std::string&, const std::string&)’:
    sasl/saslwrapper.cpp:323: error: ‘conn’ was not declared in this scope
    sasl/saslwrapper.cpp:324: error: ‘sasl_errdetail’ was not declared in this scope
    sasl/saslwrapper.cpp:326: error: ‘sasl_errstring’ was not declared in this scope
    sasl/saslwrapper.cpp: At global scope:
    sasl/saslwrapper.cpp:338: error: variable or field ‘interact’ declared void
    sasl/saslwrapper.cpp:338: error: ‘sasl_interact_t’ was not declared in this scope
    sasl/saslwrapper.cpp:338: error: ‘prompt’ was not declared in this scope
    error: command 'gcc' failed with exit status 1
    Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/sasl/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-qEIjat-record/install-record.txt --single-version-externally-managed:
    running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.6

creating build/lib.linux-x86_64-2.6/sasl

copying sasl/__init__.py -> build/lib.linux-x86_64-2.6/sasl

copying sasl/saslwrapper.py -> build/lib.linux-x86_64-2.6/sasl

running egg_info

writing sasl.egg-info/PKG-INFO

writing top-level names to sasl.egg-info/top_level.txt

writing dependency_links to sasl.egg-info/dependency_links.txt

warning: manifest_maker: standard file '-c' not found

reading manifest file 'sasl.egg-info/SOURCES.txt'

reading manifest template 'MANIFEST.in'

writing manifest file 'sasl.egg-info/SOURCES.txt'

running build_ext

building '_saslwrapper' extension

creating build/temp.linux-x86_64-2.6

creating build/temp.linux-x86_64-2.6/sasl

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isasl -I/usr/include/python2.6 -c sasl/saslwrapper.cpp -o build/temp.linux-x86_64-2.6/sasl/saslwrapper.o

sasl/saslwrapper.cpp:21:23: error: sasl/sasl.h: No such file or directory

sasl/saslwrapper.cpp:51: error: ‘sasl_interact_t’ has not been declared

sasl/saslwrapper.cpp:54: error: ‘sasl_conn_t’ has not been declared

sasl/saslwrapper.cpp:54: error: ‘sasl_secret_t’ has not been declared

sasl/saslwrapper.cpp:57: error: ISO C++ forbids declaration of ‘sasl_conn_t’ with no type

sasl/saslwrapper.cpp:57: error: expected ‘;’ before ‘*’ token

sasl/saslwrapper.cpp:58: error: ‘sasl_callback_t’ does not name a type

sasl/saslwrapper.cpp:71: error: ISO C++ forbids declaration of ‘sasl_secret_t’ with no type

sasl/saslwrapper.cpp:71: error: expected ‘;’ before ‘*’ token

sasl/saslwrapper.cpp: In constructor ‘saslwrapper::ClientImpl::ClientImpl()’:

sasl/saslwrapper.cpp:35: error: class ‘saslwrapper::ClientImpl’ does not have any field named ‘conn’

sasl/saslwrapper.cpp:35: error: class ‘saslwrapper::ClientImpl’ does not have any field named ‘secret’

sasl/saslwrapper.cpp: In destructor ‘saslwrapper::ClientImpl::~ClientImpl()’:

sasl/saslwrapper.cpp:36: error: ‘conn’ was not declared in this scope

sasl/saslwrapper.cpp:36: error: ‘sasl_dispose’ was not declared in this scope

sasl/saslwrapper.cpp:36: error: ‘conn’ was not declared in this scope

sasl/saslwrapper.cpp: In member function ‘void saslwrapper::ClientImpl::lastCallback()’:

sasl/saslwrapper.cpp:49: error: ‘SASL_CB_LIST_END’ was not declared in this scope

sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::init()’:

sasl/saslwrapper.cpp:83: error: ‘sasl_client_init’ was not declared in this scope

sasl/saslwrapper.cpp:84: error: ‘SASL_OK’ was not declared in this scope

sasl/saslwrapper.cpp:85: error: ‘sasl_errstring’ was not declared in this scope

sasl/saslwrapper.cpp:91: error: ‘SASL_CB_GETREALM’ was not declared in this scope

sasl/saslwrapper.cpp:93: error: ‘SASL_CB_USER’ was not declared in this scope

sasl/saslwrapper.cpp:94: error: ‘SASL_CB_AUTHNAME’ was not declared in this scope

sasl/saslwrapper.cpp:97: error: ‘SASL_CB_PASS’ was not declared in this scope

sasl/saslwrapper.cpp:99: error: ‘SASL_CB_PASS’ was not declared in this scope

sasl/saslwrapper.cpp:107: error: ‘SASL_NEED_PROXY’ was not declared in this scope

sasl/saslwrapper.cpp:109: error: ‘callbacks’ was not declared in this scope

sasl/saslwrapper.cpp:109: error: ‘conn’ was not declared in this scope

sasl/saslwrapper.cpp:109: error: ‘sasl_client_new’ was not declared in this scope

sasl/saslwrapper.cpp:110: error: ‘SASL_OK’ was not declared in this scope

sasl/saslwrapper.cpp:111: error: ‘sasl_errstring’ was not declared in this scope

sasl/saslwrapper.cpp:115: error: ‘sasl_security_properties_t’ was not declared in this scope

sasl/saslwrapper.cpp:115: error: expected ‘;’ before ‘secprops’

sasl/saslwrapper.cpp:117: error: ‘secprops’ was not declared in this scope

sasl/saslwrapper.cpp:124: error: ‘SASL_SEC_PROPS’ was not declared in this scope

sasl/saslwrapper.cpp:124: error: ‘sasl_setprop’ was not declared in this scope

sasl/saslwrapper.cpp:125: error: ‘SASL_OK’ was not declared in this scope

sasl/saslwrapper.cpp:127: error: ‘sasl_dispose’ was not declared in this scope

sasl/saslwrapper.cpp:133: error: ‘SASL_AUTH_EXTERNAL’ was not declared in this scope

sasl/saslwrapper.cpp:134: error: ‘SASL_OK’ was not declared in this scope

sasl/saslwrapper.cpp:136: error: ‘sasl_dispose’ was not declared in this scope

sasl/saslwrapper.cpp:141: error: ‘SASL_SSF_EXTERNAL’ was not declared in this scope

sasl/saslwrapper.cpp:142: error: ‘SASL_OK’ was not declared in this scope

sasl/saslwrapper.cpp:144: error: ‘sasl_dispose’ was not declared in this scope

sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::setAttr(const std::string&, const std::string&)’:

sasl/saslwrapper.cpp:163: error: ‘secret’ was not declared in this scope

sasl/saslwrapper.cpp:164: error: ‘sasl_secret_t’ was not declared in this scope

sasl/saslwrapper.cpp:164: error: expected primary-expression before ‘)’ token

sasl/saslwrapper.cpp:164: error: expected ‘;’ before ‘malloc’

sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::start(const std::string&, saslwrapper::output_string&, saslwrapper::output_string&)’:

sasl/saslwrapper.cpp:199: error: ‘sasl_interact_t’ was not declared in this scope

sasl/saslwrapper.cpp:199: error: ‘prompt’ was not declared in this scope

sasl/saslwrapper.cpp:205: error: ‘conn’ was not declared in this scope

sasl/saslwrapper.cpp:205: error: ‘sasl_client_start’ was not declared in this scope

sasl/saslwrapper.cpp:206: error: ‘SASL_INTERACT’ was not declared in this scope

sasl/saslwrapper.cpp:208: error: ‘SASL_INTERACT’ was not declared in this scope

sasl/saslwrapper.cpp:209: error: ‘SASL_OK’ was not declared in this scope

sasl/saslwrapper.cpp:209: error: ‘SASL_CONTINUE’ was not declared in this scope

sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::step(const std::string&, saslwrapper::output_string&)’:

sasl/saslwrapper.cpp:222: error: ‘sasl_interact_t’ was not declared in this scope

sasl/saslwrapper.cpp:222: error: ‘prompt’ was not declared in this scope

sasl/saslwrapper.cpp:227: error: ‘conn’ was not declared in this scope

sasl/saslwrapper.cpp:227: error: ‘sasl_client_step’ was not declared in this scope

sasl/saslwrapper.cpp:228: error: ‘SASL_INTERACT’ was not declared in this scope

sasl/saslwrapper.cpp:230: error: ‘SASL_INTERACT’ was not declared in this scope

sasl/saslwrapper.cpp:231: error: ‘SASL_OK’ was not declared in this scope

sasl/saslwrapper.cpp:231: error: ‘SASL_CONTINUE’ was not declared in this scope

sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::encode(const std::string&, saslwrapper::output_string&)’:

sasl/saslwrapper.cpp:244: error: ‘conn’ was not declared in this scope

sasl/saslwrapper.cpp:244: error: ‘sasl_encode’ was not declared in this scope

sasl/saslwrapper.cpp:245: error: ‘SASL_OK’ was not declared in this scope

sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::decode(const std::string&, saslwrapper::output_string&)’:

sasl/saslwrapper.cpp:265: error: ‘conn’ was not declared in this scope

sasl/saslwrapper.cpp:265: error: ‘sasl_decode’ was not declared in this scope

sasl/saslwrapper.cpp:266: error: ‘SASL_OK’ was not declared in this scope

sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::getUserId(saslwrapper::output_string&)’:

sasl/saslwrapper.cpp:282: error: ‘conn’ was not declared in this scope

sasl/saslwrapper.cpp:282: error: ‘SASL_USERNAME’ was not declared in this scope

sasl/saslwrapper.cpp:282: error: ‘sasl_getprop’ was not declared in this scope

sasl/saslwrapper.cpp:283: error: ‘SASL_OK’ was not declared in this scope

sasl/saslwrapper.cpp: In member function ‘bool saslwrapper::ClientImpl::getSSF(saslwrapper::output_int*)’:

sasl/saslwrapper.cpp:294: error: ‘conn’ was not declared in this scope

sasl/saslwrapper.cpp:294: error: ‘SASL_SSF’ was not declared in this scope

sasl/saslwrapper.cpp:294: error: ‘sasl_getprop’ was not declared in this scope

sasl/saslwrapper.cpp:295: error: ‘SASL_OK’ was not declared in this scope

sasl/saslwrapper.cpp: In member function ‘void saslwrapper::ClientImpl::addCallback(long unsigned int, void*)’:

sasl/saslwrapper.cpp:311: error: ‘callbacks’ was not declared in this scope

sasl/saslwrapper.cpp: In member function ‘void saslwrapper::ClientImpl::setError(const std::string&, int, const std::string&, const std::string&)’:

sasl/saslwrapper.cpp:323: error: ‘conn’ was not declared in this scope

sasl/saslwrapper.cpp:324: error: ‘sasl_errdetail’ was not declared in this scope

sasl/saslwrapper.cpp:326: error: ‘sasl_errstring’ was not declared in this scope

sasl/saslwrapper.cpp: At global scope:

sasl/saslwrapper.cpp:338: error: variable or field ‘interact’ declared void

sasl/saslwrapper.cpp:338: error: ‘sasl_interact_t’ was not declared in this scope

sasl/saslwrapper.cpp:338: error: ‘prompt’ was not declared in this scope

error: command 'gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/sasl/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-qEIjat-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip_build_root/sasl

@ChuckConnell
Copy link

Solved by doing some additional yum installs first...

gcc-c++
python-devel.x86_64
cyrus-sasl-devel.x86_64

Credit to http://charlesconnell.com/resume.pdf

"pip install pyhs2" now installs cleanly.

@mic159
Copy link

mic159 commented Jan 15, 2014

It might be a good idea to list the dependencies in pypi page.

something like:

This library contains C++ code, and will require some additional system libraries installed.

Debian/Ubuntu: apt-get install python-dev libsasl2-dev gcc
CentOS/RHEL: yum install gcc-c++ python-devel.x86_64 cyrus-sasl-devel.x86_64

@lihang00
Copy link

lihang00 commented Sep 2, 2014

I'm still trying to figure how this can work in win7...

@vparikh10
Copy link

hi lihang00!

have you figured how this works on win 7? i am trying to install sasl package using win7 and its not working :(

@malina-kirn
Copy link

Compiling sasl in Windows seems to be nearly impossible. However, Carnegie Mellon provides a pre-compiled Windows installer here: ftp://ftp.cyrusimap.org/cyrus-sasl/BINARY-DISTRIBUTION/

Is it at all possible to get python-sasl to use an installed cyrus sasl binary instead of recompiling from core C code?

@jamartinh
Copy link

Please by god.
On centos and redhat include:

cyrus-sasl-plain in requirements.

@Russell-DataScience
Copy link

Interestingly (?) it completes the compile step without a hitch for python but not python3.

@apogre
Copy link

apogre commented May 22, 2015

apt-get install python-dev libsasl2-dev gcc
this worked for me at ubuntu.

@com0606
Copy link

com0606 commented Jul 22, 2015

I'd like to install it on win7, but it lacks some .h files.

@gohkenneth
Copy link

No one managed to do it in windows 7?
I managed to get most of the .h files except unistd.h which is not a windows file.

@akafazov
Copy link

akafazov commented Dec 6, 2015

hi gohkenneth, same here.

@bundgus
Copy link

bundgus commented Dec 19, 2015

gohkenneth, akafazov - same here.

@aneverov4vmw
Copy link

Seems like I finally managed to compile SASL2 on Windows and consume it from pip. Documented the steps here.

@patilvijay23
Copy link

@aneverov4vmw Isn't there a simpler way? I'm facing similar issues, trying to use jupyter notebook on win 7 and need to connect to hadoop clusters to run queries in jupyter. For this, require sasl package.

@bdwinter10
Copy link

@ChuckConnell I am installing pyhs2 on windows and am getting error message saying:
fatal error C1083: Cannot open include file: 'sasl/sasl.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe' failed with exit status 2
Any insights on how I can solve this issue?
Thank you!!

@Hackeruncle
Copy link

@bdwinter10 I use the command of "pip install pyhs2" on win7,the error is same with you.
How you solve this issue?
Thanks.

@divyas1102
Copy link

Bummer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests