title: Deploying tessract ocr on AIX6
body: <p>How to deploy Tessaract OCR on AIX6 with GCC version 4.0.0.</p>
  
  <p>We got following errors while deploying :</p>
  
  <p>libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT jpegio.lo -MD -MP -MF .deps/jpegio.Tpo -c jpegio.c  -DPIC -o .libs/jpegio.o</p>
  
  <p>jpegio.c:112:21: error: jpeglib.h: No such file or directory</p>
  
  <p>jpegio.c:114: error: expected ')' before 'cinfo'</p>
  
  <p>jpegio.c:115: error: expected ')' before 'cinfo'</p>
  
  <p>jpegio.c:122: error: expected '=', ',', ';', 'asm' or '<strong>attribute</strong>' before 'jpeg_comment_callback'</p>
  
  <p>jpegio.c: In function 'pixReadStreamJpeg':</p>
  
  <p>jpegio.c:228: error: 'JSAMPROW' undeclared (first use in this function)</p>
  
  <p>jpegio.c:228: error: (Each undeclared identifier is reported only once</p>
  
  <p>jpegio.c:228: error: for each function it appears in.)</p>
  
  <p>jpegio.c:228: error: expected ';' before 'rowbuffer'</p>
  
  <p>jpegio.c:231: error: storage size of 'cinfo' isn't known</p>
  
  <p>jpegio.c:232: error: storage size of 'jerr' isn't known</p>
  
  <p>jpegio.c:246: error: 'BITS_IN_JSAMPLE' undeclared (first use in this function)</p>
  
  <p>jpegio.c:254: error: 'rowbuffer' undeclared (first use in this function)</p>
  
  <p>jpegio.c:260: error: 'jpeg_error_do_not_exit' undeclared (first use in this function)</p>
  
  <p>jpegio.c:265: error: 'JPEG_COM' undeclared (first use in this function)</p>
  
  <p>jpegio.c:265: error: 'jpeg_comment_callback' undeclared (first use in this function)</p>
  
  <p>jpegio.c:271: error: 'JCS_GRAYSCALE' undeclared (first use in this function)</p>
  
  <p>jpegio.c:278: error: 'JCS_YCCK' undeclared (first use in this function)</p>
  
  <p>jpegio.c:279: error: 'JCS_CMYK' undeclared (first use in this function)</p>
  
  <p>jpegio.c:286: error: expected ';' before 'calloc'</p>
  
  <p>jpegio.c:290: error: expected ';' before 'calloc'</p>
  
  <p>jpegio.c:336: error: 'JDIMENSION' undeclared (first use in this function)</p>
  
  <p>jpegio.c:336: error: expected ')' before numeric constant</p>
  
  <p>jpegio.c:374: error: expected ')' before numeric constant</p>
  
  <p>jpegio.c: In function 'freadHeaderJpeg':</p>
  
  <p>jpegio.c:472: error: storage size of 'cinfo' isn't known</p>
  
  <p>jpegio.c:473: error: storage size of 'jerr' isn't known</p>
  
  <p>jpegio.c:492: error: 'jpeg_error_do_not_exit' undeclared (first use in this function)</p>
  
  <p>jpegio.c:503: error: 'JCS_YCCK' undeclared (first use in this function)</p>
  
  <p>jpegio.c:505: error: 'JCS_CMYK' undeclared (first use in this function)</p>
  
  <p>jpegio.c: In function 'fgetJpegResolution':</p>
  
  <p>jpegio.c:530: error: storage size of 'cinfo' isn't known</p>
  
  <p>jpegio.c:531: error: storage size of 'jerr' isn't known</p>
  
  <p>jpegio.c:546: error: 'jpeg_error_do_not_exit' undeclared (first use in this function)</p>
  
  <p>jpegio.c: In function 'pixWriteStreamJpeg':</p>
  
  <p>jpegio.c:655: error: 'JSAMPROW' undeclared (first use in this function)</p>
  
  <p>jpegio.c:655: error: expected ';' before 'rowbuffer'</p>
  
  <p>jpegio.c:657: error: storage size of 'cinfo' isn't known</p>
  
  <p>jpegio.c:658: error: storage size of 'jerr' isn't known</p>
  
  <p>jpegio.c:670: error: 'rowbuffer' undeclared (first use in this function)</p>
  
  <p>jpegio.c:700: error: 'jpeg_error_do_not_exit' undeclared (first use in this function)</p>
  
  <p>jpegio.c:710: error: 'JCS_GRAYSCALE' undeclared (first use in this function)</p>
  
  <p>jpegio.c:714: error: 'JCS_RGB' undeclared (first use in this function)</p>
  
  <p>jpegio.c:757: error: 'JPEG_COM' undeclared (first use in this function)</p>
  
  <p>jpegio.c:757: error: expected ')' before 'JOCTET'</p>
  
  <p>jpegio.c:763: error: expected ')' before 'calloc'</p>
  
  <p>jpegio.c:784: error: expected expression before ')' token</p>
  
  <p>jpegio.c: At top level:</p>
  
  <p>jpegio.c:1115: error: expected ')' before 'cinfo'</p>
  
  <p>jpegio.c:1125: error: expected ')' before 'cinfo'</p>
  
  <p>jpegio.c:1144: error: expected '=', ',', ';', 'asm' or '<strong>attribute</strong>' before 'jpeg_comment_callback'</p>
  
  <p>make: 1254-004 The error code from the last command is 1.</p>
  
  <p>Stop.</p>
  
  <p>make: 1254-004 The error code from the last command is 1.</p>
  
  <p>Stop.</p>
  
  <p>make: 1254-004 The error code from the last command is 2.</p>