html2image 不工作

发布于 2024-09-28 18:28:34 字数 129 浏览 0 评论 0原文

当我尝试运行 html2image 命令进行 html 到图像转换时显示:

“html2image:加载共享库时出错:libasound.so.2:无法打开共享对象文件:没有这样的文件或目录”

This is displaying when I try to run html2image command for html to image conversion:

"html2image: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

标点 2024-10-05 18:28:34

ubuntu 存在一些问题,在尝试 html 图像时获取这些内容:

AUDIT: Fri Oct 22 16:15:42 2010: 28352: client 1connected from local host ( uid=1000 gid=1000 pid=29515 )
Xlib:显示“:1.0”上缺少扩展名“RANDR”。
当前目录:/var/www/pressflow/html2image/libxpcom.so
无法启动 XPCOM.ubuntu@ip-10-243-110-162:/var/www/pressflow/html2image$ 审核:2010 年 10 月 22 日星期五 16:15:42 2010:28352:客户端 1 已断开连接
[dix] 无法初始化字体路径元素 /usr/share/fonts/X11/misc,从列表中删除!
[dix] 无法初始化字体路径元素 /usr/share/fonts/X11/cyrillic,从列表中删除!
[dix] 无法初始化字体路径元素 /usr/share/fonts/X11/100dpi/:unscaled,从列表中删除!
[dix] 无法初始化字体路径元素 /usr/share/fonts/X11/75dpi/:unscaled,从列表中删除!
[dix] 无法初始化字体路径元素 /usr/share/fonts/X11/Type1,从列表中删除!
[dix] 无法初始化字体路径元素 /usr/share/fonts/X11/100dpi,从列表中删除!
[dix] 无法初始化字体路径元素 /usr/share/fonts/X11/75dpi,从列表中删除!
[config/dbus] 无法注册对象路径

There is some issue with ubuntu, getting these when tried html to image:

AUDIT: Fri Oct 22 16:15:42 2010: 28352: client 1 connected from local host ( uid=1000 gid=1000 pid=29515 )
Xlib: extension "RANDR" missing on display ":1.0".
current dir: /var/www/pressflow/html2image/libxpcom.so
Couldn't start XPCOM.ubuntu@ip-10-243-110-162:/var/www/pressflow/html2image$ AUDIT: Fri Oct 22 16:15:42 2010: 28352: client 1 disconnected
[dix] Could not init font path element /usr/share/fonts/X11/misc, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/100dpi/:unscaled, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/Type1, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/100dpi, removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/75dpi, removing from list!
[config/dbus] couldn't register object path

聚集的泪 2024-10-05 18:28:34

在 Ubuntu 中解决此问题的正确命令是:

sudo apt-get install libasound2

您还可以从最新版本的 Chromium 中获得最佳效果。

The correct command to resolve this in Ubuntu is:

sudo apt-get install libasound2

You will also get the best milage from having the latest version of Chromium.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文