标签归档:squid

Linux(CentOS)安装代理服务器(squid)遇到的编译问题

最近在国外搞到一个比较便宜的VPS,一个月512才$8,而且这个VPS有个特点就是要自己装系统,技术当然是VNC啦,不过麻烦的是系统要自己优化和维护。今天要在上面架一个VPS,遇到如下的麻烦,当然一看就知道是C编译程序没有啦,对Linux我新手,所以只有百度和GOOGLE啦,下面的是比较有用的处理过程。内容是CP的,请原谅。。。

以下是我编译时报的错误

[root@localhost squid]# ./configure –prefix=/usr/squid
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking how to create a ustar tar archive… gnutar
checking whether to enable maintainer-specific portions of Makefiles… no
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: no acceptable C compiler found in $PATH
See `config.log’ for more details.

安装GCC

# yum -y install gcc

先要用yum install yum-fastestmirror更新下源

///////////////////////////////////////////////

如果遇到g++/c++问题,可以执行如下

yum install gcc* -y

 

继续阅读