在OS X上运行xvfb [英] xvfb-run on OS X

查看:398
本文介绍了在OS X上运行xvfb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在OS X上运行xvfb?

Is it possible to have xvfb-run on OS X?

我开发了一个使用xvfb-run的PHP应用程序.在我从事Ubuntu之前,还可以.现在,我已移至Mac,该应用程序无法正常工作.

I develop a PHP application which uses xvfb-run. Before I worked on Ubuntu and it was OK. Now I've moved onto Mac and the application does not work.

或者也许任何跨平台的替代品都可以在两个Linux/OS X上使用它?

Or maybe any cross-platform alternative is available to use it on both Linux/OS X?

推荐答案

OS X不再包含X11:

X11 is no longer included with OS X:

https://support.apple.com/en-us/HT201341

OS X的X11服务器和客户端库可从XQuartz项目中获得:

X11 server and client libraries for OS X are available from the XQuartz project:

http://xquartz.macosforge.org/

我不确定它是否包括所有其他X好东西,例如Xvfb.在这种情况下,您可以自己编译.这些选项:

I'm not sure if it includes all the other X goodies like Xvfb. In that case you could compile it yourself; with these options:

--disable-xquartz --enable-xvfb --enable-xnest --enable-kdrive

更多信息在这里:

https://www.xquartz.org/Developer-Info.html

IMO: 似乎最好在Mac OS X上直接使用wkhtmltoimage,而不需要使用X:

IMO: It seems like you would be better of by using wkhtmltoimage straight on the mac osx, removing the need for X:

http://minimul.com/install-osx-wkhtmltoimage-binaries.html

这篇关于在OS X上运行xvfb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆