Giter Club home page Giter Club logo

Comments (2)

alexwilliamsdr avatar alexwilliamsdr commented on July 23, 2024 1

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.

postmodern avatar postmodern commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.