ruby-on-rails - heroku/rails/chrome/selenium:加载共享库时出错:libxshmfence.so.1
问题描述
在 Heroku 上的 RoR 上使用 Selenium 和 Chrome 运行 Capybara。直到昨天我更新到 Chrome v88 时,一切都运行良好。
我收到以下错误:
/app/.apt/opt/google/chrome/chrome: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory
Heroku stack 20. 到目前为止还没有找到有类似问题的人。
如何判断是否是 chrome 问题?chromedriver 问题?一个heroku问题?任何帮助是极大的赞赏
解决方案
从 chrome buildpack 页面:
https://github.com/heroku/heroku-buildpack-google-chrome/issues/105
1 添加构建包:
“https://github.com/heroku/heroku-buildpack-apt”
2 在应用程序的根目录添加一个名为 Aptfile 的文件
3 在文件中粘贴 libxshmfence-dev
推荐阅读
- python - 在数据框中的布尔类型列上
- html - CSS 类选择器应用于没有指定类的 div?
- teradata - 替换 Teradata 中的重复 ID
- kubernetes - How can I delete the Kubernetes dashboard from kube-system?
- c - C ++中未引用的形式参数警告(Visual Studio)
- c++ - P1236R1:为什么 c++ 标准在定义整数时试图远离“位”这个词?
- angularjs - CVVMask=true 选项对支付网关不起作用?
- c# - 自定义 ListViewItem (UWP) 的 DragUI
- opencart - Opencart 3 类别描述可见性问题
- java - REST Web Service xml 参数顺序