This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copy the gem location to clipboard | |
| bundle show yajl-ruby | pbcopy | |
| # Example: /Users/gedrovits/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/yajl-ruby-0.8.2 | |
| cd <cmd + v> | |
| cd ext/yajl | |
| # Now we need to replace 'inline void' to 'static void'. This will also create backup of old files. | |
| sed -i '.bak' 's/inline void/static void/g' yajl_ext.h yajl_ext.c | |
| # Now we must rebuild changed extension | |
| make clean all | |
| # After this you should not have any problems with yajl-ruby |
OlderNewer