LINUX/USR/BIN/LD Cannot find solution

Source: Internet
Author: User
Tags vmware server

problem: Compiling the source code for the application or LIB in the Linux environment often comes with the following error message:/usr/bin/ld:cannot Find-LXXX These messages will have different results as you compile different types of source code, such as:/usr/bin/ld:cannot Find-LC/usr/bin/ld:cannot Find-Lltdl/usr/bin/ld:cannot Find-lxtst where xxx represents the function library file name, as in the example above: libc.so, libltdl.so, libxtst.so. Its naming rules are: Lib+ library name (i.e. XXX) +. So. There are three scenarios in which this can occur:1the system does not install the corresponding Lib2The corresponding Lib version does not match3the symbolic link for Lib (. So) is incorrect and is not linked to the correct library file (. So) for the above three reasons there is an article written very good can refer to the 4th of this article: gcc Command Xiang solution: (1) First judge in/usr/The symbolic link for the corresponding function library file (. So) under Lib will solve the problem if it is incorrectly changed to the correct link target. (2If not symbolic link problem caused, but the system is missing the corresponding Lib installation lib can be resolved. (3How to install the missing lib: with the above three error messages as an example: Error 1 missing libc lib error 2 missing Libltdl Lib Error 3 Lib with Ubuntu missing libxtst For example: First search for the corresponding Lib and then install the job such as: apt -cache Search libc-devapt-cache Search libltdl-Dev Apt-cache Search libxtst-Dev Instance: The following error message appears when compiling source code for Input method Gcin:/usr/bin/ld:cannot Find-LXTST After inspection found that: lib (. so file) Symbolic link is not the correct way to resolve the following: CD/usr/libln-S libxtst.so.6libxtst.so if the/usr/The libxtst.so file cannot be found in the Lib directory, then it means that the system does not have a LIBXTST function library installed. The solution is as follows: Apt-GetInstall libxtst-Dev Environment: VMware Server+ RHEL5.4+fcitx3.63 encountered an error while executing make [[email protected] FCITX-3.6.3] Makemake All-recursivemake[1]: Entering directory '/home/oracle/desktop/fcitx-3.6.3'Making Allinchdocmake[2]: Entering directory '/home/oracle/desktop/fcitx-3.6.3/doc'make[2]: Nothing to being done for' All'.make[2]: Leaving directory '/home/oracle/desktop/fcitx-3.6.3/doc'Making Allinchxpmmake[2]: Entering directory '/home/oracle/desktop/fcitx-3.6.3/xpm'make[2]: Nothing to being done for' All'.make[2]: Leaving directory '/home/oracle/desktop/fcitx-3.6.3/xpm'Making Allinchlibmake[2]: Entering directory '/home/oracle/desktop/fcitx-3.6.3/lib'make[2]: Nothing to being done for' All'.make[2]: Leaving directory '/home/oracle/desktop/fcitx-3.6.3/lib'Making Allinchsrcmake[2]: Entering directory '/home/oracle/desktop/fcitx-3.6.3/src'Gcc-o2-fno-strength-reduce-g-o2-d_enable_tray-wall-lxpm-lxtst-lpthread-o fcitx ic.o ime.o InputWindow.o Ke YLIST.O main.o mainwindow.o myerrorshandlers.o punc.o py.o pyfa.o pymaptable.o pyparser.o sp.o tools.o ui.o table.o XIM.O QW.O tray.o traywindow.o dbus.o vk.o about.o quickphrase.o autoeng.o extra.o internalversion.o ImeRemote.o. /LIB/LIBXIMD.A-lX11/usr/bin/ld:cannot Find-Lxtstcollect2:ld returned1Exit statusmake[2]: * * * [FCITX] Error1make[2]: Leaving directory '/home/oracle/desktop/fcitx-3.6.3/src'make[1]: * * * [all-recursive] Error1make[1]: Leaving directory '/home/oracle/desktop/fcitx-3.6.3'Make: * * * [ALL] Error2after checking in the catalog/usr/bin/ld not found below LXTST

Transferred from: http://blog.csdn.net/mzwang123/article/details/6702889

LINUX/USR/BIN/LD Cannot find solution

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.