centos 解决/usr/bin/ld: cannot find -lfl 问题。

安装glimpse-4.18.6出现下面问题:

gcc  -o htuml2txt lex.yy.o -lfl

/usr/bin/ld: cannot find -lfl
collect2: ld returned 1 exit status

make[1]: *** [htuml2txt] Error 1

其中flex 语法解析已安装,

$ sudo yum install flex
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.cn99.com
 * updates: mirrors.njupt.edu.cn
Package flex-2.5.35-9.el6.x86_64 already installed and latest version
Nothing to do

再安装以下包支持make

 sudo yum install flex-devel  

sudo make


你可能感兴趣的:(linux,软件安装)