Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install gollum #30

Open
emilianosantucci opened this issue Sep 23, 2016 · 3 comments
Open

Failed to install gollum #30

emilianosantucci opened this issue Sep 23, 2016 · 3 comments

Comments

@emilianosantucci
Copy link

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
Copy link

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
Copy link
Author

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
Copy link

JuPlutonic commented Nov 26, 2019

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

  • if the target gem has in it's dependencies external libs (e.g. gollum-lib for gilum)

  • or things you need to require to config files (e.g. rubocop-performance, rubocop-rspec, rubocop-security, rubocop-rails are other libraries-gems needed when you digging into your code-style with Rubocop. Their requirement goes to .rubocop.yml)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants