树莓派3系统CENTOS7.0 安装seafile 树莓派版6.07 出错

[root@centos-rpi3 seafile-server-6.0.7]# ./setup-seafile.sh

This script will guide you to config and setup your seafile server.

Make sure you have read seafile server manual at

    https://github.com/haiwen/seafile/wiki

Note: This script will guide your to setup seafile server using sqlite3,
which may have problems if your disk is on a NFS/CIFS/USB.
In these cases, we sugguest you setup seafile server using MySQL.

Press [ENTER] to continue

Checking packages needed by seafile …

Checking python on this machine …

Can’t find a python executable of version 2.7 or above in PATH
Install python 2.7+ before continue.
Or if you installed it in a non-standard PATH, set the PYTHON enviroment varirable to it

检查一下你服务器上的 python 安装

同@lian同学说的,首先检查你的Python安装好了没,是不是2.7的版本。
命令:python -V
如果安装没问题,检查Python安装的路径是否有变化
命令:echo $PATH
确认你的Python是否安装在了这些路径下面

之前我在树莓派上安装的时候也遇见了你的问题,上面两步检查了都没问题,于是我看了下setup-seafile-mysql.sh这个脚本文件,发现上述错误提示相关的一段函数代码:

引用
function check_python_executable() {
if [[ “$PYTHON” != “” && -x $PYTHON ]]; then
return 0
fi

if which python2.7 2>/dev/null 1>&2; then
    PYTHON=python2.7
elif which python27 2>/dev/null 1>&2; then
    PYTHON=python27
else
    echo
    echo "Can't find a python executable of version 2.7 or above in PATH"
    echo "Install python 2.7+ before continue."
    echo "Or if you installed it in a non-standard PATH, set the PYTHON enviroment varirable to it"
    echo
    exit 1
fi

}

我想起来我安装在树莓派上的CentOS-Userland-7-armv7hl-Minimal-1708-RaspberryPi3版本,默认是没有安装which命令的。所以安装一下,这个问题就解决了
命令:yum install which