Deploy Gollum wiki with Engine Yard

半城伤御伤魂 提交于 2019-12-13 04:26:00

问题


Gollum is "A simple, Git-powered wiki with a sweet API and local frontend." It's hosted on GitHub: http://github.com/github/gollum

Deploying my site to EngineYard is generating this error.

Fetching gem metadata from https://rubygems.org/ Installing charlock_holmes (0.6.9.4) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

It seems to be an issue with installing an dependency called 'ICU'. I've installed ICU using the 'install unix package' button on the EngineYard dashboard but can't seem to fix this.


回答1:


I see you've just submitted this issue as support ticket to us at Engine Yard support, so this issue shall be picked up by a support engineer shortly and responded to.

Thanks,

Paul.




回答2:


To get the charlock_holmes gem working you need to pass a number of flags using bundle config.

Run the following from the command line within the project folder:

$ bundle config --local build.charlock_holmes --with-ldflags='-L. -Wl,-O1 -Wl,--as-needed -rdynamic -Wl,-export-dynamic -Wl,--no-undefined -lz -licuuc'

Commit the newly created file (/.bundle/config) to version control and redeploy.

This solution based largly on advice I received from Engine Yard support who also referenced from within the projects github issues. https://github.com/brianmario/charlock_holmes/issues/32#issuecomment-17033186



来源:https://stackoverflow.com/questions/21568592/deploy-gollum-wiki-with-engine-yard

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