LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-07-2006, 04:06 PM   #1
Peufelon
Member
 
Registered: Jul 2005
Posts: 164
Blog Entries: 1

Rep: Reputation: Disabled
Problem running naive Bayesian classifier from DDJ article


Hi all,

I bought the May 2005 issue of Dr. Dobb's Journal just so that I could read John Graham-Cumming's (excellent) article describing a perl implementation of a simple naive Bayesian classifier. I bought a magnifying glass just so that I could read the listing (no kidding!). I checked pretty carefully for typos, but it isn't running on my machine (Mandrake 10.0). I think the problem might be that I am lacking a certain perl library; the second line in the perl script is

# use DB_File

and using locate I can find no trace of any "DB_File" on my machine. (Is that a really silly comment? Is DB_File in fact some kind of library which I would need to run the perl script in question, or is it something else? I have no idea, because I am no programmer--- as I said, I bought this issue of DDJ only in order to try to enter and use this perl script.)

I can't find DB_File in the Debian archives, or figure out whether this is something I need and if so where to get it, or whether my problem is due to something else. Any suggestions?

TIA, Peufelon
 
Old 04-08-2006, 12:53 PM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Don't be so naive
 
Old 04-08-2006, 02:02 PM   #3
Peufelon
Member
 
Registered: Jul 2005
Posts: 164

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Could you elaborate? Your answer isn't very helpful to me as it stands.

Peufelon
 
Old 04-08-2006, 02:26 PM   #4
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
You're most likely missing some required perl modules. There are a few ways to resolve these dependencies.

1. Download the module from http://www.cpan.org , compile and install it manually or
2. Use the automated method via the "perl -MCPAN -e shell" command

All of the above is documented at the cpan web site http://www.cpan.org/misc/cpan-faq.ht...l_Perl_modules

HTH

Mad.
 
Old 04-08-2006, 10:51 PM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Cool

Quote:
Originally Posted by Peufelon
Could you elaborate? Your answer isn't very helpful to me as it stands.

Peufelon
Quote:
Originally Posted by Peufelon
.....simple naive Bayesian ......
Joke....I didn't think there could be any confusion
 
Old 04-10-2006, 05:22 PM   #6
Peufelon
Member
 
Registered: Jul 2005
Posts: 164

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thank you, Mad Luther, I found the module. This was very helpful!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Application Layer Packet Classifier for Linux (l7-filter) stomach Linux - Software 1 09-10-2005 01:04 AM
enable Layer7 Classifier? joirnange Linux - Networking 2 12-28-2004 10:22 PM
SpamAssassin: bayesian tests not working? J_Szucs Linux - Software 1 03-05-2004 09:33 AM
SpamAssassin's Bayesian filtering, is forward as attachment ok? m3kgt Linux - Software 0 01-13-2004 12:42 PM
is there bayesian junk mail filter for evolution jaan kaer Linux - Newbie 3 12-17-2003 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration