I have written a php extension module, you need to call another dynamic library in the extension module, but also write your own. Linux under How

Source: Internet
Author: User
Tags postgresql
This is the case.
Made two dynamic library, one is the operation of SQLite, one is the operation of PostgreSQL. These two dynamic library interfaces are the same.
Then make a php extension module, call the SQLite dynamic Library or PostgreSQL dynamic library.
Windows is normal, when the link will find the corresponding LIB, call SQLite or PostgreSQL line.
But Linux, when compiling PHP extension module, only your change files, not to find the dynamic library. The compilation was passed, but it went wrong when it was run. How to settle down.


Reply to discussion (solution)

First LDD See if your extension has found a dynamic library.
If you can search for a path by adding a dynamic library in ld.so.conf

Find a way,
Modify CONFIG.M4
Php_add_library_with_path (DBSL,/lib64, Assetsctl_shared_libadd)

First LDD See if your extension has found a dynamic library.
If you can search for a path by adding a dynamic library in ld.so.conf
How did you change it, please? I have also encountered this mistake!

  • 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.