安装 PHP: bash: ./configure: 权限被拒绝
Installing PHP: bash: ./configure: Permission denied
我正在尝试为 PThreads 安装 PHP。 (PHP - Installation Manual)
在安装中我需要配置但是当我使用这个命令时:
# ./configure --prefix=/usr --with-config-file-path=/etc --enable-maintainer-zts
bash: ./configure: Permission denied
我试图给配置权限:
# chmod +x configure
#
再次输出为:
# ./configure --prefix=/usr --with-config-file-path=/etc --enable-maintainer-zts
bash: ./configure: Permission denied
ls -lah 在目录中显示文件的当前所有者。很可能您的帐户不是所有者,您需要在 php src
的基本目录中执行 sudo chown -r user:group ./*
我正在尝试为 PThreads 安装 PHP。 (PHP - Installation Manual)
在安装中我需要配置但是当我使用这个命令时:
# ./configure --prefix=/usr --with-config-file-path=/etc --enable-maintainer-zts
bash: ./configure: Permission denied
我试图给配置权限:
# chmod +x configure
#
再次输出为:
# ./configure --prefix=/usr --with-config-file-path=/etc --enable-maintainer-zts
bash: ./configure: Permission denied
ls -lah 在目录中显示文件的当前所有者。很可能您的帐户不是所有者,您需要在 php src
的基本目录中执行 sudo chown -r user:group ./*