# Error using feedtools

**URL:** <https://www.ruby-forum.com/t/error-using-feedtools/55345>\
**Category:** Rails\
**Created:** [March 20, 2006, 3:55am UTC](https://www.ruby-forum.com/t/error-using-feedtools/55345 "2006-03-20T03:55:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![beachguy82](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9dc877/32.png) [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Post date:** [March 20, 2006, 3:55am UTC](https://www.ruby-forum.com/t/error-using-feedtools/55345/1 "2006-03-20T03:55:28Z")

</div>

I performed a gem install feedtools,  
I then added these 2 lines to my environment.rb:  
require ‘rubygems’  
require ‘feed\_tools’

I then added this method in my controller:

def rss  
@post = Post.most\_recent  
feed = FeedTools::Feed.new  
feed.title = ‘Recent Rambles’  
feed.subtitle = ‘random thoughts by me’  
feed.author.name = “Charlie B.”  
feed.link = “[http://www.recentrambles.com/rss](http://www.recentrambles.com/rss)”

```
feed.entries << FeedTools::FeedItem.new

feed.entries[0].title = @post.title
feed.entries[0].link = 

```

“[http://www.recentrambles.com/pragmatic/view/#{@post.id}](http://www.recentrambles.com/pragmatic/view/#%7B@post.id%7D)”  
feed.entries[0].content = @post.post

```
# Assumes this is inside a .rxml file
feed.build_xml("atom", 1.0, xml)

```

end

This causes this error:  
uninitialized constant FeedTools  
This error occured while loading the following files:  
feed\_tools.rb

What am I forgetting to do?

---

<div class="post-metadata">

**Author:** ![beachguy82](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9dc877/32.png) [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Post date:** [March 20, 2006, 4:02am UTC](https://www.ruby-forum.com/t/error-using-feedtools/55345/2 "2006-03-20T04:02:06Z")

</div>

it should be:

require\_gem ‘feedtools’

not

require\_gem ‘feed\_tools’

---

<div class="post-metadata">

**Author:** ![beachguy82](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9dc877/32.png) [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Post date:** [March 20, 2006, 5:01am UTC](https://www.ruby-forum.com/t/error-using-feedtools/55345/3 "2006-03-20T05:01:54Z")

</div>

> it should be:
> 
> require\_gem ‘feedtools’
> 
> not
> 
> require\_gem ‘feed\_tools’

require ‘feed\_tools’ works.  
require\_gem ‘feedtools’ also works.

His problem is likely an issue with a missing library, likely iconv.

## – Cheers, Bob A.

AIM: sporkmonger  
Jabber: removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![beachguy82](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9dc877/32.png) [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Post date:** [March 20, 2006, 4:10am UTC](https://www.ruby-forum.com/t/error-using-feedtools/55345/4 "2006-03-20T04:10:52Z")

</div>

robbie shepherd wrote:

> it should be:  
> require\_gem ‘feedtools’  
> not  
> require\_gem ‘feed\_tools’

Thanks, but that didn’t work. Still the same error

---

<div class="post-metadata">

**Author:** ![beachguy82](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9dc877/32.png) [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Post date:** [March 20, 2006, 2:00pm UTC](https://www.ruby-forum.com/t/error-using-feedtools/55345/5 "2006-03-20T14:00:48Z")

</div>

I have also greped my whole rails app directory for RUBYOPT and found  
nothihg.

charlie bowman wrote:

> I’ve checked and I do have  
> /usr/lib/ruby/1.8/i386-linux/iconv.so
> 
> I’m running fedora core 4
> 
> Any other ideas.
> 
> Bob A. wrote:
> 
> > > it should be:
> > > 
> > > require\_gem ‘feedtools’
> > > 
> > > not
> > > 
> > > require\_gem ‘feed\_tools’
> > 
> > require ‘feed\_tools’ works.  
> > require\_gem ‘feedtools’ also works.
> > 
> > His problem is likely an issue with a missing library, likely iconv.
> > 
> > ## – Cheers, Bob A.
> > 
> > AIM: sporkmonger  
> > Jabber: removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![beachguy82](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9dc877/32.png) [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Post date:** [March 20, 2006, 1:50pm UTC](https://www.ruby-forum.com/t/error-using-feedtools/55345/6 "2006-03-20T13:50:17Z")

</div>

I’ve checked and I do have  
/usr/lib/ruby/1.8/i386-linux/iconv.so

I’m running fedora core 4

Any other ideas.

Bob A. wrote:

> > it should be:
> > 
> > require\_gem ‘feedtools’
> > 
> > not
> > 
> > require\_gem ‘feed\_tools’
> 
> require ‘feed\_tools’ works.  
> require\_gem ‘feedtools’ also works.
> 
> His problem is likely an issue with a missing library, likely iconv.
> 
> ## – Cheers, Bob A.
> 
> AIM: sporkmonger  
> Jabber: removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![beachguy82](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9dc877/32.png) [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Post date:** [April 19, 2006, 8:15pm UTC](https://www.ruby-forum.com/t/error-using-feedtools/55345/7 "2006-04-19T20:15:48Z")

</div>

I realize this thread is old, but I wonder if this issue was solved (and  
as of this moment I can’t access the developer’s site). I am having the  
same problem right now. I am trying to use FeedTools under Locomotive  
on Mac OS 10.4. I did the gem install via the Locomotive Terminal.

Peer

charlie bowman wrote:

> I have also greped my whole rails app directory for RUBYOPT and found  
> nothihg.
> 
> charlie bowman wrote:
> 
> > I’ve checked and I do have  
> > /usr/lib/ruby/1.8/i386-linux/iconv.so
> > 
> > I’m running fedora core 4
> > 
> > Any other ideas.
> > 
> > Bob A. wrote:
> > 
> > > > it should be:
> > > > 
> > > > require\_gem ‘feedtools’
> > > > 
> > > > not
> > > > 
> > > > require\_gem ‘feed\_tools’
> > > 
> > > require ‘feed\_tools’ works.  
> > > require\_gem ‘feedtools’ also works.
> > > 
> > > His problem is likely an issue with a missing library, likely iconv.
> > > 
> > > ## – Cheers, Bob A.
> > > 
> > > AIM: sporkmonger  
> > > Jabber: removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![beachguy82](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9dc877/32.png) [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Post date:** [April 20, 2006, 3:37am UTC](https://www.ruby-forum.com/t/error-using-feedtools/55345/8 "2006-04-20T03:37:05Z")

</div>

> I realize this thread is old, but I wonder if this issue was solved (and  
> as of this moment I can’t access the developer’s site). I am having the  
> same problem right now. I am trying to use FeedTools under Locomotive  
> on Mac OS 10.4. I did the gem install via the Locomotive Terminal.
> 
> Peer

9/10 times, the problem is caused by iconv. If you can successfully  
execute:

require ‘iconv’

Then fine, it’s something else, but there’s a whole host of libraries  
that FeedTools needs, all of which should be required up at the top of  
feed\_tools.rb. Try requiring each of them until you get one that  
fails. I should probably try to use a better way of notifying the  
user which library is missing or broken, but the problem happens  
infrequently enough that I haven’t gotten around to it.

## Cheers, Bob A.

AIM: sporkmonger  
Jabber: removed\_email\_address@domain.invalid
