200 ask a question found by strace-php Tutorial

Source: Internet
Author: User
200 ask a problem found by strace in linux. run strace/usr/php/bin/php in the command line.

Appears:
Open ("/usr/libmemcached/lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/libmcrypt // lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/libevent/lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/libpng/lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/curl/lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/ImageMagick/lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/jpeg/lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/libxml2/lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/openssl/lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/zlib/lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/bzip2/lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/freetype2/lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/libmcrypt/lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/libmemcached // lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/usr/mysql/lib/libnss_files.so.2", O_RDONLY) =-1 ENOENT (No such file or directory)
Open ("/etc/ld. so. cache", O_RDONLY) = 4
Fstat (4, {st_mode = S_IFREG | 0644, st_size = 17301,...}) = 0
Mmap (NULL, 17301, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7fbf98115000
Close (4) = 0
Open ("/lib64/libnss_files.so.2", O_RDONLY) = 4


Full screen is like this open cannot be found. why cannot It be directly located (the last line? Is there a configuration problem?


Reply to discussion (solution)

The content of the/etc/ld. so. conf configuration file.

[Root @ localhost ~] # Cat/etc/ld. so. conf
Include ld. so. conf. d/*. conf
/Usr/local/bzip2/lib
/Usr/local/openssl/lib
/Usr/local/libmcrypt/lib
/Usr/local/lib
/Usr/local/freetype2/lib
/Usr/local/mhash/lib
/Usr/local/db/lib
/Usr/local/fontconfig/lib

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.