代码拉取完成,页面将自动刷新
同步操作将从 Arjun/ollnmp 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
init_environment(){
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
yum -y install libffi libffi-devel
}
init_python(){
cd ${source_dir}/lib
tar -zxvf ${pythonTarName}.tgz
\cp ${pythonTarName} /usr/local/${pythonTarName} -rf
cd /usr/local/${pythonTarName}
./configure --prefix=/usr/python --enable-shared CFLAGS=-fPIC --enable-optimizations
make
make install
}
link_python(){
mv /usr/bin/python /usr/bin/python.bak
ln -s /usr/python/bin/python3 /usr/bin/python3
ln -s /usr/python/bin/pip3 /usr/bin/pip3
ln -s /usr/bin/python3 /usr/bin/python
touch /etc/ld.so.conf.d/python3.conf
echo /usr/local/${pythonTarName} > /etc/ld.so.conf.d/python3.conf
python -V
}
init_environment
init_python
link_python
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。