sportngin / brew-gem

Install gems as homebrew formulas
MIT License
195 stars 21 forks source link

Failed to install gollum #30

Open emilianosantucci opened 7 years ago

emilianosantucci commented 7 years ago

Hi, I can't install gollum with brew gem install gollum --homebrew-ruby, receive ever the same error:

==> Fetching gollum from gem source
Downloaded gollum-4.0.1
Warning: Cannot verify integrity of gollum-4.0.1.gem
A checksum was not provided for this resource
For your reference the SHA256 is: af79532583634cb2bc22dad7c2a36327df5560b924756cdf2f475b3d10e8ef0a
==> /usr/local/bin/gem install /Users/emiliano/Library/Caches/Homebrew/gollum-4.0.1.gem --no-ri --no-rdoc --no-wrapper --no-user-install --install-dir /usr/local/Cellar/gem-gollum/4.0.1
Last 15 lines from /Users/emiliano/Library/Logs/Homebrew/gem-gollum/01.gem:
    --with-icu-lib
    --without-icu-lib=${icu-dir}/lib
    --with-icui18nlib
    --without-icui18nlib
    --with-icui18nlib
    --without-icui18nlib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /usr/local/Cellar/gem-gollum/4.0.1/extensions/x86_64-darwin-14/2.3.0/charlock_holmes-0.7.3/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /usr/local/Cellar/gem-gollum/4.0.1/gems/charlock_holmes-0.7.3 for inspection.
Results logged to /usr/local/Cellar/gem-gollum/4.0.1/extensions/x86_64-darwin-14/2.3.0/charlock_holmes-0.7.3/gem_make.out

READ THIS: https://git.io/brew-troubleshooting

It seem linked on troubleshooting guide line but I've tried it before write this issue.

anfleene commented 7 years ago

Looks like an issue with installing charlock_holmes on osx

The best way to debug is to run

HOMEBREW_DEBUG=1 brew gem install gollum

then drop into a shell once it fails and the mkmf.log will still exist.

emilianosantucci commented 7 years ago

Yeah @anfleene, it is right, seems to be issued when it try to load icu4c and it fail. I have found the official workaround here but I will not able to pass arguments.

About documentation: gem install charlock_holmes -- --with-icu-dir=/usr/local/opt/icu4c

What I do: brew gem install charlock_holmes -- --with-icu-dir=/usr/local/Cellar/icu4c --homebrew-ruby

What I obtain:

==> Fetching charlock_holmes from gem source
ERROR:  While executing gem ... (OptionParser::MissingArgument)
    missing argument: --version
==> /usr/bin/gem install /Users/emiliano/Library/Caches/Homebrew/charlock_holmes---.gem --no-ri --no-rdoc --no-wrapper --no-user-install --install-dir /usr/local/Cellar/gem-charlock_holmes/-- --bindir /us
Last 15 lines from /Users/emiliano/Library/Logs/Homebrew/gem-charlock_holmes/01.gem:
2016-09-23 23:43:43 +0200

/usr/bin/gem
install
/Users/emiliano/Library/Caches/Homebrew/charlock_holmes---.gem
--no-ri
--no-rdoc
--no-wrapper
--no-user-install
--install-dir
/usr/local/Cellar/gem-charlock_holmes/--
--bindir
/usr/local/Cellar/gem-charlock_holmes/--/bin

ERROR:  Could not find a valid gem '/Users/emiliano/Library/Caches/Homebrew/charlock_holmes---.gem' (>= 0) in any repository
JuPlutonic commented 4 years ago

I have a strategy for which kind of gems not to use with Brew-Gem:

When Brew-Gem can't cope with these kind of libraries.