# Junebugwiki error on startup

**URL:** <https://www.ruby-forum.com/t/junebugwiki-error-on-startup/125992>\
**Category:** Rails\
**Created:** [January 14, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/junebugwiki-error-on-startup/125992 "2008-01-14T15:15:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [January 14, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/junebugwiki-error-on-startup/125992/1 "2008-01-14T15:15:08Z")

</div>

Recently I had to restart my Junebug wiki and I’m receiving this error:

/usr/lib/ruby/gems/1.8/gems/junebug-0.0.18/lib/junebug.rb:4: undefined  
method `require_gem' for main:Object (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/application.rb:159:in`load’  
from  
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/application.rb:159:in  
`start_load' from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/application.rb:236:in`start’  
from  
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/controller.rb:72:in  
`run' from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons.rb:136:in`run’  
from  
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/cmdline.rb:105:in  
`call' from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/cmdline.rb:105:in`catch\_exceptions’  
from  
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons.rb:135:in `run’  
from wiki:11

All of my gems seem to be up-to-date. Any ideas?

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [January 14, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/junebugwiki-error-on-startup/125992/2 "2008-01-14T17:24:02Z")

</div>

The reason for the problem is you don’t have the latest junebug gem.

After version 0.0.18, the gem became known as ‘junebug-wiki’ and is  
now on v0.0.37, though that version is currently slightly broken (due  
to the AR 2.0 changes), and you will need to follow the instructions  
in the release notes (once you have upgraded the gem) to get it to  
upgrade your stylesheets, java, etc. You will probably also need to  
install the specific gem versions used. If you want to generate new  
junebug wikis, you will also need to edit the junebug execuatable  
(probably /usr/bin/junebug ) to incorporate the line

gem ‘activesupport’, ‘\<=1.4.4’

just after the “require ‘rake’” line.

(The actual reason you’re getting the error you are getting is because  
in rubygems 1.x.x, the require\_gem command became just ‘gem’ )

Hope this helps,  
Jon

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [January 15, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/junebugwiki-error-on-startup/125992/3 "2008-01-15T14:07:39Z")

</div>

P.S. my /usr/bin/junebug file now looks like this:

#!/usr/bin/ruby1.8

# 

# This file was generated by RubyGems.

# 

# The application ‘junebug-wiki’ is installed as part of a gem, and

# this file is here to facilitate running it.

# 

require ‘rubygems’  
gem ‘activesupport’, ‘\<=1.4.4’

version = “\>= 0”

if ARGV.first =~ /^_(.\*)_$/ and Gem::Version.correct? $1 then  
version = $1  
ARGV.shift  
end

gem ‘junebug-wiki’, version  
load ‘junebug’

Nick C. wrote:

> Thanks, I’m making some progress. I’m getting different errors at least  
> 🙂
> 
> When I run rake update:everything I get:
> 
> can’t activate activesupport (= 1.4.4), already activated  
> activesupport-2.0.2]  
> /usr/local/lib/site\_ruby/1.8/rubygems.rb:319:in `activate' /usr/local/lib/site_ruby/1.8/rubygems.rb:337:in`activate’  
> /usr/local/lib/site\_ruby/1.8/rubygems.rb:336:in `each' /usr/local/lib/site_ruby/1.8/rubygems.rb:336:in`activate’  
> /usr/local/lib/site\_ruby/1.8/rubygems.rb:337:in `activate' /usr/local/lib/site_ruby/1.8/rubygems.rb:336:in`each’  
> …
> 
> And ruby wiki run gives:
> 
> /usr/local/lib/site\_ruby/1.8/rubygems.rb:319:in `activate': can't activate activesupport (= 1.4.4), already activated activesupport-2.0.2] (Gem::Exception) from /usr/local/lib/site_ruby/1.8/rubygems.rb:337:in`activate’  
> from /usr/local/lib/site\_ruby/1.8/rubygems.rb:336:in `each' from /usr/local/lib/site_ruby/1.8/rubygems.rb:336:in`activate’  
> from /usr/local/lib/site\_ruby/1.8/rubygems.rb:337:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems.rb:336:in`each’  
> from /usr/local/lib/site\_ruby/1.8/rubygems.rb:336:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
> from wiki:7
> 
> What to do next?
> 
> thx  
> Nick

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [January 15, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/junebugwiki-error-on-startup/125992/4 "2008-01-15T15:31:24Z")

</div>

Ah, sorry.

The release notes in the gem don’t seem to include the nesessary step,  
although the ones in the SVN do.  
Anyway, I will reproduce the it here:

make sure your Rakefile (in the wiki directory) looks like:

$:.unshift “…/lib”

require ‘rubygems’  
require ‘rake’

gem ‘activesupport’, ‘\<=1.4.4’  
require ‘junebug/tasks’

Then run ‘rake update:everything’

That should take care of updating the wiki excutable to also include  
that line (amongst other changes).

Regards,  
Jon

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [January 15, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/junebugwiki-error-on-startup/125992/5 "2008-01-15T15:59:33Z")

</div>

Thanks, that did it.

Nick

---

<div class="post-metadata">

**Author:** ![n1c](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3ec8ea/32.png) [@n1c](https://www.ruby-forum.com/u/n1c)\
**Post date:** [January 15, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/junebugwiki-error-on-startup/125992/6 "2008-01-15T14:06:01Z")

</div>

Thanks, I’m making some progress. I’m getting different errors at least  
🙂

When I run rake update:everything I get:

can’t activate activesupport (= 1.4.4), already activated  
activesupport-2.0.2]  
/usr/local/lib/site\_ruby/1.8/rubygems.rb:319:in `activate' /usr/local/lib/site_ruby/1.8/rubygems.rb:337:in`activate’  
/usr/local/lib/site\_ruby/1.8/rubygems.rb:336:in `each' /usr/local/lib/site_ruby/1.8/rubygems.rb:336:in`activate’  
/usr/local/lib/site\_ruby/1.8/rubygems.rb:337:in `activate' /usr/local/lib/site_ruby/1.8/rubygems.rb:336:in`each’  
…

And ruby wiki run gives:

/usr/local/lib/site\_ruby/1.8/rubygems.rb:319:in `activate': can't activate activesupport (= 1.4.4), already activated activesupport-2.0.2] (Gem::Exception) from /usr/local/lib/site_ruby/1.8/rubygems.rb:337:in`activate’  
from /usr/local/lib/site\_ruby/1.8/rubygems.rb:336:in `each' from /usr/local/lib/site_ruby/1.8/rubygems.rb:336:in`activate’  
from /usr/local/lib/site\_ruby/1.8/rubygems.rb:337:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems.rb:336:in`each’  
from /usr/local/lib/site\_ruby/1.8/rubygems.rb:336:in `activate' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
from wiki:7

What to do next?

thx  
Nick

namelessjon wrote:

> The reason for the problem is you don’t have the latest junebug gem.
> 
> After version 0.0.18, the gem became known as ‘junebug-wiki’ and is  
> now on v0.0.37, though that version is currently slightly broken (due  
> to the AR 2.0 changes), and you will need to follow the instructions  
> in the release notes (once you have upgraded the gem) to get it to  
> upgrade your stylesheets, java, etc. You will probably also need to  
> install the specific gem versions used. If you want to generate new  
> junebug wikis, you will also need to edit the junebug execuatable  
> (probably /usr/bin/junebug ) to incorporate the line
> 
> gem ‘activesupport’, ‘\<=1.4.4’
> 
> just after the “require ‘rake’” line.
> 
> (The actual reason you’re getting the error you are getting is because  
> in rubygems 1.x.x, the require\_gem command became just ‘gem’ )
> 
> Hope this helps,  
> Jon
