Error reported when running Nginx after Ubuntu upgrade

Source: Internet
Author: User
When Nginx is run after Ubuntu is upgraded, the following error occurs: $/usr/local/nginx/sbin/nginx: errorwhileloadingsharedlibraries: libssl. so.0.9.8: cannotopen#dobjectfile: Nosuchfileordirectory cannot be found from the error message. how does so.0.9.8 solve this problem?

When Nginx is run after Ubuntu is upgraded, the following error occurs:

$/Usr/local/nginx/sbin/nginx: error while loading shared libraries: libssl. so.0.9.8: cannot open shared object file: No such file or directory

The error message indicates that libssl. so.0.9.8 is not found.

How can this problem be solved?

1. Search for Missing libraries through ldd

  1. $ Ldd $ (which/usr/local/nginx/sbin/nginx)
  2. Linux-gate.so.1 => (0xb7773000)
  3. Libcrypt. so.1 =>/lib/i386-linux-gnu/libcrypt. so.1 (0xb7729000)
  4. Libpcre. so.3 =>/lib/i386-linux-gnu/libpcre. so.3 (0xb76ea000)
  5. Libssl. so.0.9.8 => not found
  6. Libcrypto. so.0.9.8 => not found
  7. Libdl. so.2 =>/lib/i386-linux-gnu/libdl. so.2 (0xb76e4000)
  8. Libz. so.1 =>/lib/i386-linux-gnu/libz. so.1 (0xb76cf000)
  9. Libc. so.6 =>/lib/i386-linux-gnu/libc. so.6 (0xb7553000)
  10. /Lib/ld-linux.so.2 (0xb7774000)
2. Enter the/lib/i386-linux-gnu/directory and find the original is

Libssl. so.0.9.8 libcrypto. so.0.9.8 files are upgraded

Libssl. so.1.0.0 libcrypto. so.1.0.0,

There is no way to solve the dependency when using soft links. In this case, it is best to re-compile the nginx repository and use the upgraded library.

  1. $ Ldd $ (which/usr/local/nginx/sbin/nginx)
  2. Linux-gate.so.1 => (0xb77b8000)
  3. Libcrypt. so.1 =>/lib/i386-linux-gnu/libcrypt. so.1 (0xb776e000)
  4. Libpcre. so.3 =>/lib/i386-linux-gnu/libpcre. so.3 (0xb772f000)
  5. Libssl. so.1.0.0 =>/lib/i386-linux-gnu/libssl. so.1.0.0 (0xb76e1000)
  6. Libcrypto. so.1.0.0 =>/lib/i386-linux-gnu/libcrypto. so.1.0.0 (0xb753d000)
  7. Libz. so.1 =>/lib/i386-linux-gnu/libz. so.1 (0xb7528000)
  8. Libc. so.6 =>/lib/i386-linux-gnu/libc. so.6 (0xb73ac000)
  9. Libdl. so.2 =>/lib/i386-linux-gnu/libdl. so.2 (0xb73a7000)
  10. /Lib/ld-linux.so.2 (0xb77b9000)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.