tag:gpgtools.tenderapp.com,2011-11-04:/discussions/beta/973-cant-build-macgpg2-ruby-errorGPGTools: Discussion 2016-02-24T12:12:30Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/365866412015-04-15T13:02:09Z2015-04-15T13:02:16ZCan't build MacGPG2 - ruby error<div><p>What's really confusing is that this seems to be using both a
brew included in the repo, and my system's brew. I updated both,
same error.</p>
<pre>
<code> git clone https://github.com/GPGTools/MacGPG2.git
\cd MacGPG2
git submodule init
git submodule update
make
cd cd /usr/local/Library
cd /usr/local/Library
git pull origin master
cd -
cd /System/Library/Frameworks/Ruby.framework/Versions
brew update
brew doctor
cd -
make
./build.sh
==> Building MacGPG2
Error: /Users/richardbondi/gpg/git/MacGPG2/build/homebrew/Library/Homebrew/formula.rb:579: syntax error, unexpected ':', expecting keyword_then or ';' or '\n'
/Users/richardbondi/gpg/git/MacGPG2/build/homebrew/Library/Homebrew/formula.rb:868: syntax error, unexpected keyword_end, expecting end-of-input
Please report this bug:
https://github.com/Homebrew/homebrew/wiki/troubleshooting
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Users/richardbondi/gpg/git/MacGPG2/build/homebrew/Library/Homebrew/formula_installer.rb:5:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Users/richardbondi/gpg/git/MacGPG2/build/homebrew/Library/Homebrew/cmd/install.rb:1:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Users/richardbondi/gpg/git/MacGPG2/build/homebrew/Library/brew.rb:67:in `require?'
/Users/richardbondi/gpg/git/MacGPG2/build/homebrew/Library/brew.rb:106:in `<main>'</code>
</pre></div>rbonditag:gpgtools.tenderapp.com,2011-11-04:Comment/365866412015-06-26T12:38:21Z2015-06-26T12:38:21ZCan't build MacGPG2 - ruby error<div><p>Hi,</p>
<p>since we have made some significant changes to homebrew which
are necessary for our build system to work, it's harder to apply
them to newer versions of homebrew.<br>
Unfortunately it will take some time for us to make the MacGPG2
build system compatible with OS X Yosemite.<br>
What worked for me was to symlink the old Ruby.framework from
Mavericks.<br>
It's a dirty workaround but one that should help.</p></div>Luke Le