Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing rubies with rvm1_user #224

Open
sowndarya22 opened this issue Sep 11, 2020 · 1 comment
Open

Problem installing rubies with rvm1_user #224

sowndarya22 opened this issue Sep 11, 2020 · 1 comment

Comments

@sowndarya22
Copy link

How do I pass the rvm1_user root password with the variable? I get the below error :


   "stderr": "Error running 'requirements_centos_libs_install patch autoconf automake bison bzip2 gcc-c++ libffi-devel libtool patch readline-devel ruby sqlite-devel zlib-devel glibc-headers glibc-devel openssl-devel',\nplease read /home/econveyance/.rvm/log/1599838427_ruby-2.7.1/package_install_patch_autoconf_automake_bison_bzip2_gcc-c++_libffi-devel_libtool_patch_readline-devel_ruby_sqlite-devel_zlib-devel_glibc-headers_glibc-devel_openssl-devel.log\nRequirements installation failed with status: 1.",
    "stderr_lines": [
        "Error running 'requirements_centos_libs_install patch autoconf automake bison bzip2 gcc-c++ libffi-devel libtool patch readline-devel ruby sqlite-devel zlib-devel glibc-headers glibc-devel openssl-devel',",
        "please read /home/econveyance/.rvm/log/1599838427_ruby-2.7.1/package_install_patch_autoconf_automake_bison_bzip2_gcc-c++_libffi-devel_libtool_patch_readline-devel_ruby_sqlite-devel_zlib-devel_glibc-headers_glibc-devel_openssl-devel.log",
        "Requirements installation failed with status: 1."
    ],
    "stdout": "Searching for binary rubies, this might take some time.\nFound remote file https://rvm_io.global.ssl.fastly.net/binaries/centos/7/x86_64/ruby-2.7.1.tar.bz2\nChecking requirements for centos.\nInstalling requirements for centos.\n\u001b[32mInstalling required packages: patch, autoconf, automake, bison, bzip2, gcc-c++, libffi-devel, libtool, patch, readline-devel, ruby, sqlite-devel, zlib-devel, glibc-headers, glibc-devel, openssl-devel\u001b[0m|\b/\b-\b\\\b|\b/\b-\b\\\b|\b.-\b\\\b|\b/\b-\b\\\b|\b/\b-\b.|\b/\b-\b\\\b|\b/\b-\b\\\b|\b.-\b\\\b|\b/\b-\b.",
    "stdout_lines": [
        "Searching for binary rubies, this might take some time.",
        "Found remote file https://rvm_io.global.ssl.fastly.net/binaries/centos/7/x86_64/ruby-2.7.1.tar.bz2",
        "Checking requirements for centos.",
        "Installing requirements for centos.",
        "\u001b[32mInstalling required packages: patch, autoconf, automake, bison, bzip2, gcc-c++, libffi-devel, libtool, patch, readline-devel, ruby, sqlite-devel, zlib-devel, glibc-headers, glibc-devel, openssl-devel\u001b[0m|\b/\b-\b\\\b|\b/\b-\b\\\b|\b.-\b\\\b|\b/\b-\b\\\b|\b/\b-\b.|\b/\b-\b\\\b|\b/\b-\b\\\b|\b.-\b\\\b|\b/\b-\b."
    ]
}

Installing ruby with root works fine but with rvm1_user... since I am my user should pass the password to switch to root and i dont want to allow auto login as root

@dgm
Copy link

dgm commented Feb 19, 2021

I pass an option to this role: rvm1_autolib_mode: 2 which makes it not try to auto-install the packages. That also means I have to install those packages with ansible prior to installing rvm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants