eightban's memo

残しておきたい記事をまとめてみました。このブログに書いてあるドキュメントやブログで配布しているファイルの使用によって発生するいかなる損害に対してもこのブログの管理者は責任を負いません。使用する場合は自己責任のもとに使用してください。

オープンソース

パソコンでCOBOL

投稿日:

ホストコンピューターディスク動いているcobolプログラムをpcで動かすことが可能です。

opencobol,gnucobol,opensourcecobolがありますが
opensourcecobolのインストールメモです。

msys64 インストール

mingw32.exe 実行

pacman -Syu

(terminate MSYS2 without returning to shell and check for updates again for example close your terminal window instead of calling exit)

pacman -Su

pacman -S mingw-w64-i686-gcc
pacman -S make
pacman -S gmp-devel
pacman -S mingw-w64-i686-db
やらない(libdb-devel)
pacman -S mingw-w64-i686-pdcurses
pacman -S mingw-w64-i686-gettext

opensource-cobol-1.5.2J をダウンロードしてtmpに解凍

cd ..
cd ..
cd tmp
cd opensource-cobol-1.5.2J
./configure

Use gettext for international messages: yes
Use Berkeley DB for ISAM I/O: yes
Use enhanced Berkeley DB (>= 4.1) yes
Use fcntl for file locking: no
Use ncurses/pdcurses/curses for screen I/O: pdcurses

make
make install
cobc -x cobtest.cob

/mingw32/share/opensource-cobol-1.5.2J/config/default.conf: No such file or directory
Error: failed to load the initial config file となるので

export COB_CONFIG_DIR=/d/msys64c/mingw32/share/opensource-cobol-1.5.2J/config

[参考]
https://blogs.osdn.jp/2018/01/30/msys2-mingw.html
https://github.com/opensourcecobol/opensource-cobol/blob/master/README

-オープンソース

Copyright© eightban's memo , 2024 All Rights Reserved Powered by STINGER.