0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

COBOLで遊ぼう(7):IBM COBOL for Linux on x86のインストール

0
Last updated at Posted at 2026-04-10

COBOLで遊ぶためにインストール(IBM版)

以下でRocket COBOL(Microfocus COBOL)をインストールしました。
https://qiita.com/drafts/a5df30bf0120b87ed41a/edit

今度はIBMのCOBOLを試してみましょう。

試用版のダウンロード

https://www.ibm.com/jp-ja/products/cobol-compiler-linux-x86
「無料評価版を試す」を押します

trial_000.jpg

必要な情報を入力し、進みます。個人でも大丈夫です
trial_001.jpg

tar.gzのインストールイメージがダウンロードできます
trial_002.jpg

trial_download_files.jpg

ライセンス情報は確認しておきましょう。

  • 試用期間は60日
  • サポート、保証は無し

一般的な試用版の条項だと思います

試用版のインストール

Linux版なのでLinuxマシンが必要です。私はWinodws 11上のLinuxサブシステム(Ubuntu)を使いました

ダウンロードしたtar.gzを展開します

tar zxvf IBM_COBOL_V1.2.0_LINUX_EVAL.x86-64.260105.tar.gz

trial_003.jpg

インストールします。詳しい説明は「install.pdf」に書いてありますが、installというシェルを実行するだけで大丈夫です。

sudo ./install

trial_004.jpg

コンパイルと実行

環境変数がいくつかありますが、とりあえず最小限の設定をします。

export PATH=$PATH:/opt/ibm/cobol/1.2.0/usr/bin

これも詳しい説明は「install.pdf」及びIBMのWebページで確認できます。
サンプルソースが /opt/ibm/cobol/1.2.0/samples/ に置かれますので、一番基本のhello.cblを動かしてみます。

コンパイルは「cob2  ソースファイル」です
compile_and_exec.jpg

これで、IBM COBOLをいろいろ試せます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?