문제

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.

도움이 되었습니까?

해결책 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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top