当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 6

网络工作室/ollnmp
暂停

forked from Arjun/ollnmp
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
python.sh 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
18818701315@163.COM 提交于 2019-04-13 01:41 . 提交初始化代码
#!/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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/jf12458/ollnmp.git
git@gitee.com:jf12458/ollnmp.git
jf12458
ollnmp
ollnmp
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385