AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

Install Ghostscript

  • 1.  Install Ghostscript

    Posted Mon April 08, 2019 05:08 PM

    Originally posted by: giocot


    Hi all

    i'm new in this forum, i work on Ibm i (As400), and i hope that some some can help me.

    This is my problme : as i would need to use ImageMagick to convert PDF to JPG, i installed ImageMagick from Scott Klement Link http://www.scottklement.com/imagemagick/ ;

    the imagemagik's convert command, needs also Ghostscript. Now i have problem on installing Ghostscript as:

    when i try to run GMAKE (downlaoded froom https://www.ghostscript.com/download/gsdnld.html and after ./configure), i receive this error :

    "/usr/include/unistd.h:198:16: error: conflicting types for 'lseek64'

    extern off64_t lseek64(int, off64_t, int);

    /usr/include/unistd.h:196:14: note: previous declaration of 'lseek64' was here extern off_t lseek(int, off_t, int);.."

    i also tried to download it from http://yips.idevcloud.com/wiki/index.php/Pase/Pdf2PsOutq , but when i try to run
    " convert mydoc.pdf mydoc.jpg" to convert from PDF to JPG i reveice this
    errors :
    exec():0509-036The gs program could not be loaded due to the following
    mistakes:
    0509-150 The dependent module libpng.a (libpng.so.2) was not loaded.
    0509-022 Unable to load the libpng.a module (libpng.so.2).
    0509-026System error: A file or directory in the path name does not exist.
    convert: Postscript delegate failed mydoc.pdf

    Can some help me to install Ghostscript on my IBM i (As400) V7.2 ?

    Thanks in advance

    P.S. i have senn a task about Ghostscript and i see that poit to this link ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/ghostscript/ ; question: how should be (if possible) install this package on Ibm i (As400) Pase environment ?



  • 2.  Re: Install Ghostscript

    Posted Tue April 09, 2019 07:32 AM

    Originally posted by: AyappanP


    Explore this link --> https://bitbucket.org/ibmi/opensource/overview