Installing Image Magic on the IBMi AS400

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
edshaw42
Posts: 2
Joined: 2018-08-10T06:27:46-07:00
Authentication code: 1152

Installing Image Magic on the IBMi AS400

Post by edshaw42 » 2018-08-10T06:31:33-07:00

Hello,

I am trying to use ImageMagick to convert a .tif image to pdf or something more readable on our 400. We need to accomplish this in order to use the image through browser. Scott Klement has some intructions out there on his website, but they are outdated and do not give you the tifflib that you need to convert. I have tried a few ways and nothing seems to work. Does anyone have instructions they could share?

User avatar
magick
Site Admin
Posts: 10994
Joined: 2003-05-31T11:32:55-07:00

Re: Installing Image Magic on the IBMi AS400

Post by magick » 2018-08-10T07:13:37-07:00

Let's see if ImageMagick builds out-of-the-box. Try these commands:

Code: Select all

curl -O https://www.imagemagick.org/download/ImageMagick.tar.gz
tar xvf ImageMagick.tar.gz
cd ImageMagick-7.0.8-9
./configure
make
sudo make install
/usr/local/bin/magick --version
/usr/local/bin/magick logo: logo.gif

edshaw42
Posts: 2
Joined: 2018-08-10T06:27:46-07:00
Authentication code: 1152

Re: Installing Image Magic on the IBMi AS400

Post by edshaw42 » 2018-08-10T10:25:46-07:00

That did not seem to work.

User avatar
magick
Site Admin
Posts: 10994
Joined: 2003-05-31T11:32:55-07:00

Re: Installing Image Magic on the IBMi AS400

Post by magick » 2018-08-11T08:17:36-07:00

We can't help without knowing how the build failed.

crxo1
Posts: 1
Joined: 2018-09-07T13:10:56-07:00
Authentication code: 1152

Re: Installing Image Magic on the IBMi AS400

Post by crxo1 » 2018-09-07T13:13:46-07:00

Hi,

i'm trying the same, but the installation fails with the configure script. Here's a log:

Code: Select all

bash-4.4# ./configure
checking build system type... powerpc-ibm-os400
checking host system type... powerpc-ibm-os400
checking target system type... powerpc-ibm-os400
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
configuring ImageMagick 7.0.8-11
checking whether build environment is sane... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /QOpenSys/usr/bin/grep
checking for egrep... /QOpenSys/usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ar... ar
checking the archiver (ar) interface... unknown
configure: error: could not determine ar interface

tout
Posts: 1
Joined: 2019-06-12T07:51:20-07:00
Authentication code: 1152

Re: Installing Image Magic on the IBMi AS400

Post by tout » 2019-06-12T07:56:56-07:00

I am also seeing the same error as crxo1. Did anyone find a resolution to this? I posted my ./configure output below.

Code: Select all

./configure --enable-legacy-support                                   
checking build system type... powerpc-ibm-os400                       
checking host system type... powerpc-ibm-os400                        
checking target system type... powerpc-ibm-os400                      
checking for a BSD-compatible install... /QOpenSys/pkgs/bin/install -c
checking whether build environment is sane... yes                     
checking for a thread-safe mkdir -p... /QOpenSys/pkgs/bin/mkdir -p    
checking for gawk... gawk                                             
checking whether make sets $(MAKE)... yes                             
checking whether make supports nested variables... yes                
checking whether UID '1114' is supported by ustar format... yes       
checking whether GID '101' is supported by ustar format... yes        
checking how to create a ustar tar archive... plaintar                
checking whether make supports nested variables... (cached) yes       
configuring ImageMagick 7.0.8-49   
checking whether build environment is sane... yes                          
checking whether make supports the include directive... yes (GNU style)    
checking for gcc... gcc                                                    
checking whether the C compiler works... yes                               
checking for C compiler default output file name... a.out                  
checking for suffix of executables...                                      
checking whether we are cross compiling... no                              
checking for suffix of object files... o                                   
checking whether we are using the GNU C compiler... yes                    
checking whether gcc accepts -g... yes                                     
checking for gcc option to accept ISO C89... none needed                   
checking whether gcc understands -c and -o together... yes                 
checking dependency style of gcc... gcc3                                   
checking how to run the C preprocessor... gcc -E                           
checking for grep that handles long lines and -e... /QOpenSys/usr/bin/grep 
checking for egrep... /QOpenSys/usr/bin/grep -E                            
checking for ANSI C header files... yes      
checking for sys/types.h... yes                               
checking for sys/stat.h... yes                                
checking for stdlib.h... yes                                  
checking for string.h... yes                                  
checking for memory.h... yes                                  
checking for strings.h... yes                                 
checking for inttypes.h... yes                                
checking for stdint.h... yes                                  
checking for unistd.h... yes                                  
checking minix/config.h usability... no                       
checking minix/config.h presence... no                        
checking for minix/config.h... no                             
checking whether it is safe to define __EXTENSIONS__... yes   
checking for ar... ar                                         
checking the archiver (ar) interface... unknown               
configure: error: could not determine ar interface

Post Reply