Comments (2)
Thanks so much for the quick reply! That worked!!
I first checked with yum directly:
[ sudo yum install xz gcc automake bison zlib-devel libyaml-devel openssl-devel gdbm-devel readline-devel ncurses-devel libffi-devel ]
and those packages were not installed, then I added them for install in the ansible playbook with:
- name: "Prerequisite: ensure devel pkgs are installed on machine"
ansible.builtin.yum:
name: xz,gcc,automake,bison,zlib-devel,libyaml-devel,openssl-devel,gdbm-devel,readline-devel,ncurses-devel,libffi-devel
state: present
and viola, everything worked! [>>> Successfully installed ruby 2.7.5 into /opt/ruby/2.7.5]
Thanks so much!
Ansible:
- name: Install ruby 2.7.5 if not present.
shell: "cd {{ repo_ruby_dest_bin }} && sudo {{ repo_ruby_dest_bin }}/ruby-install ruby 2.7.5 --install-dir {{ruby_path}}"
register: result
ignore_errors: false
when: is_ruby_present.stat.exists == false
Direct console: sudo /home/developer/ruby_install/bin/ruby-install ruby 2.7.5 --install-dir /opt/ruby/2.7.5
from ruby-install.
It appears that ruby-install
is not installing the openssl
, libreadline
, etc, dependencies. Apparently AWS Linux is based on RHEL and uses the yum
package manager. Not sure why ruby-install
isn't detecting yum
and installing the packages via yum
. Make sure you have the following packages installed xz gcc automake bison zlib-devel libyaml-devel openssl-devel gdbm-devel readline-devel ncurses-devel libffi-devel
.
from ruby-install.
Related Issues (20)
- Print an error if an unknown ruby is given
- CFLAGS unrecognized using 0.9.0 – working with 0.8.5 HOT 5
- `--with-opt-dir` doesn't prevent Ruby from seeing OpenSSL 3 headers/lib HOT 10
- `zcat` does not accept a file argument on macOS HOT 1
- Use OpenSSL 3 by default HOT 8
- Documentation for `--jobs` suggests you could omit a value, but it's required HOT 1
- Install FreeBSD Ruby 3.2.2 HOT 3
- doesn't make some simple yet very important checks before starting the installation process (e.g need permission when using --sytem flag) HOT 3
- Can't use installed truffleruby 23.1.0 with openssl HOT 6
- Installation of ruby 3.1.4 fails on macOS Sonoma 14.0 HOT 14
- Avoid running `brew` as root HOT 3
- Ruby install 2.6.0 confusing error for Homebrew install HOT 1
- openssl@3 support - EVP_MD_CTX_get_pkey_ctx - incomplete definition of type struct evp_md_ctx_st - use [email protected] HOT 6
- Install homebrew [email protected] for Ruby <= 3.0 and [email protected] for Ruby >= 3.1
- Add tests for the various rubies own `functions.sh` logic HOT 1
- Convert `dependencies.txt` files into `dependencies.sh` files HOT 2
- Installation failing due to sudo failure HOT 3
- Wrong file extension? HOT 2
- Can't install 3.4.0-preview1 HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-install.