Heroku Buildpack error: Could not open library 'opencc'

Heroku Buildpack error: Could not open library 'opencc'

尝试为 OpenCC 创建一个 Heroku buildpack,主要遵循这个 tutorial。下面是我在 github:

上的二进制文件和构建包

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

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

推送到 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

通过添加指向库的配置变量或环境变量LD_LIBRARY_PATH解决了这个问题