Install Problem Mac

Hi,

I am trying to install Middleman on my Mac, v. 10.13.5. I have tried to find a similar thread with the same problem but was unable to, so I hope someone can help me with the installation here.

when running sudo gem install middleman I am getting this in the terminal;

Building native extensions.  This could take a while...
ERROR:  Error installing middleman:
ERROR: Failed to build gem native extension.

current directory: /Users/todd/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/fast_blank-1.0.0/ext/fast_blank
/Users/todd/.rvm/rubies/ruby-2.3.3/bin/ruby -r ./siteconf20180717-37617-1wxx7x9.rb extconf.rb
creating Makefile

current directory: /Users/todd/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/fast_blank-1.0.0/ext/fast_blank
make "DESTDIR=" clean

current directory: /Users/todd/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/fast_blank-1.0.0/ext/fast_blank
make "DESTDIR="
compiling fast_blank.c
linking shared-object fast_blank.bundle
ld: warning: directory not found for option '-L/usr/local/opt/libksba/lib'
ld: warning: directory not found for option '-L/usr/local/opt/libksba/lib'
ld: warning: directory not found for option '-L/usr/local/opt/libksba/lib'

current directory: /Users/todd/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/fast_blank-1.0.0/ext/fast_blank
make "DESTDIR=" install
make: /usr/local/opt/coreutils/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.time] Error 1

make install failed, exit code 2

Gem files will remain installed in /Users/todd/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/fast_blank-1.0.0 for inspection.
Results logged to /Users/todd/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-16/2.3.0/fast_blank-1.0.0/gem_make.out

I have searched around for a couple hours now for a solution but have been unable to find one.

Any help would be greatly appreciated. Thanks.

Went in and reinstall ruby, rails, turned on the command line in XCode, just followed a lot of suggestions after an exhaustive search.

I ran the gem install command again and it looks like it has installed. :slight_smile:

Let’s try this again, since I guess Middleman is having a field day messing with my head.

middleman init projectx                          
WARN: Unresolved specs during Gem::Specification.reset:
      minitest (~> 5.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Could not find rake-12.3.1 in any of the sources
Run `bundle install` to install missing gems.

and I have already gone through each and every gem to install, and install bundler, and bundler exec garbage. It’s frustrating that it seems like Middleman is overwriting newer gems with older ones (by my untrained and amateur eye) but nonetheless, it’s not working and I had it working.

Any help would be greatly appreciated. I’d like to give this a run-through and try it out. I’d rather not have to ditch it after all the time I have spent on this. Thanks.

WARN: Unresolved specs during Gem::Specification.reset:
      minitest (~> 5.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Traceback (most recent call last):
	14: from /usr/local/bin/middleman:23:in `<main>'
	13: from /usr/local/bin/middleman:23:in `load'
	12: from /usr/local/lib/ruby/gems/2.5.0/gems/middleman-cli-4.2.1/bin/middleman:10:in `<top (required)>'
	11: from /usr/local/lib/ruby/gems/2.5.0/gems/middleman-core-4.2.1/lib/middleman-core/load_paths.rb:15:in `setup_load_paths'
	10: from /usr/local/lib/ruby/gems/2.5.0/gems/middleman-core-4.2.1/lib/middleman-core/load_paths.rb:34:in `setup_bundler'
	 9: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:70:in `require'
	 8: from /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:70:in `require'
	 7: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/setup.rb:10:in `<top (required)>'
	 6: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler.rb:107:in `setup'
	 5: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/runtime.rb:26:in `setup'
	 4: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/runtime.rb:26:in `map'
	 3: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/forwardable.rb:229:in `each'
	 2: from /usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/forwardable.rb:229:in `each'
	 1: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/runtime.rb:31:in `block in setup'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.3/lib/bundler/runtime.rb:313:in `check_for_activated_spec!': You have already activated i18n 0.7.0, but your Gemfile requires i18n 1.0.1. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)