アフィリエイト広告を利用しています

2022年05月29日

OpenBSD: Gauche をコンパイル・インストールする

スクリプト言語として Scheme の実装のひとつである Gauche をインストールすることにした.

gauche on OpenBSD を参考にして, Gauche のコンパイル・インストールを行う.

Github から開発バージョンを持ってきてコンパイルを行おうとすると, gmake を走らせた時点で

"gosh" "./tools/check-build-version" 0.9.11 && touch pre-package.stamp
/bin/sh: gosh: not found
*** Error 127 in /home/pine/src/gauche-git/Gauche (Makefile:77 'pre-package.stamp')

"gosh" "./tools/check-build-version" 0.9.11 && touch pre-package.stamp
/bin/sh: gosh: not found
gmake: *** [Makefile:77: pre-package.stamp] エラー 127

のようなエラーが出る.
gmake 実行時に Gauche の実行モジュールが必要なようだ.

それで, まず最新のリリース Gauche 0.9.11-p1 を Download からダウンロードしてきてコンパイル・インストールを行う.

$ ./configure --prefix=/usr/local \
--infodir=/usr/local/info \
--mandir=/usr/local/share/man
$ gmake
$ gmake check

gmake check がスレッドのテストでハングアップしてしまうので Ctrl-C で強制終了してインストールを行う.

# gmake install
$ gosh -V
Gauche scheme shell, version 0.9.11-p1 [utf-8,pthreads], x86_64-unknown-openbsd7.1
(version "0.9.11-p1")
(command "gosh")
(scheme.id gauche)
(languages scheme r5rs r7rs)
(encodings utf-8)
(website "https://practical-scheme.net/gauche")
(build.platform "x86_64-unknown-openbsd7.1")
(build.configure "--prefix=/usr/local" "--infodir=/usr/local/info" "--mandir=/usr/local/share/man" "--enable-multibyte=utf-8")
(scheme.path "/usr/local/share/gauche-0.98/site/lib" "/usr/local/share/gauche-0.98/0.9.11-p1/lib")
(gauche.threads pthreads)
(gauche.net.tls axtls)


続いて, 開発バージョンのコンパイルとインストールを行う.

$ ./DIST gen
$ ./configure --prefix=/usr/local \
--infodir=/usr/local/info \
--mandir=/usr/local/share
$ gmake
$ gmake check # スレッドのテストでハングアップするので強制終了させる.
# gmake install
$ gosh -V
Gauche scheme shell, version 0.9.12_pre1 [utf-8,pthreads], x86_64-unknown-openbsd7.1
(version "0.9.12_pre1")
(command "gosh")
(scheme.id gauche)
(languages scheme r5rs r7rs)
(encodings utf-8)
(website "https://practical-scheme.net/gauche")
(build.platform "x86_64-unknown-openbsd7.1")
(build.configure "--prefix=/usr/local" "--infodir=/usr/local/info" "--mandir=/usr/local/share/man" "--enable-multibyte=utf-8")
(scheme.path "/usr/local/share/gauche-0.98/site/lib" "/usr/local/share/gauche-0.98/0.9.12_pre1/lib")
(gauche.threads pthreads)
(gauche.net.tls)

gmake check のログを見ると, スレッドのテストがハングアップする他, SRFI のテストがアボートしている.
SRFI テストのアボートは SRFI test aborts on OpenBSD-current #334 で既に報告されているものである.

スレッドの問題に関しては, 時間のある時に configure のオプションで --enable-threads=none, すなわちスレッド機能のオフを指定してコンパイルを行ってみることにして, ひとまず今日の作業に区切りを付ける.
この記事へのコメント
コメントを書く

お名前:

メールアドレス:


ホームページアドレス:

コメント:

この記事へのトラックバックURL
https://fanblogs.jp/tb/11430531

この記事へのトラックバック
ファン
検索
<< 2024年09月 >>
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
最新記事
最新コメント
眼科の定期検査 〜 散歩 by コトタマ (02/15)
眼科の定期検査 by 三文字寄れば文殊のヒフミヨ (09/21)
本を読んで過ごす by 底彦 (12/13)
本を読んで過ごす by ねこ (12/12)
数学の計算をする by 底彦 (12/04)
タグクラウド
カテゴリアーカイブ
仕事(59)
社会復帰(22)
(43)
コンピューター(211)
(1416)
借金(8)
勉強(12)
(12)
数学(97)
運動(8)
日常生活(1386)
(203)
健康(36)
読書(20)
プロフィール

ブログランキング・にほんブログ村へ
にほんブログ村
にほんブログ村 メンタルヘルスブログ うつ病(鬱病)へ
にほんブログ村
にほんブログ村 科学ブログ 数学へ
にほんブログ村
にほんブログ村 IT技術ブログ プログラム・プログラマーへ
にほんブログ村