Giter VIP home page Giter VIP logo

Comments (7)

kinopyo avatar kinopyo commented on June 30, 2024

I'm getting the same error, after that I ssh logged in to the server, the ruby was installed ok but not set as default

from rvm1-ansible.

hsamadi avatar hsamadi commented on June 30, 2024

I'm getting the same error when I try to install ruby 2.0.0. It seems that the "Install bundler if not installed" task doesn't work correctly. So, the symlinking mechanism doesn't work as expected.

failed: [xx.xx.xx.xx] => (item=bundle) => {"failed": true, "item": "bundle", "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /usr/local/rvm/wrappers/default/bundle", "path": "/usr/local/bin/bundle", "src": "/usr/local/rvm/wrappers/default/bundle", "state": "absent"}
failed: [xx.xx.xx.xx] => (item=bundler) => {"failed": true, "item": "bundler", "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /usr/local/rvm/wrappers/default/bundler", "path": "/usr/local/bin/bundler", "src": "/usr/local/rvm/wrappers/default/bundler", "state": "absent"}

from rvm1-ansible.

janost avatar janost commented on June 30, 2024

I was having the same problem because the 'rvm1_default_ruby_version' variable's value was '3', therefore it tried to create a default alias for '3', and naturally it failed. I didn't have time to further investigate this, but you can work around the problem by setting 'rvm1_default_ruby_version' manually. In my case the role looks like this:
- { role: rvm_io.rvm1-ruby, rvm1_rubies: '{{ ruby_version }}', rvm1_default_ruby_version: '{{ ruby_version }}', tags: ruby, sudo: True }

from rvm1-ansible.

hsamadi avatar hsamadi commented on June 30, 2024

You may find this commit useful.

from rvm1-ansible.

flynfish avatar flynfish commented on June 30, 2024

@hsamadi thanks for that! You should submit a pull request 👍

from rvm1-ansible.

viruzzo avatar viruzzo commented on June 30, 2024

rvm1_rubies is a list, so you must define it as such, in your case:
rvm1_rubies: [ '{{ ruby_version }}' ]

from rvm1-ansible.

coldnebo avatar coldnebo commented on June 30, 2024

I'm getting something similar, but only for rake:

failed: [localhost] (item=rake) => {"ansible_loop_var": "item", "changed": false, "gid": 0, "group": "root", "item": "rake", "mode": "0755", "msg": "refusing to convert from file to symlink for /usr/local/bin/rake", "owner": "root", "path": "/usr/local/bin/rake", "size": 517, "state": "file", "uid": 0}

what does this mean? is there a workaround?

from rvm1-ansible.

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.