当我运行时bash ./rebuild.sh
出现以下错误:
vagrant@user:/var/www/html/wp-content/xdebug$ bash ./rebuild.sh
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
shtool at '/var/www/html/wp-content/xdebug/build/shtool' does not exist or is not executable.
Make sure that the file exists and is executable and then rerun this script.
根据这个答案我应该“从 /var/www/html/ 中删除 noexec 标志”。当我尝试这样做时,我收到另一个错误:
$ sudo mount -o remount,noexec /var/www/html/
unknown mount option `relatime'
valid options:
rw mount read write (default)
ro mount read only
uid =<arg> default file owner user id
gid =<arg> default file owner group id
ttl =<arg> time to live for dentry
iocharset =<arg> i/o charset (default utf8)
convertcp =<arg> convert share name from given charset to utf8
dmode =<arg> mode of all directories
fmode =<arg> mode of all regular files
umask =<arg> umask of directories and regular files
dmask =<arg> umask of directories
fmask =<arg> umask of regular files
我在这里陷入了困境,因为我没有找到太多关于这个问题的信息。我该如何“解决”这个问题?
更新:
来自 xdebug README 文件./rebuild.sh
:“这将运行phpize
、、./configure
和。”make clean
make
make install
当我phpize
单独运行时,我也遇到同样的错误。这是什么原因造成的?
答案1
如果你运行 vagrant provider virtualbox 并且想要删除 relatime,只需像这样输入参数 norelatime:
mount -o remount,ttl=0,norelatime /var/www/html/