Hallo liebe Ubuntuuser!
Ich bekomme auf Grund eines Cron Jobs immer folgende Fehlermeldung jeder Stunde:
/bin/bash: bundle: command not found
Ich habe herausgefunden, dass die betorfenden Commmands per "bash -l ICHBINEINCOMMAND" ausgeführt werden. Ich habe dies mit einem anderen Befehl manuell ausgeführt.
Ein normales: "gem environment"gibt folgendes aus:
RubyGems Environment: - RUBYGEMS VERSION: 2.2.0 - RUBY VERSION: 2.1.0 (2013-12-25 patchlevel 0) [i686-linux] - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/2.1.0 - RUBY EXECUTABLE: /usr/local/bin/ruby - EXECUTABLE DIRECTORY: /usr/local/bin - SPEC CACHE DIRECTORY: /root/.gem/specs - RUBYGEMS PLATFORMS: - ruby - x86-linux - GEM PATHS: - /usr/local/lib/ruby/gems/2.1.0 - /root/.gem/ruby/2.1.0 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - https://rubygems.org/ - SHELL PATH: - /usr/local/sbin - /usr/local/bin - /usr/sbin - /usr/bin - /sbin - /bin - /usr/local/bin
Wenn ich aber "bash -l gem environment" eingebe, bekomme ich:
/usr/local/bin/gem: line 8: require: command not found /usr/local/bin/gem: line 9: require: command not found /usr/local/bin/gem: line 10: require: command not found /usr/local/bin/gem: line 12: required_version: command not found /usr/local/bin/gem: line 14: unless: command not found /usr/local/bin/gem: line 15: abort: command not found /usr/local/bin/gem: line 16: end: command not found /usr/local/bin/gem: line 18: args: command not found /usr/local/bin/gem: line 20: begin: command not found /usr/local/bin/gem: line 21: Gem::GemRunner.new.run: command not found /usr/local/bin/gem: line 22: rescue: command not found /usr/local/bin/gem: line 23: exit: e.exit_code: numeric argument required
Was ist denn hier los? :/ Ich benutze wie man sehen kann ein selbst komiliertes RUBY 2.0 in /usr/local.
PS: Es ist nicht möglich das "bash -l COMMAND" zu ändern. Das bash -l muss bleiben.