xvfb-run: error: xauth command not found 解决方式

http://tokanao.com/blog/2016/07/13/blog.html

错误提示

array(2) { 
    [0]=> string(27) "which: no xauth in ((null))"
    [1]=> string(40) "xvfb-run: error: xauth command not found"
}

  

解决方式

$ vi /usr/bin/xvfb-run

  -if ! which xauth >/dev/null; then
  -    error "xauth command not found"
  -    exit 3
  -fi
  +#if ! which xauth >/dev/null; then
  +#    error "xauth command not found"
  +#    exit 3
  +#fi

显示出bash的行数及修改后的结果

 

猜你喜欢

转载自www.cnblogs.com/xzlive/p/9084466.html