Platform Notes (OS/2)

From FreeM Wiki
Revision as of 08:41, 24 March 2025 by Smw (talk | contribs)
Jump to navigation Jump to search
This article documents one or more features currently implemented only in cvs-current, and as such, may not apply to any current, official release.

Port Status

OS/2 is a Tier 2 Port

Verified Releases

  • FreeM cvs-current (23 Mar 2025)

Testing Details

We build and test the OS/2 port on an ArcaOS 5.1 VM running in VirtualBox.

Building and Installing

Currently, the OS/2 port is only tested on ArcaOS, and you will need to install several things in order to build and run:

  • autoconf
  • automake
  • gcc
  • readline-devel
  • bash
  • binutils-devel
  • coreutils
  • emxrt
  • gawk
  • gcc-wlink
  • gcc-wrt
  • grep
  • info
  • libc-devel
  • libtool
  • kbuild-make
  • sed
  • tar
  • gzip

All of these can be installed with yum install or the Arca Noae Package Manager (ANPM).

Once the dependencies are met, simply download and extract the FreeM source code, and follow these steps:

  • Open an OS/2 Window (in the Command Prompts folder in OS/2 System or Computer on the desktop)
  • Run the following commands:
[C:\] bash
$ autoreconf --install  # only needed if installing from the CVS repo
$ ./configure CC=gcc GREP=grep
$ make
$ make install

Once this is done, proceed to the next section.

Workarounds

Under OS/2 and ArcaOS, FreeM binaries are installed under C:\USR\LOCAL\BIN, but the FreeM daemon and the FreeM interpreter cannot be launched from the same executable (the daemon will start, but interpreters will give an error resembling Resource busy).

  • Copy C:\USR\LOCAL\BIN\freem.exe to C:\USR\LOCAL\BIN\freemd.exe

Running

  1. Open an OS/2 Window command prompt
  2. Run bash
  3. Run /usr/local/bin/freemd -dk to start the FreeM daemon
  4. Minimize the FreeM daemon process
  5. Open a second OS/2 Window command prompt
  6. Run the following commands:
[C:\] CD \USR\LOCAL\BIN
[C:\USR\LOCAL\BIN] FREEM

Platform Limitations

Required Kernel Tuning

Coming soon.