按照本指南尝试在CoreOS上安装Python:
https://github.com/judexzhu/Install-Python-on-CoreOs
#!/bin/bash -uxe
VERSION=2.7.13.2715
PACKAGE=ActivePython-${VERSION}-linux-x86_64-glibc-2.12-402695
# make directory
mkdir -p /opt/bin
cd /opt
wget http://downloads.activestate.com/ActivePython/releases/${VERSION}/${PACKAGE}.tar.gz
tar -xzvf ${PACKAGE}.tar.gz
mv ${PACKAGE} apy && cd apy && ./install.sh -I /opt/python/
ln -sf /opt/python/bin/easy_install /opt/bin/easy_install
ln -sf /opt/python/bin/pip /opt/bin/pip
ln -sf /opt/python/bin/python /opt/bin/python
ln -sf /opt/python/bin/python /opt/bin/python2
ln -sf /opt/python/bin/virtualenv /opt/bin/virtualenv
该脚本在CoreOS上的root用户下运行良好。但是在core
用户下,它无法正常工作。
如果使用此:
cat > ~/.bashrc << EOF
export PATH=\$PATH:/opt/bin
EOF
显示-bash: /home/core/.bashrc: Read-only file system
。
怎么做?