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

Won't install via homebrew #329

Open
brbatwork opened this issue Jul 23, 2018 · 4 comments
Open

Won't install via homebrew #329

brbatwork opened this issue Jul 23, 2018 · 4 comments

Comments

@brbatwork
Copy link

Used this for years on an older mac; now on my new mac I get:

[bbarbour@nebula1:~]$ brew install gitsh
==> Installing gitsh from thoughtbot/formulae
==> Downloading http://thoughtbot.github.io/gitsh/gitsh-0.12.tar.gz
Already downloaded: /Users/bbarbour/Library/Caches/Homebrew/gitsh-0.12.tar.gz
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/gitsh/0.12
Last 15 lines from /Users/bbarbour/Library/Logs/Homebrew/gitsh/01.configure:
You have to install development tools first.
	from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/mkmf.rb:541:in `try_link0'
	from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/mkmf.rb:559:in `try_link'
	from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/mkmf.rb:770:in `try_func'
	from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/mkmf.rb:1004:in `block in have_library'
	from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/mkmf.rb:947:in `block in checking_for'
	from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/mkmf.rb:350:in `block (2 levels) in postpone'
	from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/mkmf.rb:320:in `open'
	from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/mkmf.rb:350:in `block in postpone'
	from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/mkmf.rb:320:in `open'
	from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/mkmf.rb:346:in `postpone'
	from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/mkmf.rb:946:in `checking_for'
	from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/mkmf.rb:999:in `have_library'
	from extconf.rb:44:in `<main>'
configure: error: Failed to configure Ruby extension

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/thoughtbot/homebrew-formulae/issues

[bbarbour@nebula1:~]$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
[bbarbour@nebula1:~]$ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]

What do I need to check to fix it?

@trodrigues
Copy link

I've had exactly the same issue.

The last time I had this, I found a tip elsewhere to run

RUBY=/usr/bin/ruby brew install gitsh

I tried that this time and it didn't work.

I then installed ruby with homebrew, and tried to do

RUBY=/usr/local/opt/ruby/bin/ruby brew install gitsh

and this also didn't work.

But if I download the package and run

RUBY=/usr/local/opt/ruby/bin/ruby ./configure

followed by make && make install everything works fine.

I'm still on High Sierra by the way.

@georgebrock
Copy link
Collaborator

Thanks for the reports. I haven't been able to reproduce on Mojave, but I'll see if I can find a Mac running High Sierra to try.

stephaneliu added a commit to stephaneliu/dotfiles that referenced this issue Mar 25, 2019
- gitsh does not install correctly with mac (system) ruby
- gitsh does not install correctly with brew because it uses
  system ruby
- gitsh issues seem to suggest that this problem is a high sierra
  issue thoughtbot/gitsh#329
- Need to install ruby then run the manually install gitsh
- Once all macs are upgraded to mojave, manual install can be
  removed
@ttbarnes
Copy link

ttbarnes commented Aug 6, 2019

I'm getting the same issue on Sierra 10.12.6 with ruby 2.4.1. Any workarounds?

@gfontenot
Copy link
Contributor

I'm seeing this on a new machine using Sonoma 14.3 as well. It does seem like the configure script is ignoring the path somehow?

Install error:

==> ./configure --disable-silent-rules
Last 15 lines from /Users/fontenot/Library/Logs/Homebrew/gitsh/01.configure:
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tmpdir.rb:93:in `mktmpdir'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:543:in `try_link0'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:570:in `try_link'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:782:in `try_func'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1016:in `block in have_library'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:959:in `block in checking_for'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:361:in `block (2 levels) in postpone'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:331:in `open'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:361:in `block in postpone'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:331:in `open'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:357:in `postpone'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:958:in `checking_for'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1011:in `have_library'
	from extconf.rb:44:in `<main>'
configure: error: Failed to configure Ruby extension

Ruby info:

❯ which ruby
/Users/fontenot/.asdf/shims/ruby
❯ ruby -v
ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]

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

No branches or pull requests

5 participants