首页 > 解决方案 > 在 Heroku 中使用 Wine

问题描述

谁能帮我弄清楚如何在 Heroku 中使用 Wine?我使用https://github.com/TheBotlyNoob/heroku-buildpack-wine自述文件中的按钮将 Wine 部署到 Heroku 。但是当我尝试像这样运行 Wine 时: 尝试在 Heroku 中运行 Wine

它没有用。我是否试图错误地运行 Wine?或者我还需要做什么?谢谢。

标签: linuxherokuwine

解决方案


我已经安装了两个版本的 wine(stable 和 release),但是当我尝试在 bash 上执行命令时,shell 回答该文件不存在:

bash: /app/vendor/wine/bin/wine: No such file or directory

Heroku bash:酒不是这样的文件

即使安装了 wine 并且文件是可执行的:

葡萄酒

如果您尝试启动记事本,则 bash 的答案是相同的:

/app/vendor/wine/bin/notepad: 46: exec: /app/vendor/wine/bin/wine: not found

即使葡萄酒在路径中。

结论:葡萄酒不执行。在 Heroku 上使用 wine 的一种方法是从 ubuntu 下载包含他的依赖项的包,将它们放入存储库并安装它。希望它有用。


推荐阅读