---
title: "Linux操作问题解答"
author: "J2EE大鸟"
date: "2012-06-03T16:40:27Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2012-06-03T16:42:12Z"
id: 1548161
url: "https://benworld.iteye.com/blog/1548161"
---

1\. configure: error : C++ preprocessor "/lib/cpp" fails sanity check

    See 'config.log' for more details

 

[http://www.linuxsense.org/archives/121.html](http://www.linuxsense.org/archives/121.html)    问题解决方案 ：

![](http://dl.iteye.com/upload/attachment/0069/0530/9554693a-73be-30bd-ad28-a148b5da25db.png)  
 

2\. Linux复制命令 linux怎么复制文件夹

![](http://dl.iteye.com/upload/attachment/0069/0532/a42311b5-5d9b-3fa6-bbbb-608e8f3d98e6.jpg)  
 

 

3\. vmware workstation 8 download 下载地址    [http://370135415.blog.51cto.com/952425/664664](http://370135415.blog.51cto.com/952425/664664)

4.   Linux中在没有gcc编译器的情况下如何安装gcc

![](http://dl.iteye.com/upload/attachment/0069/0534/933f6354-0aa2-3a98-a75e-7deb8f8c0615.png)  
 

5.  linux 如何挂起进程

![](http://dl.iteye.com/upload/attachment/0069/0536/55488cc5-a326-34b9-bb9f-ea5ad0ae5ece.png)  
 

 

 

![](http://dl.iteye.com/upload/attachment/0069/0538/f3d2cc2e-fded-325d-bd76-dd1cb6245815.png)  
   
![](http://dl.iteye.com/upload/attachment/0069/0540/5d79d0e5-84f5-3ab0-83e9-b68f019872ff.png)  
 

8.  编译heartbeat及其他文件时，出现Werror 问题

![](http://dl.iteye.com/upload/attachment/0069/0543/6ff44504-71e6-3e95-bce9-41b4ff5e02a3.png)  
 

只需在相应的文件夹下，例如buildtools中，将makefile中 -Werror 替换成空格即可

[http://www.360doc.com/content/12/0114/00/834950\_179273467.shtml](http://www.360doc.com/content/12/0114/00/834950_179273467.shtml)

9.  

"-Werror "产生的教训

案例:

在准备重新做squid-3.0.STABLE16squid-3.0.STABLE16配置 make 时出现以下错误使make中断

       g++ -DHAVE\_CONFIG\_H -DDEFAULT\_CONFIG\_FILE=\\"/usr/local/squid/etc/squid.conf\\" -I. -I../include -I. -I.                -I../include -I../include -I../lib/libTrie/include    -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments                 -g -O2 -MT client\_side.o -MD -MP -MF $depbase.Tpo -c -o client\_side.o client\_side.cc &&\\  
        mv -f $depbase.Tpo $depbase.Po  
cc1plus: warnings being treated as errors  
client\_side.cc: In function 'int connKeepReadingIncompleteRequest(RefCount&lt;ConnStateData&gt;&)':  
client\_side.cc:2144: error: comparison between signed and unsigned integer expressions  
make\[3]: \*\** \[client\_side.o] Error 1  
make\[3]: Leaving directory \`/root/squid-3.0.STABLE16/src'  
make\[2]: \*\** \[all-recursive] Error 1  
make\[2]: Leaving directory \`/root/squid-3.0.STABLE16/src'  
make\[1]: \*\** \[all] Error 2  
make\[1]: Leaving directory \`/root/squid-3.0.STABLE16/src'  
make: \*\** \[all-recursive] Error 1

经过多次检查确实编译环境没有问题,依赖也没有问题,问题就出在"cc1plus: warnings being treated as errors" 上gcc里如果加上 -Werror 来严格检查编译环境使用它能够使gcc产生告警也认为是错误.   faint. 就在这里 .当时没有仔细看错误输出,想当然地认为环境有问题,于是多折腾了半天时间.

解决这个问题也很简单,其实错误输出时都已有提示:

1, 进入 ./src目录 , 备份Makefile

2, 编辑Makefile 用空格替换所有的"-Werror " 后保存退出.

重新make && make install 一路顺畅