html2image 不工作
当我尝试运行 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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
在 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.