Skip to main content

Thread: Python Error message always comes up


hello,
everytime type console gives error (eg. command not found) these 2 errors:
code:
/usr/bin/python: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required /usr/bin/python) /usr/bin/python: /usr/local/lib/libssl.so.1.0.0: no version information available (required /usr/bin/python)
apparently has systemvariables , installation of 2 versions of these libraries:
code:
$ locate libcrypto.so.1.0.0 /lib/i386-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib32/libcrypto.so.1.0.0 /usr/lib/i386-linux-gnu/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib32/libcrypto.so.1.0.0 /usr/local/lib/libcrypto.so.1.0.0 /usr/local/src/amap/openssl-1.0.0e/libcrypto.so.1.0.0
and

code:
$ locate libcrypto.so.1.0.0 /lib/i386-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib32/libcrypto.so.1.0.0 /usr/lib/i386-linux-gnu/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib32/libcrypto.so.1.0.0 /usr/local/lib/libcrypto.so.1.0.0 /usr/local/src/amap/openssl-1.0.0e/libcrypto.so.1.0.0
but have no clue how fix it. can help? thanks,
jones

i've had same problem little while. warning message , can safely ignored.

however, me, driving me nuts. after bit of digging around have managed resolve although took little effort.

said have 2 versions of openssl libraries installed. assume second copy came source install. if not may out of luck, because solution won't work you.

problem ubuntu binaries linked libcrypto , libssl (e.g. /usr/bin/ssh) expect symbol version information available in shared libraries.

example if run following without built-from-source libraries in library path:

ldd -v /usr/bin/ssh | grep crypto

output:
...
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f856b09c000)
...
version information:
/usr/bin/ssh:
libdl.so.2 (glibc_2.2.5) => /lib/x86_64-linux-gnu/libdl.so.2
libresolv.so.2 (glibc_2.2.5) => /lib/x86_64-linux-gnu/libresolv.so.2
libgssapi_krb5.so.2 (gssapi_krb5_2_mit) => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2
libcrypto.so.1.0.0 (openssl_1.0.0) => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
...

running built-from-source libraries in path get:
...
libcrypto.so.1.0.0 => /usr/local/ssl/lib/libcrypto.so.1.0.0 (0x00007fceb4d4b000)
...
version information:
/usr/bin/ssh:
libdl.so.2 (glibc_2.2.5) => /lib/x86_64-linux-gnu/libdl.so.2
libresolv.so.2 (glibc_2.2.5) => /lib/x86_64-linux-gnu/libresolv.so.2
libgssapi_krb5.so.2 (gssapi_krb5_2_mit) => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2
libcrypto.so.1.0.0 (openssl_1.0.0) => not found
...


solution build source ensure version information included. unfortunately information not build through source distributed openssl project. added patch provided ubuntu/debian package maintainers. first step download source ubuntu package. got here (for 12.04):
http://packages.ubuntu.com/source/precise/openssl

download debian.tar.gz file, unzip , extract it. after file debian/patches/version-script.patch

go directory openssl source (i.e. source downloaded openssl.org...or wherever) , type following:

patch -p1 </path_to_the_file_here/version-script.patch

need re-run config script, , make normal, e.g. typically:
./config shared
make
make test
make install

should work without warning message!

matt


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Python Error message always comes up


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account