Emre Çamalan'ın Kişisel Güncesi

Ben, sen sen olduğun için, benim!

Python: sasl/saslwrapper.cpp:21:23: fatal error: sasl/sasl.h: No such file or director

Merhaba,

pip ile bir kütüphane yüklemeye çalışıyorsunuz ya da pip  yükleme çalışıyorsunuz ve şöyle bir hata aldınız

Adding thrift 0.9.1 to easy-install.pth file

Installed /usr/lib/python2.7/site-packages/thrift-0.9.1-py2.7-linux-x86_64.egg
Searching for sasl
Reading https://pypi.python.org/simple/sasl/
Best match: sasl 0.1.3
Downloading https://pypi.python.org/packages/source/s/sasl/sasl-0.1.3.tar.gz#md5=6db4ca3d4fb699cf126a6e6f2f516d8f
Processing sasl-0.1.3.tar.gz
Writing /tmp/easy_install-SQlmID/sasl-0.1.3/setup.cfg
Running sasl-0.1.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-SQlmID/sasl-0.1.3/egg-dist-tmp-gHyDyt
sasl/saslwrapper.cpp:21:23: fatal error: sasl/sasl.h: No such file or directory
 #include <sasl/sasl.h>
                       ^
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1

Çözümü bazı paketleri yüklemekten geçiyor,

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

Ben centos üzerinde göstereceğim..

 

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

Şimdi tekrar deniyoruz;

pip install pyhs2

ve çalıştı output’U şöyle:

ecamalan# pip install pyhs2
Requirement already satisfied (use --upgrade to upgrade): pyhs2 in /usr/lib/python2.7/site-packages/pyhs2-0.5.0-py2.7.egg
Downloading/unpacking sasl (from pyhs2)
  Downloading sasl-0.1.3.tar.gz
  Running setup.py (path:/tmp/pip_build_root/sasl/setup.py) egg_info for package sasl
    
Requirement already satisfied (use --upgrade to upgrade): thrift in /usr/lib/python2.7/site-packages/thrift-0.9.1-py2.7-linux-x86_64.egg (from pyhs2)
Installing collected packages: sasl
  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-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 -Isasl -I/usr/include/python2.7 -c sasl/saslwrapper.cpp -o build/temp.linux-x86_64-2.7/sasl/saslwrapper.o
    sasl/saslwrapper.cpp: In member function ‘void saslwrapper::ClientImpl::interact(sasl_interact_t*)’:
    sasl/saslwrapper.cpp:341:11: warning: unused variable ‘input’ [-Wunused-variable]
         char* input;
               ^
    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 -Isasl -I/usr/include/python2.7 -c sasl/saslwrapper_wrap.cxx -o build/temp.linux-x86_64-2.7/sasl/saslwrapper_wrap.o
    g++ -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-2.7/sasl/saslwrapper.o build/temp.linux-x86_64-2.7/sasl/saslwrapper_wrap.o -L. -lsasl2 -lpython2.7 -o build/lib.linux-x86_64-2.7/_saslwrapper.so
Successfully installed sasl
Cleaning up...

 

, ,

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

*

Bu site, istenmeyenleri azaltmak için Akismet kullanıyor. Yorum verilerinizin nasıl işlendiği hakkında daha fazla bilgi edinin.