[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Spawning child process: exec format error



Attachment: w3marc.tar.gz
Description: Binary data

 はじめまして。大友と申します。

M-x w3mでw3mを起動しようとすると、
Spawning child process: exec format error
という表示がミニバッファに出てしまい、起動できません。w3mは昨日まで起動できていました。

どなたか解決策をご教授いただけないでしょうか。

Meadowのバージョンは1.14で、APEL-10.3、flim-1.14.3、semi-1.14.3、w3m.el-1.2.4、w3m-20020211-o0.i586-cygwinです。組み合わせは、昨日も今日も同じです。

まず、Messagesバッファの内容を示します。
("c:/MEADOW/1.14/site-lisp" "c:/MEADOW/1.14/site-lisp/apel" "c:/MEADOW/1.14/site-lisp/bitmap" "c:/MEADOW/1.14/site-lisp/emu" "c:/MEADOW/1.14/site-lisp/flim" "c:/MEADOW/1.14/site-lisp/semi" "c:/MEADOW/1.14/site-lisp/wl" "C:/MEADOW/site-lisp" "c:/MEADOW/site-lisp/BBDB" "c:/MEADOW/site-lisp/MHC" "c:/MEADOW/site-lisp/bitmap" "c:/MEADOW/site-lisp/c-sig" "c:/MEADOW/site-lisp/n2c" "c:/MEADOW/site-lisp/sdic" "c:/MEADOW/site-lisp/util" "c:/MEADOW/site-lisp/w3m" "c:/MEADOW/site-lisp/yatex1.69.2" "c:/MEADOW/site-lisp/yatex1.69.2/docs" "c:/MEADOW/site-lisp/yatex1.69.2/help" "C:/MEADOW/1.14/lisp" "c:/MEADOW/1.14/lisp/textmodes" "c:/MEADOW/1.14/lisp/progmodes" "c:/MEADOW/1.14/lisp/play" "c:/MEADOW/1.14/lisp/mail" "c:/MEADOW/1.14/lisp/language" "c:/MEADOW/1.14/lisp/international" "c:/MEADOW/1.14/lisp/emulation" "c:/MEADOW/1.14/lisp/emacs-lisp" "c:/MEADOW/1.14/lisp/calendar" "C:/MEADOW/1.14/leim")
(C:\MEADOW\1.14\BIN\MEADOW95.EXE)
Loading c:/home/klavis/Meadow/init.el (source)...
Loading encoded-kb...
Loading encoded-kb...done
Loading font-lock...
Loading cus-face...
Loading cus-face...done
Loading regexp-opt...
Loading regexp-opt...done
Loading font-lock...done
Loading saveplace...
Loading saveplace...done
Loading backquote...
Loading backquote...done
Loading mail-mime-setup...
Loading mail-mime-setup...done
gnus-mime-setup is not found.
emh-setup is not found.
Loading advice...
Loading advice...done
Loading c:/home/klavis/Meadow/init.el (source)...done
Loading places from ~\.emacs-places...
Loading places from c:/home/klavis/.emacs-places...done
For information about the GNU Project and its goals, type C-h C-p.
Loading lazy-lock...
Loading lazy-lock...done
Loading timer...
Loading timer...done
Fontifying *scratch*...
Fontifying *scratch*... (regexps............)
Loading timer...done
Loading w3m...
Spawning child process: exec format error

Meadowのみを立ち上げたときには、ミニバッファにはFor information about the GNU Project and its goals, type C-h C-p.と記されていました。

ここで、Backtraceをとりましたら、添付ファイルのようになりました。拡張子がないのが、coding-systemがbinaryの状態でとったもので、拡張子がexeのものが、そのbinaryのファイルにexeをつけてみただけのもの、txtのものが、coding-systemをeuc-jp-unixにしたものです。よくわからなかったので、このようにしました。また、ファイル名らしきものもあったので、それも添付しました。これらはtarでまとめ、gzipで圧縮し、w3marc.tar.gzにしました。

また、backtraceに関数らしきものがあったので、M-x describe-functionで
w3m-accept-japanese-charactersを調べてみたところ、[No match]と表示されました。

とりあえず、w3mが動いてくれた昨日と、しっかり動いてくれない今日の違いを考えると、

1..emacs(実際は

(cond ((eq window-system 'w32)
       (load-file "~/Meadow/init.el"))  ; Meadow用
      (t
       (load-file "~/Xemacs/init.el"))) ; XEmacs用

で動かしているinit.el)を改変した。

2.load-pathの通っているディレクトリにetl8x16-bitmap.bdfとc-sig.elとx-face.elパッケージを置いた。(他にも置いた物があるが、それらはload-pathの通ったディレクトリから外した。

3.init.elに

;;; Cygwin の bash を使う場合
(setq explicit-shell-file-name "bash.exe") 
(setq shell-file-name "sh.exe") 
(setq shell-command-switch "-c") 

を記述し、
;;; coding-system の設定
(modify-coding-system-alist 'process ".*sh\\.exe" 'undecided-dos)
(add-hook 'comint-output-filter-functions 'shell-strip-ctrl-m nil t)

か、

;; argument-editing の設定
(require 'mw32script)
(mw32script-init)

のどちらか一方ずつを記述して、その両方の場合でM-x shellを起動した。すると、lsを実行すると実行後に出てくるメッセージには、行末に^Mがついてしまう。coding-systemの設定はきちんとやったにもかかわらずである。exitコマンドでも、^Mがついてしまうことになり、コマンドとして認識されないので、Ctrl+Alt+Del(「プログラムの強制終了」)でMeadowを強制終了せざるを得なかった。

なお、シェルはX on Windows(Cygwinをベースとしたソフト)を使った。M-x w3mを使ったときには、今の記述はすべてコメントアウトした。

そこで、2で気がついただけの、init.elへの追加記述をすべて削除してみましたが、backtraceはとってないものの、まったく同じエラーメッセージ(Spawning child process: exec format error)が出てしまう状態であり、また、load-pathの通ったディレクトリにあったw3m.el関連ファイルを削除し、

$ tar zxvf w3m_el-1.2.tar.gz
$ cd w3m_el-1.2
$ ./configure --with-emacs=meadow95 --with-lispdir=c:/Meadow/site-lisp/w3m
$ make
$ make install
で再びインストールしました(先ほど削除したw3m.elを以前にインストールしたのと同じ方法です。)

しかし、まったく変化がありません。Cygwinのbashからはw3mを起動できるのに、おかしな話です。

w3m関連の、init.elに記述した設定は以下のとおりです。

;;; w3m.el の設定
(autoload 'w3m "w3m" "Interface for w3m on Emacs." t)
(autoload 'w3m-find-file "w3m" "w3m interface function for local file." t)
(autoload 'w3m-browse-url "w3m" "Ask a WWW browser to show a URL." t)
(autoload 'w3m-search "w3m-search" "Search QUERY using SEARCH-ENGINE." t)
(autoload 'w3m-weather "w3m-weather" "Display weather report." t)
(autoload 'w3m-antenna "w3m-antenna" "Report chenge of WEB sites." t)

;; mime-w3m
(setq mime-setup-enable-inline-html nil)
(eval-after-load "mime-view"
'(progn
(autoload 'mime-w3m-preview-text/html "mime-w3m")
(ctree-set-calist-strictly
'mime-preview-condition
'((type . text)
(subtype . html)
(body . visible)
(body-presentation-method . mime-w3m-preview-text/html)))
(set-alist 'mime-view-type-subtype-score-alist
'(text . html) 3)))

;; browse-url 設定
(setq browse-url-browser-function 'w3m-browse-url)
(autoload 'w3m-browse-url "w3m" "Ask a WWW browser to show a URL." t)
(global-set-key "\C-cw" 'browse-url-at-point)

どなたか、よろしくお願いします。
--------------------------------------
大友 康寛 (Yasuhiro OTOMO)
PC-Email: yas.axis@xxxxxxxxxxxx
Web page: ちょっと製作中断中です。
--------------------------------------