javan/whenever — Issue #189: Ubuntu rails 3 doesn't work
Author: utiq
Created: 2011-10-21 22:35:35+00:00
State: open

I have a problem, there are my config:

**My env:**
SHELL=/bin/bash
TERM=xterm-color
OLDPWD=/var/log
USER=root
SUDO_USER=ubuntu
SUDO_UID=1000
USERNAME=root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
MAIL=/var/mail/ubuntu
PWD=/var
LANG=en_US.UTF-8
SHLVL=1
SUDO_COMMAND=/bin/bash
HOME=/home/ubuntu
LOGNAME=root
LESSOPEN=| /usr/bin/lesspipe %s
SUDO_GID=1000
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env

**My gem env:**
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /usr/local/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/local/lib/ruby/gems/1.9.1
- /home/ubuntu/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "install" => "--no-ri --no-rdoc"
- "update" => "--no-ri --no-rdoc"
- REMOTE SOURCES:
- http://rubygems.org/

However, when I create a whenever and execute, the error that I have is:
> Command 'bundle' is available in '/usr/local/bin/bundle'
> The command could not be located because '/usr/local/bin' is not included in the PATH environment variable.
> bundle: command not found

Is solved this using the crontab -e and editing 'bundle exec rake' -> '/usr/local/bin/rake'
Somebody can helpme?