2016-06-29 5 views
1

をインストール私はmakeコマンドを実行すると私は私が使用していますエラーPAM-のpython-1.0.5

rm -f html/index.html && ln -s pam_python.html html/index.html 
make[1]: Leaving directory `/home/vagrant/pam-python-1.0.5/doc' 
make --directory src 
make[1]: Entering directory `/home/vagrant/pam-python-1.0.5/src' 
gcc -O0 -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror -g -o ctest ctest.c -lpam 
CFLAGS="-Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" ./setup.py build 
running build 
running build_ext 
building 'pam_python' extension 
creating build 
creating build/temp.linux-x86_64-2.6 
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 -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror -fPIC -DLIBPYTHON_SO="libpython2.6.so.1.0" -I/usr/include/python2.6 -c pam_python.c -o build/temp.linux-x86_64-2.6/pam_python.o 
In file included from /usr/include/python2.6/pyconfig.h:6, 
       from /usr/include/python2.6/Python.h:8, 
       from pam_python.c:36: 
/usr/include/python2.6/pyconfig-64.h:1043:1: error: "_XOPEN_SOURCE" redefined 
In file included from /usr/include/stdlib.h:25, 
       from /usr/include/security/_pam_macros.h:12, 
       from pam_python.c:32: 
/usr/include/features.h:164:1: error: this is the location of the previous definition 
error: command 'gcc' failed with exit status 1 

システムがCentOs 6.7で次のエラーが表示されている間。

Python用のpamモジュールを直接インストールして、lib64/securityディレクトリにpam_python.soを生成する方法はありますか?

答えて

1

推奨:stable version = python-pam-1.8.2を使用してください。

EL6パッケージ:のpython-PAM-1.8.2-2.el6.noarch.rpm(9.7kB)https://drive.google.com/file/d/0B7S255p3kFXNQ1FrM1poTXR5Nmc/view?usp=sharing

cd Downloads/ 
# yum install python-pam-1.8.2-2.el6.noarch.rpm 

パッケージをダウンロードし、... EDIT:他の "モジュール" = PAM-pythonの1.0.5については:私は→

cd pam-python-1.0.5/src/ 
python setup.py build 

...とファイル解決策を見つけたようですが作成されました。

インストールします。#python setup.py install ...テキストがインストールされているものを示してインストール... pam_python.py、pam_python.pyc、

/usr/lib64/python2.6/site-packages/pam_python-1.0.5-py2.6-linux-x86_64.egg/pam_python.so 

+0

それは正常にインストールされますが、中にpam_python.soを作成しません。 libディレクトリ? 作成場所は? – user2823667

+0

右、pam_pyhonは実際には全く違う獣です。「1.0.1-src.rpm」(Suse)から1つのファイルのみ→pam_python.so ,,,を提供します。 –

+0

python setup.pyは、この質問で同じ警告を出します。 – user2823667

関連する問題