cfn-leaprog
cfn-leaprog copied to clipboard
Installation does not work
Can not install it on my system...
System Version: macOS 10.15.7 (19H1419) Kernel Version: Darwin 19.6.0
bundle install
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 13.0.6
Following files may not be writable, so sudo is needed:
/Library/Ruby/Gems/2.6.0
/Library/Ruby/Gems/2.6.0/build_info
/Library/Ruby/Gems/2.6.0/cache
/Library/Ruby/Gems/2.6.0/doc
/Library/Ruby/Gems/2.6.0/extensions
/Library/Ruby/Gems/2.6.0/gems
/Library/Ruby/Gems/2.6.0/specifications
Using concurrent-ruby 1.1.9
Using i18n 1.8.10
Using minitest 5.14.4
Using tzinfo 2.0.4
Using zeitwerk 2.5.1
Using activesupport 6.1.4.1
Using hashie 4.1.0
Using multi_json 1.15.0
Using bogo 0.2.14
Using attribute_struct 0.4.4
Using aws-eventstream 1.2.0
Using aws-partitions 1.517.0
Using aws-sigv4 1.4.0
Using jmespath 1.4.0
Using aws-sdk-core 3.121.3
Using aws-sdk-acm 1.46.0
Using aws-sdk-cloudformation 1.59.0
Using aws-sdk-dynamodb 1.64.0
Using aws-sdk-ec2 1.271.0
Using aws-sdk-ecr 1.48.0
Using aws-sdk-iam 1.62.0
Using aws-sdk-kms 1.50.0
Using aws-sdk-s3 1.104.0
Using aws-sdk-sns 1.46.0
Using aws-sdk-ssm 1.120.0
Using bundler 1.17.2
Using kwalify 0.7.2
Fetching psych 3.3.2
Your user account isn't allowed to install to the system RubyGems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to RubyGems using sudo.
Password:
Installing psych 3.3.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /private/var/folders/h5/n5dptzzj0d95_h9857bnpz800000gn/T/bundler20211021-43179-o4ppcjpsych-3.3.2/gems/psych-3.3.2/ext/psych
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r
./siteconf20211021-43179-q1bmue.rb extconf.rb
checking for yaml.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/$(RUBY_BASE_NAME)
--with-libyaml-dir
--without-libyaml-dir
--with-libyaml-include
--without-libyaml-include=${libyaml-dir}/include
--with-libyaml-lib
--without-libyaml-lib=${libyaml-dir}/lib
--enable-bundled-libyaml
--disable-bundled-libyaml
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:467:in `try_do': The compiler failed to generate an executable file.
(RuntimeError)
You have to install development tools first.
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:585:in `block in try_compile'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:534:in `with_werror'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:585:in `try_compile'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/mkmf.rb:1162:in `block in find_header'
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:1161:in `find_header'
from extconf.rb:10:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/folders/h5/n5dptzzj0d95_h9857bnpz800000gn/T/bundler20211021-43179-o4ppcjpsych-3.3.2/extensions/universal-darwin-19/2.6.0/psych-3.3.2/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /var/folders/h5/n5dptzzj0d95_h9857bnpz800000gn/T/bundler20211021-43179-o4ppcjpsych-3.3.2/gems/psych-3.3.2 for
inspection.
Results logged to
/var/folders/h5/n5dptzzj0d95_h9857bnpz800000gn/T/bundler20211021-43179-o4ppcjpsych-3.3.2/extensions/universal-darwin-19/2.6.0/psych-3.3.2/gem_make.out
An error occurred while installing psych (3.3.2), and Bundler cannot continue.
Make sure that `gem install psych -v '3.3.2' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
stack_master was resolved to 2.13.1, which depends on
cfn-nag was resolved to 0.7.16, which depends on
cfn-model was resolved to 0.6.3, which depends on
psych