How to make your dynamic linked library files called in linux

Source: Internet
Author: User
How can I enable my dynamic link library file to have many dynamic link library files on the DVDs that are called for VxWorks installation in linux, when starting some services, you need to call these dynamic link library files. otherwise, some functions cannot be started. report: The relevant library files cannot be found. Solution... how can I enable my dynamic link library file to have many dynamic link library files on the DVDs that are called for VxWorks installation in linux, when starting some services, you need to call these dynamic link library files. otherwise, some functions cannot be started. report: The relevant library files cannot be found. There are several solutions: 1. you can directly create a soft connection to link a dynamic library file to/lib or/usr/lib. Ln-s 'pwd'/xxx. so/lib/xxx. so this method is suitable for calling a few fixed and dynamic link library files. However, if there are many files or these files are also updated frequently, it is cumbersome to do so. 2. if you directly add the path of the dynamic link library file to the path of the system search library, there are two ways: 1) change/etc/ld. so. conf, add your own dynamic link library path, as if you need to update/etc/ld. so. cache; this method should be available and has not been tried. 2) change the environment variable LD_LIBRARY_PATH and add the dynamic link library path to the environment variable. Export LD_LIBRARY_PATH =/Jenkins/workspace/Mefa_Nightly_regression_Job02/MAIN/mefa_platform/logs_1st_round/mefaImage/simulatorTools: $ LD_LIBRARY_PATH the dynamic link library file in this environment variable will be called earlier than/lib or/usr/lib in the system. After linux is restarted, the environment variable becomes invalid. this method is more suitable for automated testing.
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.