Questioning Everything Propaganda

Home Tags
Login RSS
Install ImageMagick ArcaOS

Installing ImageMagick on ArcaOS

ArcaOS, being based on OS/2 with RPM package support via the Unix Compatibility Subsystem (kLIBC), uses the Arca Noae Package Manager (ANPM) for installing software. ANPM is a graphical tool that interfaces with YUM and RPM repositories tailored for OS/2 ecosystems (e.g., Netlabs). However, ImageMagick—a suite for image processing and conversion—is not available in the standard ArcaOS or Netlabs repositories.

Since no pre-built RPM for OS/2/ArcaOS was found, the recommended approach is to compile ImageMagick from source using the available development tools in the OS/2 ecosystem. This requires the GNU toolchain (GCC, make, etc.), which can be installed via ANPM. Below are step-by-step instructions.

Prerequisites

  1. Install ANPM if not already present:

    • Download ANPM from the Arca Noae website.
    • Run the installer (it's a WarpIN package). It supports ArcaOS 5.x out of the box.
    • Launch ANPM from the System Setup folder.
  2. Install development tools via ANPM:

    • Open ANPM.
    • Go to Repository > Refresh to update package lists.
    • Search for and install:
      • gcc (GNU Compiler Collection).
      • make (GNU Make).
      • libstdc++ (C++ standard library).
      • pkgconfig (pkg-config for dependency detection).
    • These are available in the Netlabs repository (enabled by default in ANPM on ArcaOS).
  3. Verify Unix Subsystem:

    • Ensure your CONFIG.SYS has SET LIBPATHSTRICT=T and proper kLIBC paths (ANPM handles this during installs).
    • Test by opening a command prompt and running gcc --version and make --version. If they work, proceed.

Compiling and Installing ImageMagick from Source

  1. Download the Source:

    • Open an OS/2 command prompt (e.g., from the System folder).
    • Use wget (install via ANPM if needed: search for wget) to download the latest stable source tarball from the official site:
      wget https://imagemagick.org/archive/releases/ImageMagick-7.1.1-32.tar.xz
    • Extract it (install tar and xz via ANPM if not present):
      tar -xJf ImageMagick-7.1.1-32.tar.xz
      cd ImageMagick-7.1.1-32
  2. Configure the Build:

    • Run the configure script with options suitable for OS/2 (disable X11 for CLI-only use, as OS/2's XFree86 is optional and may require extra setup):
      ./configure --without-x --without-perl --prefix=/usr/local
      • --without-x: Builds CLI tools only (e.g., convert, identify), no GUI.
      • --without-perl: Skips Perl bindings if not needed.
      • --prefix=/usr/local: Installs to a standard Unix-like path under your UNIXROOT (default: C:\UNIX\ or similar; ANPM sets this).
      • If you need dependencies like JPEG/PNG support, install them first via ANPM (e.g., libjpeg, libpng) and the configure script will detect them via pkg-config.
      • Note: Compilation may take time on older hardware; monitor for errors (common issues: missing delegates—install via ANPM).
  3. Build and Install:

    • Compile:
      make
    • Install (requires admin privileges; run as Administrator):
      make install
    • If make fails, try gmake (GNU Make alias).
  4. Verify Installation:

    • Add /usr/local/bin to your PATH if needed (edit CONFIG.SYS or use ANPM's path tools).
    • Test:
      convert --version
    • It should display the ImageMagick version and features.

Potential Issues and Tips

  • Dependencies: ImageMagick supports 200+ formats but needs delegates (e.g., libtiff for TIFF). Search ANPM for "lib" packages and install as needed before ./configure.
  • X11 Support: If you want GUI tools like display, install XFree86 via ANPM (xfree86) and remove --without-x.
  • Errors During Configure/Build:
    • Missing compiler: Reinstall gcc via ANPM.
    • Path issues: Ensure UNIXROOT is set correctly (check ANPM settings).
    • For advanced tweaks, see ImageMagick's Unix install guide.
  • Alternative: Ported Binaries: Check Hobbes OS/2 Archive (hobbes.nmsu.edu) periodically for user-ported ImageMagick ZIP/WPI files under /pub/os2/apps/graphics. Search for "imagemagick" there, but expect older versions.
  • Uninstall: Delete /usr/local files manually or use make uninstall from the source dir.

If you encounter errors (e.g., during configure), provide the output for further troubleshooting. This process leverages ArcaOS's strong Unix compatibility for a native build.


Original Author: admin

Views: 17 (Unique: 16)

Page ID ( Copy Link): page_691c153e645fb2.70235964-f91c3f04cc22506a

Page History (1 revisions):

  • 2025-11-18 06:42:06 (Viewing)