[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: html images still not viewed in gnus [was: From newbie: problems with installation of w3m]
- From: "Rodolfo Medina" <romeomedina@xxxxxxxxx>
- Date: Mon, 28 Feb 2005 16:14:16 +0100
- X-ml-name: emacs-w3m
- X-mail-count: 07752
Rodolfo Medina wrote:
> After some difficulties, in the end I managed to install
> emacs-w3m in my system, but still can't view images within html mails,
> with gnus.
Katsumi Yamaoka wrote:
> Hm, I can test the article in question. Could you forward it to
> me? It will be better to use the `2 S o m' key to send it.
Thanks indeed for your help.
The matter seems harder than I thought.
I repeated the installation of emacs-w3m into another linux partition
where I have Emacs CVS 21.3.50 installed one month ago,
which includes gnus 5.11 (it should support emacs-w3m, shouldn't it?),
but encountered the same problems.
Before installing emacs-w3m, I installed the following packages:
gc.tar.gz; openssl-0.9.7e.tar.gz; w3m-0.5.1.tar.gz.
I don't know if it's important, but during the 'make' step
in the installation of openssl-0.9.7e.tar.gz
the following message went on appearing:
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
No other problems seemed to occur.
I'm sending the html mail in question to your personal address,
from MS Outlook. It's just one the many adverts you get from internet.
I know it's mostly spam, but sometimes they could be of ineterest for me
and I don't want to miss them.
When I try to view it via gnus, the images are not shown at all.
Katsumi:
> I think you didn't succeed in installing emacs-w3m, or there
> seems to be a zombi of the old emacs-w3m which might be bundled
> with some distribution. The first step that checks whether you
> are using emacs-w3m which is newly installed is to run emacs-w3m
> and type:
>
> M-x report-emacs-w3m-bug RET [...]
How do I run emacs-w3m? If I do '$ emacs-w3m' from command line,
it says: bash: emacs-w3m: command not found. If, within Emacs, I do
`M-x emacs-w3m RET', in the echo area it says: [No match].
As well, if within Emacs I do `M-x report-emacs-w3m-bug RET',
in the echo area it says: [No match].
Within Emacs, I did 'M-x w3m RET', then 'M-x report-emacs-w3m-bug RET'
and in the echo area appeared the prompt:
Bug subject:
. I replied with: 'emacs-w3m-version RET', and a message appeared,
which contained the following:
System Info to help track down your bug:
---------------------------------------
emacs-w3m-version
=> "1.4.3"
emacs-version
=> "GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit)\n of 2005-01-22 on
localhost"
mule-version
=> "5.0 (SAKAKI)"
system-type
=> gnu/linux
w3m-version
=> "w3m/0.5.1"
w3m-type
=> w3m-m17n
w3m-compile-options
=> ("lang=en" "m17n" "image" "color" "ansi-color" "mouse" "gpm" "menu"
"cookie" "ssl" "ssl-verify" "external-uri-loader" "w3mmailer" "nntp" "ipv6"
"alarm" "mark")
w3m-language
=> nil
w3m-command-arguments
=> nil
w3m-command-arguments-alist
=> nil
w3m-command-environment
=> nil
w3m-input-coding-system
=> utf-8
w3m-output-coding-system
=> utf-8
w3m-use-mule-ucs
=> nil
Katsumi:
> [...]
> or to evaluate[1] the following S-expressions:
>
> emacs-w3m-version
> (locate-library "w3m")
>
> [1] Copy each S-expression into the *scratch* buffer and type
> `C-j' at the end of the line.
I copied the two expressions into the *scratch* buffer and did `C-j'.
For the first one I got this error message:
Debugger entered--Lisp error: (void-variable emacs-w3m-version)
eval(emacs-w3m-version)
eval-last-sexp-1(t)
eval-last-sexp(t)
eval-print-last-sexp()
call-interactively(eval-print-last-sexp)
; when I evaluated the second, in the line below appeared the following:
"/usr/local/share/emacs/site-lisp/w3m/w3m.elc"
> By the way, before installing emacs-w3m, you can see what
> modules will be installed to where. To do that, type the
> following after you ran the configure program.
>
> make what-where
I did so, and this was the output:
----------------------------------------------------------------------
[rodolfo@localhost emacs-w3m-1.4.3]$ make what-where
lispdir=/usr/local/share/emacs/site-lisp/w3m
ICONDIR=/usr/local/share/emacs/21.3.50/etc/w3m/icons
PACKAGEDIR=NONE
infodir=/usr/local/info
install:
*.el, *.elc, ChangeLog* -> /usr/local/share/emacs/site-lisp/w3m/
*.info, *.info-* -> /usr/local/info/
install-icons:
*.xpm -> /usr/local/share/emacs/21.3.50/etc/w3m/icons/
install-info:
*.info, *.info-* -> /usr/local/info/
----------------------------------------------------------------------------
------
In my .emacs there is:
(require 'w3m-load)
, and in my .gnus.el there is:
(setq mm-inline-text-html-renderer 'w3m)
(setq mm-inline-text-html-with-images t)
(setq mm-w3m-safe-url-regexp nil)
I'm also attaching all the steps I followed during the installation of
emacs-w3m.
Thanks again,
regards,
Rodolfo
From http://prdownloads.sourceforge.net/w3m/ I downloaded the package w3m-0.5.1.tar.gz
and copied it into the ~/tmp dir.
From http://emacs-w3m.namazu.org I downloaded the package
emacs-w3m-1.4.3.tar.gz and copied it into the ~/tmp dir.
from http://www.hpl.hp.com/personal/Hans_Boehm/gc/
I downloaded the package gc.tar.gz and copied it into the ~/tmp dir.
Then,
# urpmi gcc
$ cd /home/rodolfo/tmp
$ tar xzvf gc.tar.gz
$ cd gc6.3
$ ./configure
$ make
$ make check
# make install
From internet I downloaded openssl-0.9.7e.tar.gz and copied into my ~/tmp dir.
There I did
$ tar xzvf openssl-0.9.7e.tar.gz
$ cd openssl-0.9.7e
$ ./config
$ make
$ make test
# make install
$ export LDFLAGS="-Xlinker -R/usr/local/lib"
$ cd /home/rodolfo/tmp
$ tar xzvf w3m-0.5.1.tar.gz
$ cd w3m-0.5.1
$ ./configure
$ make
# make install
$ cd ~/tmp
$ tar xzvf emacs-w3m-1.4.3.tar.gz
$ cd emacs-w3m-1.4.3
$ ./configure
$ make what-where
$ make
# make install
# make install-icons
In .emacs I put the lines:
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/w3m"))
(require 'w3m-load)
, and in .gnus.el the lines:
(setq mm-inline-text-html-renderer 'w3m)
(setq mm-inline-text-html-with-images t)
(setq mm-w3m-safe-url-regexp nil)