-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
How to install executable gem? #46
Comments
Did you do a system wide install? If so: |
Hi, I didn't install it system wide.
It tells me that the executable gem is not found. So I guess I need to install
But this is not successful either. Yes, I'm not sure if that's the right way to call a command begin with
With the errors:
|
Are you using version rvm1-ansible |
It's
|
I faced a similar sympton described in #46 (comment) (gem not found) |
Hi.
produces
env info:
..."bundle install" works from command line over ssh. Can you help me please? |
@Pepan Did you try the solution listed above? |
I found solution:
|
I confirm I had the same issue, and solved sort of the same way @Pepan did. |
I have installed ruby using rvm and I can install gems by doing ssh into the machine but its failing with ansible. Below is my playbook where I am trying to install rails 4.2.0
And its giving error as - ERROR: While executing gem ... (Errno::EACCES)\n Permission denied - /var/lib/gems |
Following version works for me for a single user instalation: roles:
- { name: rvm_io.ruby, rvm1_rubies: "['{{ ruby_version }}']" }
tasks:
- name: Install gems
bundler:
state: present
chdir: "{{ sample_app_path }}"
executable: "{{ ansible_env.HOME }}/.rvm/gems/ruby-{{ ruby_version }}/bin/bundler"
gem_path: "{{ ansible_env.HOME }}/.rvm/gems/ruby-{{ ruby_version }}"
environment:
PATH: "{{ ansible_env.HOME }}/.rvm/gems/ruby-{{ ruby_version }}/bin:\
{{ ansible_env.HOME }}/.rvm/gems/ruby-{{ ruby_version }}@global/bin:\
{{ ansible_env.HOME }}/.rvm/rubies/ruby-{{ ruby_version }}/bin:\
{{ ansible_env.HOME }}/.rvm/bin:\
{{ lookup('env', 'PATH') }}"
GEM_PATH: "{{ ansible_env.HOME }}/.rvm/gems/ruby-{{ ruby_version }}:\
{{ ansible_env.HOME }}/.rvm/gems/ruby-{{ ruby_version }}@global" |
I can install executable gem with this command after installing rvm successfully:
rvm rubygems current
But how to do this with rvm1-ansible?
The text was updated successfully, but these errors were encountered: