インストールとアンインストール

本章では、Linux環境でのOpenFrame ASMのインストールとアンインストール方法について説明します。

1. インストール

OpenFrame ASMをインストールするには、インストールするシステム用のインストーラー・バイナリ・ファイルが必要です。インストール中に前の段階に戻るには「back」を入力し、インストールを中止するには「quit」を入力してEnterキーを押します。

  1. OpenFrame ASMをインストールするシステムの適切な場所にインストーラー・バイナリ・ファイルをコピーします。

  2. インストーラー・バイナリに実行権限が付与されていない場合は、以下のようにchmodコマンドを使用して実行権限を付与します。

    以下は、Linux 64ビット用インストーラー・バイナリに実行権限を付与する例です。

    $ chmod a+x OpenFrame_ASM_4_0_Linux_x86_64.bin
  3. インストーラー・バイナリ・ファイルを実行する方法は次の2つがあります。いずれかの方法を選択してEnterキーを押します。

    • 方法1

      ./OpenFrame_ASM_4_0_Linux_x86_64.bin
    • 方法2

      sh OpenFrame_ASM_4_0_Linux_x86_64.bin
  4. インストール紹介画面が表示されたら、内容を確認した後、Enterキーを押してインストールを進めます。

    Preparing to install...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...
    
    Launching installer...
    
    Preparing CONSOLE Mode Installation...
    
    ===============================================================================
    OpenFrame_ASM                  (created with InstallAnywhere by Macrovision)
    -------------------------------------------------------------------------------
    ===============================================================================
    Introduction
    ------------
    
    InstallAnywhere will guide you through the installation of OpenFrame_ASM4_0.
    
    It is strongly recommended that you quit all programs before continuing with
    this installation.
    
    Respond to each prompt to proceed to the next step in the installation.  If you
    want to change something on a previous step, type 'back'.
    
    You may cancel this installation at any time by typing 'quit'.
    
    PRESS <ENTER> TO CONTINUE:
  5. OpenFrame ASMのライセンス同意画面が表示されます。

    ライセンスを確認した後、同意する場合は「Y」、同意しない場合は「N」を入力してからEnterキーを押します。ライセンスに同意しない場合、OpenFrame ASMのインストールは中止されます。

    ===============================================================================
    License Agreement
    -----------------
    
    Installation and Use of OpenFrame_ASM Requires Acceptance of the Following License
    Agreement:
    
    TmaxSoft Release
    TmaxSoft Co., Ltd. (hereafter, TmaxSoft) End-User License Agreement
    
    Product : OpenFrame_ASM 4.0
    
    This is a legal agreement between you (either an individual or an company) and
    TmaxSoft, Incorporated.  By opening the sealed software package and/or by using
    the software, you agree to be bound by the terms of this agreement.
    
    TmaxSoft License
    1.  Grant of License:  This TmaxSoft License Agreement ("License") permits you
    to use one copy of the TmaxSoft product Tmax, on any single computer, provided
    the software is in use on only one computer at any one time.  If this package
    is a license pack, you may make and use additional copies of the software up to
    the number of licensed copies authorized.  If you have multiple licenses for
    the software, then at any time you may have as many copies of the software in
    use as you have licenses.
      The software is "in use" on a computer when it is loaded into the temporary
    memory (i.e., RAM) or installed into the permanent memory (e.g., hard disk,
    CD-ROM, or other storage devices) of that computer, except that a copy
    installed on a network server for the sole purpose of distribution to other
    computers is not "in use".  If the anticipated number of users of the software
    will exceed the number of applicable licenses, then you must have a reasonable
    
    PRESS <ENTER> TO CONTINUE:
    
    mechanism or process in place to ensure that the number of persons using the
    software concurrently does not exceed the number of licenses.
    
    2.  Copyright:  The software (including any images, "applets," photographs,
    animations, video, audio, music and text incorporated into the software) is
    owned by TmaxSoft or its suppliers and international treaty provisions.
    Therefore, you must treat the software like any other copyrighted materials
    (e.g., a book or musical recording) except that you may either (a) make one
    copy of the software solely for backup or archival purposes, or (b) transfer
    the software to a single hard disk provided you keep the original solely for
    backup or archival purposes.  You may not copy the printed materials
    accompanying the software, nor print copies of any user documentation provided
    in "online" or electronic form.
    
    3.  Other restrictions: This license is your proof of license to exercise the
    rights granted herein and must be retained by you. You may not rent, lease, or
    transfer your rights under this license on a permanent basis provided you
    transfer this license, the software, and all accompanying printed materials,
    retain no copies, and the recipient agrees to the terms of this license. You
    may not reverse engine, decompile, or disassemble the software, except to the
    extent that the foregoing restriction is expressly prohibited by applicable
    law.
    
    PRESS <ENTER> TO CONTINUE:
    
    DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N):
  6. インストールするセットを選択します。デフォルト値はOpenFrame ASMであり、デバッグのためのOpenFrame ASM for Debugをインストールする場合は、「2」を選択してEnterキーを押します。

    ===============================================================================
    Choose Install Set
    ------------------
    
    Please choose the Install Set to be installed by this installer.
    
      ->1- OpenFrame ASM
        2- OpenFrame ASM for Debug
    
    ENTER THE NUMBER FOR THE INSTALL SET, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
       :
  7. インストール・ディレクトリのOFASM_HOMEを指定します。デフォルト値を使用する場合はEnterキーを押し、ディレクトリを変更する場合は、インストール・パスを入力します。(デフォルト値: $HOME/OFASM)

    ===============================================================================
    Choose Install Folder
    ---------------------
    
    Where would you like to install?
    
      Default Install Folder: /home/oframe/OFASM
    
    ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
          :

    入力したディレクトリがすでに存在する場合、そのディレクトリを上書きする場合は「1」、別のディレクトリを入力する場合は「2」、インストールを中止する場合は「3」を選択してEnterキーを押します。

    Directory Check
    
    User Specified Directory exists.
    To overwrite OpenFrame_ASM, click 'Overwrite'. To choose a Different directory,
    click 'Change'. To cancel the installation, click 'Cancel'.
    
      ->1- Overwrite
        2- Change...
        3- Cancel
    
    ENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS <ENTER> TO ACCEPT THE
    DEFAULT:
  8. インストール進行バーが表示され、インストールが実行されます。

    ===============================================================================
    Installing...
    -------------
     [==================|==================|==================|==================]
     [------------------|--
  9. インストールが完了したら、以下のようにインストール完了メッセージが出力されます。Enterキーを押してインストールを終了します。

    ===============================================================================
    Installation Complete
    ---------------------
    
    Congratulations. OpenFrame_ASM has been successfully installed
    
    PRESS <ENTER> TO EXIT THE INSTALLER:

2. インストールの確認

OpenFrame ASMのインストールが完了したら、以下の方法で製品が正常にインストールされていることを確認します。

  • ディレクトリ構造の確認

  • ログの確認

  • 環境設定の確認

2.1. ディレクトリ構造の確認

OpenFrame ASMのインストール後に生成されるディレクトリの構造は以下のとおりです。

$OFASM_HOME
+---- UninstallerData
+---- bin
+---- lib
+---- license
+---- config
+---- maclib
+---- sample
UninstallerData

システムにインストールされているOpenFrame ASMをアンインストールするためのファイルが存在します。

bin

OpenFrame ASMで使用する各種の実行ファイルが存在します。

lib

OpenFrame ASMで使用するライブラリ・ファイルが存在します。

license

ライセンス・ファイルが存在します。

config

環境設定ファイルが存在します。

maclib

マクロ・ライブラリ・ファイルが存在します。

sample

asmサンプル・ファイルが存在します。

2.2. ログの確認

次の場所にあるログ・ファイルをテキスト・エディターで直接開いてエラー・ログがないか確認します。

$OFASM_HOME/UninstallerData/log/OpenFrame_ASM_InstallLog.log

2.3. 環境設定の確認

.profile ファイルまたは .bash_profile ファイルを開いて、以下のように環境変数が設定されているかを確認します。

# New environment setting added by OpenFrame_ASM on Tue Feb 13 11:41:52 KST 2018 1.
# The unmodified version of this file is saved in /home/oframe/.bash_profile505067552.
# Do NOT modify these lines; they are used to uninstall.
OFASM_HOME=/home/oframe/OFASM
export OFASM_HOME
# End comments by InstallAnywhere on Tue Feb 13 11:41:52 KST 2018 1.

# New environment setting added by OpenFrame_ASM on Tue Feb 13 11:41:52 KST 2018 2.
# The unmodified version of this file is saved in /home/oframe/.bash_profile505067552.
# Do NOT modify these lines; they are used to uninstall.
PATH="${PATH}:$OFASM_HOME/bin:"
export PATH
# End comments by InstallAnywhere on Tue Feb 13 11:41:52 KST 2018 2.

# New environment setting added by OpenFrame_ASM on Tue Feb 13 11:41:52 KST 2018 3.
# The unmodified version of this file is saved in /home/oframe/.bash_profile505067552.
# Do NOT modify these lines; they are used to uninstall.
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$OFASM_HOME/lib"
export LD_LIBRARY_PATH
# End comments by InstallAnywhere on Tue Feb 13 11:41:52 KST 2018 3.

# New environment setting added by OpenFrame_ASM on Tue Feb 13 11:41:52 KST 2018 4.
# The unmodified version of this file is saved in /home/oframe/.bash_profile505067552.
# Do NOT modify these lines; they are used to uninstall.
OFASM_MACLIB=$OFASM_HOME/maclib/ofmac:$OFASM_HOME/maclib/
export OFASM_MACLIB
# End comments by InstallAnywhere on Tue Feb 13 11:41:52 KST 2018 4.

3. アンインストール

OpenFrame ASMをアンインストールするには、$OFASM_HOME/UninstallerDataディレクトリに存在するUninstall_OFASMを実行するか、インストール・フォルダー自体をコンソール・コマンドを使用して削除します。コンソール・コマンドを使用してインストール・フォルダーを削除した場合には、ユーザーの.profileファイルまたは.bash_profileファイルの設定をインストール前の状態に戻す必要があります。

以下は、Uninstallファイルを使用してOpenFrame ASMをアンインストールする手順です。

$./Uninstall_OFASM

Preparing CONSOLE Mode Installation...
===============================================================================
OpenFrame_ASM                     (created with InstallAnywhere by Macrovision)
-------------------------------------------------------------------------------
===============================================================================
Uninstall OpenFrame_ASM
---------------

About to uninstall...

OpenFrame_ASM

This will remove features installed by InstallAnywhere.  It will not remove
files and folders created after the installation.

PRESS <ENTER> TO CONTINUE:

===============================================================================
Uninstalling...
---------------

...*
*
*************************
*************************
*************************
************************
...*
*
*************************
*************************
*************************
*************************

===============================================================================
Uninstall Complete
------------------

All items were successfully uninstalled.

4. アンインストールの確認

以下の方法でOpenFrame ASMが正常にアンインストールされていることを確認します。

  1. ファイルおよびフォルダーの確認

    インストーラーで指定したインストール・ディレクトリが完全に削除されていることを確認します。インストール時に生成されるディレクトリ以外のディレクトリを作成した場合は、そのディレクトリが残っていることがあります。そのような場合は手動で削除してください。

    ディレクトリおよびファイルを削除する方法は以下のとおりです。

    $ rm -rf OFASM
  2. 環境設定ファイルの確認(.profileまたは.bash_profile)

    インストール時に追加されたOFASM_HOME、OFASM_MACLIB、PATH、LD_LIBRARY_PATH設定項目が削除されていることを確認します。