linux上安装程序出现的问题汇总

1.程序在编译过程中出现:variable set but not used [-Werror=unused-but-set-variable]

解决方法:将configure文件和Makefile文件内的-Werror去掉。

 

问题2.<tbb/tbb.h>:no such file or directory.

解决方法:下载tbb库,并将tbb目录copy到/usr/include.(注意是将tbb目录,而不是tbb.h文件)

 

问题3:/bin/ld:can not find -Iz

j解决方法:下载zlib-devel:#yum install zlib-devel

(备注,centos中是zlib-devel,ubuntu中是zlib-dev)

带有-devel一般是开发包:包括运行库和头文件,在需要c/c++编译时需要用到。

不带-devel的包一般是指运行库

 

posted on 2017-06-24 21:39  青萍,你好  阅读(523)  评论(0编辑  收藏  举报

导航