1.默认安装的centos7 不能yum
vi /etc/resolv.conf
配置文件添加
search localdomain
nameserver 8.8.8.8
2. linux make 报错 make: *** No targets specified and no makefile found. Stop.
1.yum install gcc-c++ -y
2.wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
tar zxvf ncurses-5.6.tar.gz
cd ncurses-5.6
./configure -prefix=/usr/local -with-shared -without-debug
make
make install
3.python 3 安装过程记录
1.安装python依赖包
yum -y install zlib zlib-devel
yum -y install bzip2 bzip2-devel
yum -y install ncurses ncurses-devel
yum -y install readline readline-devel
yum -y install openssl openssl-devel
yum -y install openssl-static
yum -y install xz lzma xz-devel
yum -y install sqlite sqlite-devel
yum -y install gdbm gdbm-devel
yum -y install tk tk-devel
2.安装过程
官网下载 tgz包
tar -xvzf Python-3.5.1.tgz
cd Python-3.5.1/
./configure --prefix=/usr/python --enable-shared CFLAGS=-fPIC
make
make install