forth のウェブアプリケーション フレームワーク 1991

動かなかった。

hata published on
2 min, 227 words

Categories: programming

forth の Web Framework である 1991 に入門しようとしたが Hello World できなかった。。

https://www.1-9-9-1.com/

$ gforth app.fs
/Users/xxxxxxxx/.gforth/libcc-named/socket.c:1:10: fatal error: 'gforth/0.7.3/libcc.h' file not found
#include <gforth/0.7.3/libcc.h>
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.

in file included from *OS command line*:-1
in file included from app.fs:2
in file included from ../1991.fs:3
/opt/homebrew/Cellar/gforth/0.7.3_3/share/gforth/0.7.3/unix/socket.fs:48: libtool compile failed
>>>end-c-library<<<
Backtrace:
$14A8049A8 throw
$14A8407D8 c(abort")
$14A8413E8 compile-wrapper-function1

$HOME/.gforth/libcc-named/socket.cgforth app.fs したタイミングで動的に生成されてるっぽいから、直接いじってもだめだった。 1991 の問題ではなく gforth で socket 周りを使おうとするらへんの問題だと思うが。 m1mac なことも関係あるかも。

https://stackoverflow.com/questions/49602892/error-with-gforth-libtool-compile-failed はかなり近いエラーだけど Ubuntu 。 sudo apt install libtool-bin で解決したらしい。