/usr/bin/env ruby_noexec_wrapper fails with no file or directory

后端 未结 5 1070
遇见更好的自我
遇见更好的自我 2021-01-01 23:39

When I try to start chef-solr as service it\'s failing with the following error

# service chef-solr start
Starting chef-solr: /usr/bin/env: ruby_noexec_wrapp         


        
5条回答
  •  轮回少年
    2021-01-02 00:02

    I got this problem after installing ruby 2.0 on my mac. Part of that was I installed the latest rvm

    rvm get stable
    

    Then I started getting this error. Maybe I ran some 'gemset pristine's after this.

    In any event, for me, this worked. WARNING! If you proceed as I have done, your gemsets for the ruby in question will get completely removed and rebuilt. Maybe you want a fresh backup? But this is the hammer.

    # WARNING!!! THIS RECIPE IS POTENTIALLY DESTRUCTIVE!
    rvm remove ruby-1.9.3-p194 # this will remove the gemsets for this version as well
    rvm install ruby-1.9.3-p194 # time for coffee
    rvm use ruby-1.9.3-p194
    rvm gemset create aura-rover-config # my gemset name
    rvm use ruby-1.9.3-p194@aura-rover-config # do I need to do this?  Can't 'member
    bundle
    # now it all works
    

    The fun part of this was, all the little hacks I made in my installed gemsets, those got blown away. MAKE A BACKUP

提交回复
热议问题