末日前几天

the days before Doomsday

squid-3.2.5 CentOS X86_64 Configure: Error: C Compiler Cannot Create Executables

squid-3.2.5 在CentOS X86_64位的环境下默认配置编译会遇到错误,如下:

checking whether the C compiler works... no
configure: error: in `/opt/packages/goodlePackages/squid/squid_src/squid-3.2.5':
configure: error: C compiler cannot create executables

x86_64解决办法如下:

1
2
3
./configure CXXFLAGS="-g -O2"  CFLAGS="-O2 -march=x86-64" --prefix=/usr/local/squid
make
make install

i686

1
2
3
./configure -disable-64bit CFLAGS="-O3 -march=i686" --prefix=/usr/local/squid
make
make install

Comments