CentOS 7.2 安装失败
CentOS 7.2 安装失败http://www.ysmiji.com/lnmp-install.zip
麻烦军哥看看 谢谢
Installing:
gcc-c++ x86_64 4.8.5-44.el7 base 7.2 M
Installing for dependencies:
libstdc++-devel x86_64 4.8.5-44.el7 base 1.5 M
Updating for dependencies:
libstdc++ x86_64 4.8.5-44.el7 base 306 k
Transaction Summary
================================================================================
Install1 Package(+1 Dependent package)
Upgrade ( 1 Dependent package)
Total download size: 9.0 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
Exiting on user cancel
。。。。。。
/bin/sh ./libtool--tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src-I./src -DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc-Wno-unused-result -DNO_FRAME_POINTER-c -o src/libtcmalloc_minimal_la-tcmalloc.lo `test -f 'src/tcmalloc.cc' || echo './'`src/tcmalloc.cc
libtool: compile:g++ -DHAVE_CONFIG_H -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -DNO_FRAME_POINTER -c src/tcmalloc.cc-o src/.libs/libtcmalloc_minimal_la-tcmalloc.o
./libtool: line 1858: g++: command not found
make: *** Error 1
这个好像是centos 7上某些版本下存在的bug,可以尝试一下方法:
编辑 /usr/lib/python2.7/site-packages/urlgrabber/grabber.py查找 raise KeyboardInterrupt 一般在15xx行左右 elif errcode == 42: 这一行及注释下面,将 raise KeyboardInterrupt 这行前面加上 # 或删掉
保存,然后再运行:
yum clean metadata
yum clean all
yum install gcc-c++ 看一下能否正常安装
页:
[1]