2016-08-16 4 views
0

HP-UX 호스트에서 ping을 실행할 수 있지만 파이썬 오류가 발생합니다. 모든 도서관과 사제권은 괜찮습니다.신뢰할 수있는 HP-UX, ImportError :로드하지 못했습니다. /usr/local/lib/python2.7/lib-dynload/binascii.sl

ansible -vvvv -i ./servers 모든 -m 핑

출력

<infappr> PUT /tmp/tmpxQfBr5 TO //.ansible/tmp/ansible-tmp-1471342470.57-207842142718136/ping 
<infappr> SSH: EXEC sftp -b - -C -vvv 
-o ControlMaster=auto 
-o ControlPersist=60s 
-o KbdInteractiveAuthentication=no 
-o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no 
-o ConnectTimeout=10 
-o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r '[infappr]' 
<infappr> ESTABLISH SSH CONNECTION FOR USER: None 
<infappr> SSH: EXEC ssh -C -vvv 
-o ControlMaster=auto 
-o ControlPersist=60s 
-o KbdInteractiveAuthentication=no 
-o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no 
-o ConnectTimeout=10 
-o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 
-tt infappr '/bin/sh -c '"'"'LANG=POSIX LC_ALL=POSIX LC_MESSAGES=POSIX /usr/bin/python //.ansible/tmp/ansible-tmp-1471342470.57-207842142718136/ping; rm -rf "//.ansible/tmp/ansible-tmp-1471342470.57-207842142718136/" > /dev/null 2>&1 && sleep 0'"'"'' 

OpenSSH_6.6.1, OpenSSL 0.9.8j-fips 07 Jan 2009 
debug1: Reading configuration data /etc/ssh/ssh_config 
debug1: /etc/ssh/ssh_config line 20: Applying options for * 
debug1: auto-mux: Trying existing master 
debug2: fd 3 setting O_NONBLOCK 
debug2: mux_client_hello_exchange: master version 4 
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote 
debug3: mux_client_request_session: entering 
debug3: mux_client_request_alive: entering 
debug3: mux_client_request_alive: done pid = 14572 
debug3: mux_client_request_session: session request sent 
debug1: mux_client_request_session: master session id: 2 
debug3: mux_client_read_packet: read header failed: Broken pipe 
debug2: Received exit status from master 0 
Shared connection to infappr closed. 

    "module_stdout": "Traceback (most recent call last): 
    File "//.ansible/tmp/ansible-tmp-1471342470.57-207842142718136/ping", line 6, in <module> 
    import base64 
    File "/usr/local/lib/python2.7/base64.py", line 11, in <module> 
    import binascii 
ImportError: Failed to load /usr/local/lib/python2.7/lib-dynload/binascii.sl 

좀 더 자세히 설명합니다.

클라이언트 호스트

# uname -a 
HP-UX infappr B.11.31 U 9000/800 
# ll /usr/local/lib/python2.7|grep "lib-dynload" 
drwxr-xr-x 2 root sys 8192 Aug 16 12:19 lib-dynload 
# ll /usr/local/lib/python2.7/lib-dynload/binascii.sl 
-rwxr-xr-x 1 root sys 32768 Jun 28 16:06 /usr/local/lib/python2.7/lib-dynload/binascii.sl 

좀 더 details.Some 더 details.Some 더 details.Some 더 details.Some 더 details.Some 더 details.Some 더 details.Some 더 details.Some 더 details.Some 더 자세한 사항. 좀 더 자세히. 좀 더 자세히. 좀 더 자세히. 좀 더 자세히. 좀 더 자세히. 좀 더 자세히.

다른 세부 정보를 모른다 !!!!! 필요한 공유 라이브러리에

답변

0

문제

# ldd /usr/local/lib/python2.7/lib-dynload/binascii.sl 
     /usr/local/lib/libpython2.7.sl =>  /usr/local/lib/libpython2.7.sl 
     /usr/lib/libm.2 =>  /usr/lib/libm.2 
     /usr/lib/libdld.2 => /usr/lib/libdld.2 
     /usr/lib/libc.2 =>  /usr/lib/libc.2 
     /usr/lib/libdld.2 => /usr/lib/libdld.2 
     /usr/lib/librt.2 =>  /usr/lib/librt.2 
     /usr/lib/libnsl.1 => /usr/lib/libnsl.1 
     /usr/lib/libxti.2 => /usr/lib/libxti.2 
     /usr/lib/libc.2 =>  /usr/lib/libc.2 
/usr/lib/dld.sl: Can't find path for shared library: libz.sl 
/usr/lib/dld.sl: No such file or directory 

도서관 다운로드 경로 http://hpux.connect.org.uk/hppd/hpux/Misc/zlib-1.2.8/