Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 574167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:48:07+00:00 2026-05-13T13:48:07+00:00

I run ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] I had to upgrade RubyGems so

  • 0
  • I run ruby 1.8.6 (2008-08-11
    patchlevel 287) [i386-mswin32]
  • I had to upgrade RubyGems so I run
    1.3.5 now
  • then I istalled chronic (0.2.3)

but I only receive

./chronic.rb:3: uninitialized constant Chronic (NameError)
    from E:/prog/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from E:/prog/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from chronic.rb:1

if I run this code

require 'chronic'

puts Chronic.parse("yesterday")

puts "Tomorrow = #{Chronic.parse('tomorrow')}"

puts "Today = #{Chronic.parse('today')}"

puts "yesteday = #{Chronic.parse('yesteday')}"

puts "2 days ago = #{Chronic.parse('2 days ago')}"

puts "2 months ago = #{Chronic.parse('2 months ago')}"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:48:08+00:00Added an answer on May 13, 2026 at 1:48 pm

    Is the file that contains your test code named chronic.rb or is there another file in the current directory named chronic.rb? If so, try renaming it.

    Your require 'chronic' statement is loading the file chronic.rb from the current directory rather than searching for the file in the gem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On windows, I can run my ruby script like this: > ruby myscript.rb but
When I run ruby filename.rb , the thin webserver startsup but when I try
Maybe I'm missing something simple here, but when I run ruby script/server, I can
I have ruby 1.9.2p180 (2011-02-18) [i386-mingw32] installed on my windows 7 machine. Now I
The SciTE editor will run Ruby programs for me if I press F5. But
This is driving me crazy. I run into this every now and then on
I'm looking for solution how can run Ruby script without invoking it directly like
With OS X Xcode installed one can run ruby code in terminal with >ruby
I want to run my ruby script x times a day (the number might
I'm trying to run a ruby file that will show git version of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.