Heroku Buildpack error: Could not open library 'opencc'

妖精的绣舞 提交于 2019-12-24 19:30:56

问题


Trying to create a Heroku buildpack for OpenCC, mainly following this tutorial. Below is my binary and buildpack on github:

https://github.com/echan00/opencc-binary

https://github.com/echan00/opencc-buildpack

I am getting an error when pushing to Heroku:

remote: LoadError: Could not open library 'opencc': opencc: cannot open shared object file: No such file or directory.
remote: Could not open library 'libopencc.so': libopencc.so: cannot open shared object file: No such file or directory

回答1:


Solved this by adding config var or environment variable LD_LIBRARY_PATH pointing to the library



来源:https://stackoverflow.com/questions/54059746/heroku-buildpack-error-could-not-open-library-opencc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!