Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-17-2006, 11:58 PM   #1
LQ Newbie
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
non-distro installation question


I am trying to install a program that converts HTML to TXT, called html2text (can't post URLs yet, but got it from linux dot org, AppId 7912) which from what I can gather is quite a common piece of software.

I am using Red Hat Linux with the Fedora 3 core and am, unfortunately, only a standard user with no chance of any root access of any kind. To top it off I am brand new to this and trying to make sense of it all so any kind of help will be massively appreciated.

I downloaded the archive, decompressed it, went through the make process as described in the INSTALL documentation. However during make I get some messages regarding deprecated headers and it ends with:

format.C:377: error: `ostrstream' undeclared (first use this function)
format.C:377: error: (Each undeclared identifier is reported only once for each function it appears in.)
format.C:377: error: expected `;' before "oss"
format.C:378: error: `oss' undeclared (first use this function)
make: *** [format.o] Error 1

I hope this isn't too much of a long shot, but partly due to my inexperience I wasn't sure of the best place to post, but it seemed such a stupid question that I felt it was fitting to reveal my newbie-ness.

Any thoughts or help greatly appreciated,



p.s. if anyone has alternative methods to quickly strip a large set of htmls of their tags any such info would also be amazingly well appreciated
Old 07-18-2006, 02:53 AM   #2
Bruce Hill
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,934

Rep: Reputation: 128Reputation: 128
Welcome to LQ!

First, if you don't have root priviledges, you can't run "make install" to install the software. So that part is moot.

You may try to open the file with OpenOffice and then save it as a text file, but I don't think that will strip the html code.

Post all those error messages, not just "I get some messages regarding deprecated headers."
Old 07-18-2006, 04:15 AM   #3
LQ Newbie
Registered: Jul 2006
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
this is not a problem of privelegies. this can be because errors in sources or missing (old) header files.
this is an old homesite of this program. i've found there two versions of sources: one for old compilers and another for modern. try them. and here is new site, where you can simply get binary rmp for your system.
Old 07-18-2006, 04:46 AM   #4
Senior Member
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Incidentally, you need to be root to install rpms, so you won't be able to use that method.

In my limited experience, I've managed to install things to odd directories by adding some extra parameters to the ./configure command (along the lines of ./configure --INSTALLDIR=/home/pwc101/codecs), although this isn't always the case.
Old 07-19-2006, 07:15 AM   #5
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Another way is lynx -dump.

For instance I just d/l'd this page (as showthread.html) &:
lynx -dump ./showthread.html  | less -S
displayed it just fine.

lynx -dump ./showthread.html  > showthread.txt
did the conversion you seem to want.

for X in ./*.htm?
   lynx -dump $X  > ${X%htm?}txt
would then automate the conversion you want.

If you don't have lynx on the system you are using, then look for links or elinks. They probably have a similar option (RTFM ). I don't have them, so I can't advise on their specifics.

BTW, the meaning of my ${X%htm?}txt can be found in the bash man page by searching for ${parameter%word}.

BTW#2, IMNSHO anyone who tells someone to "RTFM" referring to bash, w/o providing a search term, is a complete <insert_derogatory_but_correct_anatomical_reference_here>.
Old 07-23-2006, 06:29 PM   #6
LQ Newbie
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0

Thanks guys,

it seems the initial problem was at least to do with privileges, not sure if the version I had was outdated as well, but in the end I managed to solve all my problems using lynx and a small perl script, so am particularly thankful for the lynx pointer ! :-)

But lots of thanks to all of you who spent your time helping me here!





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
Installation problems with every distro... Flz Linux - General 3 04-03-2006 10:05 AM
2 or more distro installation shshjun JDS 2 11-21-2004 12:53 AM
network + distro installation b0uncer Linux - Networking 0 06-21-2004 07:23 AM
Binary/Source Distro Installation Help SML Linux - Newbie 1 02-17-2004 12:32 AM
installation of multiple distro steelrose Linux - Software 1 03-12-2002 02:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:21 AM.

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