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

Possible issue with how brew checks for ruby dependencies #1799

Closed
tnorthcutt opened this issue Jan 7, 2017 · 2 comments · Fixed by #1909
Closed

Possible issue with how brew checks for ruby dependencies #1799

tnorthcutt opened this issue Jan 7, 2017 · 2 comments · Fixed by #1909

Comments

@tnorthcutt
Copy link

When attempting to brew install ghi, I get:

brew install ghi
ghi: Unsatisfied dependency: pygments.rb
Homebrew does not provide special Ruby dependencies; install with:
  `gem install pygments.rb`
Error: An unsatisfied requirement failed this build.

If I then gem install pygments.rb and again brew install ghi I get the same result. I originally noticed this in August 2016 and opened stephencelis/ghi#317.

I'm now on a new machine, seeing the same error. I've confirmed that changing

when :ruby then %W[/usr/bin/env ruby -rubygems -e require\ '#{@import_name}']

to (note the double quotes)

when :ruby then %W[/usr/bin/env ruby -rubygems -e "require\ '#{@import_name}'"]

in /usr/local/Homebrew/Library/Homebrew/requirements/language_model_requirement.rb and then again running brew install ghi corrects the issue.

brew config output:

» brew config                                                                                                                                                        
HOMEBREW_VERSION: 1.1.6-37-g67d0af9674b7-dirty
ORIGIN: https://github.com/Homebrew/brew
HEAD: 67d0af9674b749d5bd6abf5b9a7ce1f111c171a4
Last commit: 2 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 6c9d39c9e4ad7a06b239895c01a2b8eeb49c21c4
Core tap last commit: 29 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit skylake
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.10.2 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: N/A
macOS: 10.12.2-x86_64
Xcode: N/A
CLT: 8.2.0.0.1.1480973914
X11: N/A

brew doctor output:

» brew doctor                                                                                                                                                       
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: You have a curlrc file
If you have trouble downloading packages with Homebrew, then maybe this
is the problem? If the following command doesn't work, then try removing
your curlrc:
  curl https://github.com
@vitorgalvao
Copy link
Member

Similar issue: Homebrew/legacy-homebrew#25388. hadn’t thought about it in a long time. Would be glad to see this fixed.

In your second command (the fix), shouldn’t the \ after require be removed?

@tnorthcutt
Copy link
Author

@vitorgalvao good question; I don't know. I do know it works with the \ there though 😃

@Homebrew Homebrew locked and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants