---
title: "/usr/bin/ld: cannot find -l*"
author: "csstome"
date: "2011-09-14T08:36:00Z"
tags: []
slug: "usr-bin-ld-cannot-find-l"
draft: false
lastmod: "2011-10-28T08:47:31Z"
id: 1219502
url: "https://csstome.iteye.com/blog/1219502"
---

今天在编译一个程序的时候出现如下错误：/usr/bin/ld: cannot find -l*

把解决方法在此贴一下，方便以后查阅。

原因：库文件缺失。

方法一：可用yum install libtool-l\*来安装

方法二：当方法一不能成功时，可从其他机器拷贝文件到本机/usr/lib64/。具体文件：/usr/lib64/目录下与lib\*相关文件（主要是二个：lib\*.a和lib\*.so）；