Giter VIP home page Giter VIP logo

Comments (11)

javan avatar javan commented on June 15, 2024

Try installing the gem with sudo:

sudo gem install javan-whenever

or

sudo rake gems:install

from whenever.

jeffleeismyhero avatar jeffleeismyhero commented on June 15, 2024

I've done that.

config.gem "chronic"
config.gem 'javan-whenever', :lib => false, :source => 'http://gems.github.com'

The dependencies were installed and then whenever was installed.

[jlee@casweb5 mehmry]$ gem list --local

*** LOCAL GEMS ***

actionmailer (2.3.2, 2.2.2)
actionpack (2.3.2, 2.2.2)
activerecord (2.3.2, 2.2.2)
activeresource (2.3.2, 2.2.2)
activesupport (2.3.2, 2.2.2)
authlogic (2.0.13)
be9-acl9 (0.10.0)
calendar_date_select (1.15)
cgi_multipart_eof_fix (2.5.0)
chronic (0.2.3)
columnize (0.3.0)
daemons (1.0.10)
fastercsv (1.4.0)
fastthread (1.0.7, 1.0.1)
gem_plugin (0.2.3)
googlecharts (1.3.6)
hoe (1.12.2)
javan-whenever (0.2.2)
linecache (0.43)
mislav-will_paginate (2.3.8)
mongrel (1.1.5)
mysql (2.7)
passenger (2.2.2, 2.1.2)
prawn (0.4.1)
prawn-layout (0.1.0)
rack (1.0.0, 0.9.1)
rails (2.3.2, 2.2.2)
rake (0.8.6, 0.8.4)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
ruby-net-ldap (0.0.4)
rubyforge (1.0.3)
sqlite3-ruby (1.2.4)
technicalpickles-shoulda_generator (0.2.1)
thoughtbot-factory_girl (1.2.1)
thoughtbot-shoulda (2.10.1)

[jlee@casweb5 mehmry]$ whenever .
-bash: whenever: command not found

from whenever.

jeffleeismyhero avatar jeffleeismyhero commented on June 15, 2024
[jlee@casweb5 mehmry]$ wheneverize .
-bash: wheneverize: command not found

from whenever.

javan avatar javan commented on June 15, 2024

This may just be a PATH issue. On my system (OS X) rubygems installed the whenever binary in /opt/local/bin/whenever. Perhaps the binary was installed somewhere outside of your path?

from whenever.

jeffleeismyhero avatar jeffleeismyhero commented on June 15, 2024

Yes, I'm using Ruby Enterprise Edition so that was the issue. My path was the problem. Thanks!

from whenever.

grossu avatar grossu commented on June 15, 2024

I have the same problem. Other gems run normally. How can I set PATH for 'whenever'?

RubyGems Environment:

  • RUBYGEMS VERSION: 1.3.1
  • RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
  • INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
  • RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
  • EXECUTABLE DIRECTORY: /usr/bin

from whenever.

javan avatar javan commented on June 15, 2024

So you're also running Ruby Enterprise Edition? First, you'll need to find the whenever binary. (If all else fails, run find / --name "whenever")

Then either supply the full path to whenever in your Capistrano task or set a PATH in your schedule.rb file like:

env :PATH, "/your/path:$PATH"

(you'll likely need to add more paths than just the one)

from whenever.

grossu avatar grossu commented on June 15, 2024

No Javan. I use Ruby 1.8.6 on localhost and can execute nor 'whenever' or 'wheneverize'. On my production server I use Ruby Enterprise Edition and Whenever works ideally.

from whenever.

javan avatar javan commented on June 15, 2024

Locally, did you install the gem using sudo? sudo gem install javan-whenever

from whenever.

grossu avatar grossu commented on June 15, 2024

I've tried but got only this:
could not find gem javan-wheneve locally or in a repository

My remote SOURCES:
- http://gems.rubyforge.org/

from whenever.

javan avatar javan commented on June 15, 2024

It should be javan-whenever, not javan-wheneve

from whenever.

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.