Created
January 16, 2020 03:44
-
-
Save rockpapergoat/129014485515b71901e3f31a31e05469 to your computer and use it in GitHub Desktop.
json installs on amazon linux 1 and 2 containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash-4.2# ruby -v | |
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux] | |
bash-4.2# which ruby | |
/opt/chef/embedded/bin/ruby | |
bash-4.2# cat /etc/os-release | |
NAME="Amazon Linux AMI" | |
VERSION="2018.03" | |
ID="amzn" | |
ID_LIKE="rhel fedora" | |
VERSION_ID="2018.03" | |
PRETTY_NAME="Amazon Linux AMI 2018.03" | |
ANSI_COLOR="0;33" | |
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga" | |
HOME_URL="http://aws.amazon.com/amazon-linux-ami/" | |
bash-4.2# gem install json --version 2.3.0 | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/coderay-1.1.2.gemspec:21. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/erubis-2.7.0.gemspec:17. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/highline-1.7.10.gemspec:20. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/iniparse-1.4.4.gemspec:19. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/multipart-post-2.0.0.gemspec:17. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/net-scp-1.2.1.gemspec:19. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/net-sftp-2.1.2.gemspec:19. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/net-ssh-multi-1.2.1.gemspec:19. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/systemu-2.6.5.gemspec:16. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/webmock-3.4.2.gemspec:17. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/coderay-1.1.2.gemspec:21. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/erubis-2.7.0.gemspec:17. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/highline-1.7.10.gemspec:20. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/iniparse-1.4.4.gemspec:19. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/multipart-post-2.0.0.gemspec:17. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/net-scp-1.2.1.gemspec:19. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/net-sftp-2.1.2.gemspec:19. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/net-ssh-multi-1.2.1.gemspec:19. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/systemu-2.6.5.gemspec:16. | |
NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. | |
Gem::Specification#rubyforge_project= called from /opt/chef/embedded/lib/ruby/gems/2.5.0/specifications/webmock-3.4.2.gemspec:17. | |
Fetching json-2.3.0.gem | |
Building native extensions. This could take a while... | |
ERROR: Error installing json: | |
ERROR: Failed to build gem native extension. | |
current directory: /opt/chef/embedded/lib/ruby/gems/2.5.0/gems/json-2.3.0/ext/json/ext/generator | |
/opt/chef/embedded/bin/ruby -I /opt/chef/embedded/lib/ruby/site_ruby/2.5.0 -r ./siteconf20200116-468-bclx30.rb extconf.rb | |
creating Makefile | |
current directory: /opt/chef/embedded/lib/ruby/gems/2.5.0/gems/json-2.3.0/ext/json/ext/generator | |
make "DESTDIR=" clean | |
current directory: /opt/chef/embedded/lib/ruby/gems/2.5.0/gems/json-2.3.0/ext/json/ext/generator | |
make "DESTDIR=" | |
compiling generator.c | |
linking shared-object json/ext/generator.so | |
current directory: /opt/chef/embedded/lib/ruby/gems/2.5.0/gems/json-2.3.0/ext/json/ext/generator | |
make "DESTDIR=" install | |
make: /usr/bin/mkdir: Command not found | |
make: *** [.sitearchdir.-.json.-.ext.time] Error 127 | |
make install failed, exit code 2 | |
Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/2.5.0/gems/json-2.3.0 for inspection. | |
Results logged to /opt/chef/embedded/lib/ruby/gems/2.5.0/extensions/x86_64-linux/2.5.0/json-2.3.0/gem_make.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash-4.2# ruby -v | |
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux] | |
bash-4.2# which ruby | |
/opt/chef/embedded/bin/ruby | |
bash-4.2# cat /etc/os-release | |
NAME="Amazon Linux" | |
VERSION="2" | |
ID="amzn" | |
ID_LIKE="centos rhel fedora" | |
VERSION_ID="2" | |
PRETTY_NAME="Amazon Linux 2" | |
ANSI_COLOR="0;33" | |
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" | |
HOME_URL="https://amazonlinux.com/" | |
bash-4.2# gem install json --version 2.3.0 | |
Fetching: json-2.3.0.gem (100%) | |
Building native extensions. This could take a while... | |
Successfully installed json-2.3.0 | |
Parsing documentation for json-2.3.0 | |
Installing ri documentation for json-2.3.0 | |
Done installing documentation for json after 1 seconds | |
1 gem installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y gcc make vim ack util-linux findutils | |
curl -O https://packages.chef.io/files/stable/chef/14.8.12/el/7/chef-14.8.12-1.el7.x86_64.rpm | |
yum install -y chef-14.8.12-1.el7.x86_64.rpm | |
export PATH=/opt/chef/embedded/bin:$PATH | |
gem list | |
gem install json --version 2.3.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment