W3m-0.5.3

Introduction to W3m

w3m is primarily a pager but it can also be used as a text-mode WWW browser.

This package is known to build and work properly using an LFS-7.6 systemd platform.

Package Information

Additional Downloads

W3m Dependencies

Required

GC-7.4.2

Recommended

Optional

GPM-1.20.7, OpenSSL-1.0.1i, gdk-pixbuf-2.31.1, Compface-1.5.2, and nkf, a Mail User Agent, and an External Browser

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/W3M

Installation of W3m

Install w3m by running the following commands:

patch -Np1 -i ../w3m-0.5.3-bdwgc72-1.patch &&
sed -i 's/file_handle/file_foo/' istream.{c,h} &&
sed -i 's#gdk-pixbuf-xlib-2.0#& x11#' configure &&

./configure --prefix=/usr --sysconfdir=/etc --with-imagelib=imlib2 &&
sed -i "s:lImlib2:& -lX11:" Makefile &&
make

This package does not come with a test suite.

Now, as the root user:

make install &&
install -v -m644 -D doc/keymap.default /etc/w3m/keymap &&
install -v -m644    doc/menu.default /etc/w3m/menu &&
install -v -m755 -d /usr/share/doc/w3m-0.5.3 &&
install -v -m644    doc/{HISTORY,READ*,keymap.*,menu.*,*.html} \
                    /usr/share/doc/w3m-0.5.3

Command Explanations

patch -p1 < ../w3m-0.5.3-bdwgc72-1.patch: This patch fixes compiling w3m with GC-7.2 installed.

sed -i 's/file_handle/file_foo/' istream.{c,h}: This sed renames the file_handle function to avoid a clash with a glibc function that has the same name, defined in /usr/include/bits/fcntl.h.

sed -i 's#gdk-pixbuf-xlib-2.0#& x11#' configure: This sed fixes compiling w3m using gdk-pixbuf-2.31.1 as its image library. It has no impact if gdk-pixbuf-2.31.1 is not installed.

--with-imagelib=imlib2: This switch sets Imlib2-1.4.6 as the default image loading library. Remove it if you don't need image loading capabilities or you don't want to install X11. Note that build will fail if Xorg Libraries are present and this switch is not used.

--with-imagelib=gdk-pixbuf: Use this switch if you want to use gdk-pixbuf-2.31.1 as the image loading library.

sed -i "s:lImlib2:& -lX11:" Makefile: This sed fixes building when using Imlib2-1.4.6 as the image loading library.

Configuring W3m

Config Files

/etc/w3m/* and ~/.w3m/*

Contents

Installed Programs: w3m and w3mman
Installed Libraries: None
Installed Directories: /usr/libexec/w3m, /usr/share/w3m, and /usr/share/doc/w3m-0.5.3

Short Descriptions

w3m

is a text based web browser and pager.

w3mman

is an interface to the on-line reference manuals in w3m.

Last updated on 2014-08-23 17:10:38 +0000