问题
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