LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-09-2007, 12:08 PM   #1
ixhabbaba
Member
 
Registered: Sep 2007
Posts: 35

Rep: Reputation: 15
Problem compiling w3m: Missing gc.h


Hello!

I decided to give w3m a try, but when ./configuring,
I'm told that a file named gc.h is missing.
The README file implies that this file should come
with the GNU C library, although find couldn't find
any such file on my system.

Please help me! I love text based apps, and I really
want to try this one.
 
Old 10-09-2007, 12:17 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by ixhabbaba View Post
The README file implies that this file should come
with the GNU C library
No it doesn't. It says the following:

You need latest version of GC library (at least 6.1?).
You can get GC library from
http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/

Note: if you're using GC library 6.1, you should install gc.h
to PREFIX/include:
# cp gc-6.1/include/gc.h PREFIX/include

So, get the library and then try again.
 
Old 10-09-2007, 12:33 PM   #3
ixhabbaba
Member
 
Registered: Sep 2007
Posts: 35

Original Poster
Rep: Reputation: 15
I downloaded gc 7.0, which compiled just fine.
However, w3m gives an error message while compiling:

./mktable 100 functable.tab > functable.c
./mktable: error while loading shared libraries: libgc.so.1: cannot open shared object file: No such file or directory
make: *** [functable.c] Error 127

EDIT:
I didn't find any PREFIX folder in the
gc package, so I assumed the cp command
was just for the 6.1 version. Was I wrong,
and how terribly?

Last edited by ixhabbaba; 10-09-2007 at 12:53 PM.
 
Old 10-09-2007, 01:03 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Perhaps you need to run "ldconfig" first. PREFIX isn't a folder, it's the installation prefix for your w3m installation, e.g. if you add "--prefix=/usr" to your configure line, then the prefix is /usr (so the files will go in subdirectories of /usr, e.g. /usr/lib, /usr/bin, /usr/include).
 
Old 10-09-2007, 01:11 PM   #5
ixhabbaba
Member
 
Registered: Sep 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks. It compiles now, and works fine in xterm,
but not in tty:s, where it exits due to a
"segmentation fault", a term I am unfamiliar with.
 
  


Reply



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
w3m install problem wanghao Linux - Newbie 5 10-03-2007 03:07 AM
w3m uid0sd Linux - Software 2 09-21-2007 11:02 AM
w3m question Peff Linux - Software 2 02-10-2006 02:04 PM
Compiling from source, what am I missing? Fabiogump Linux - Newbie 8 01-23-2006 08:39 AM
problem compiling domxml in php 4.3.9 (something missing?) albatroz Linux - Software 3 11-12-2004 07:48 PM

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

All times are GMT -5. The time now is 03:15 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