jazzy: Problems with Jazzy when multiple versions of Xcode are installed
ERROR: Error installing jazzy: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile
make “DESTDIR=”
make: *** No rule to make target "/Applications/Xcode', needed by
autolink.o’. Stop.
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/redcarpet-3.3.4 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/gems/redcarpet-3.3.4/ext/redcarpet/gem_make.out
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 52 (1 by maintainers)
@GuoZhiQiang Do you have a space in your Xcode directory? Is it something like “/Applications/Xcode 7.0”? If so, try removing the space. My guess is that
No rule to make target "/Applications/Xcode'
is indicating that the path has been chopped at the space.Having the same issue:
Any ideas on how to fix it? This is on 10.14.1 “Mojave”. No extra Xcodes installed.
@agentk you can just
gem install activesupport -v '< 5'
I was finally able to install Jazzy on macOS Mojave. it might be able to help you guys.
Steps:
ruby
viahomebrew
default
via OmittingPATH
csrutil disable
Terminal
and install jazzy viasudo gem install jazzy
csrutil enable
sudo gem install -n /usr/local/bin jazzy
P.S. Used system had macOS Mojave 10.14.4 and Ruby 2.6.3
Thanks & Cheers
Sorry for the delay, but here is the issue I created: https://github.com/vmg/redcarpet/issues/668. We’ll see what happens.
So seems like my issue was due to Ruby version: macOS comes with
2.3.7p456
, while Homebrew offers2.5.3p105
. If I now remember to always run/usr/local/Cellar/ruby/2.5.3_1/bin/gem
instead of justgem
to install it, it builds for me.It’s an odd error that I’m not able to replicate. So this is a bit of stabbing in the dark. The tip from @segiddins is spot on for installing jazzy with the stock ruby. I wonder if it’s to do with the selected Xcode?
To check which of the versions is selected use:
And double check with
I’m wondering if the latest Xcode needs to be selected for you to install jazzy. You can switch the selected Xcode with: (replacing Xcode2 with your other Xcode)
Then try installing jazzy again: