LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-22-2004, 03:48 PM   #1
goofyheadedpunk
Member
 
Registered: Aug 2003
Distribution: Arch Linux
Posts: 140

Rep: Reputation: 15
Missing C header for Fortune-Mod


Just as a diversion I decided to install fortune, and upon compile time I and error informing me that "recode.h: No such file or directory" in line 143 of fortune.c. That line is
Code:
#include 	<recode.h>
From my meger experience with C and google searches it is my understanding that I'm missing the recode header in /usr/include/.

I couldn't find any references to it in the GNU C library but this page states that "... this header file is still fairly new in C standards, and likely does not exist everywhere," but it says nothing about how to obtain it. ( I realize that this page is part of a larger book, and I have skimmed through that. )

Am I correct in believing that I'm missing a header? If so, how do I obtain recode.h?

I apologize if this would have been better suited to the software forum, but I did not know if this was Slack specific or not. I'm guessing it's not, but I'm still not quite sure.

( If anyone happens to have a suggestion on materials about GNU headers that would be appreciated too. )
 
Old 08-22-2004, 04:18 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Re: Missing C header for Fortune-Mod

Quote:
Originally posted by goofyheadedpunk
Am I correct in believing that I'm missing a header? If so, how do I obtain recode.h?

I apologize if this would have been better suited to the software forum, but I did not know if this was Slack specific or not. I'm guessing it's not, but I'm still not quite sure.

( If anyone happens to have a suggestion on materials about GNU headers that would be appreciated too. )
But why install fortune from source when Slack comes
with it pre-packed? :)

http://freshmeat.net/search/?q=recod...&Go.x=0&Go.y=0


Cheers,
Tink
 
Old 08-22-2004, 05:12 PM   #3
goofyheadedpunk
Member
 
Registered: Aug 2003
Distribution: Arch Linux
Posts: 140

Original Poster
Rep: Reputation: 15
Quote:
But why install fortune from source when Slack comes
with it pre-packed? :)
Two reasons. The first is the main, and the second sounds nice. I installed from source because I was silly enough not to check and see if it came pre-packaged and also because when installing from source if something breaks I have to learn a little bit to unbreak it.

Like I said, the first one is the most true. Thanks for the link to the recode sources.

Quick question. After reading the man pages I'm still confused as to how to get fortune to output anything. For example, this
Code:
fortune -w /usr/share/games/fortunes/
I thought should have output a fortune from the non offensive list of fortunes, with a little bit of a wait added in.

What am I missing?
 
Old 08-22-2004, 05:22 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
fortune
(all by itself) should be enough to get a non-offensive quote.
The last parameter isn't necessarily explained quite well in
the man page. You don't specify a path, but a) either the
name of a particular file or b) a keyword like all.


Cheers,
Tink
 
Old 08-22-2004, 05:24 PM   #5
goofyheadedpunk
Member
 
Registered: Aug 2003
Distribution: Arch Linux
Posts: 140

Original Poster
Rep: Reputation: 15
Just vanilla fortune doesn't give any output either. I tried that earlier and assumed that I needed parameters.
 
Old 03-06-2005, 07:33 PM   #6
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
Did you manage to solve this issue? Having the same problem now.
 
  


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
help installing snort: pcre header missing cynthia_thomas Linux - Networking 1 11-07-2005 12:19 PM
Missing C header files? kushalkoolwal Programming 3 11-07-2005 05:52 AM
Fortune Mod - Homer Quotes anupamsr Linux - Software 2 10-28-2005 06:39 AM
screensaver for x using fortune-mod? dtheorem Linux - Software 1 08-25-2004 02:41 AM
Setting up Fortune-mod jester_69 Linux - General 2 07-01-2002 03:11 AM


All times are GMT -5. The time now is 06:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration