Hi
I have the nearly the same error but all previews are working except for the JPG
I have found an install document for centos 5.5 which was a great help for me to set me back on track (except JPG)
Code: Select allInstall OpenKM on centos 5
download the latest openkm from: http://sourceforge.net/projects/openkm/files/5.0/
unpack the content
install tesseract ocr:
sudo yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel gcc gcc-c++ make -y
wget http://www.leptonica.com/source/leptonlib-1.67.tar.gz
tar -zxvf leptonlib-1.67.tar.gz
./configure && make && sudo make install
wget http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gz
tar -zxvf tesseract-3.00.tar.gz
./configure && make && sudo make install
cd /usr/local/share/tessdata
sudo wget http://tesseract-ocr.googlecode.com/files/eng.traineddata.gz
sudo gunzip eng.traineddata.gz
cd -
install openoffice.org:
yum install openoffice.org2-l10n-es openoffice.org-java openoffice.org-java-common openoffice.org
install swftools
wget http://www.swftools.org/swftools-0.9.1.tar.gz
tar -zxvf swftools-0.9.1.tar.gz
sudo yum install gcc* automake zlib-devel libjpeg-devel giflib-devel freetype-devel -y
cd swftools-0.9.1
./configure && make && sudo make install
cd ..
<pre>
install ImageMagick
sudo yum install ImageMagick
which convert #will tell you where it is.
Or install and control the process by yourselve:
yum remove ImageMagick
yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel
wget url to ImageMagick download
tar -zxvf ImageMagick-6.4.8-3.tar.gz
./configure --prefix=/usr/local --with-bzlib=yes --with-fontconfig=yes -- with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes -- with-jp2=yes --with-png=yes --with-tiff=yes
make clean
make
make install
install ClamAV
sudo yum install amavisd-new spamassassin clamav clamd unzip bzip2 unrar perl-DBD-mysql
sudo sa-update
sudo chkconfig --levels 235 amavisd on
sudo chkconfig --levels 235 clamd on
sudo /usr/bin/freshclam
sudo /etc/init.d/amavisd start
sudo /etc/init.d/clamd start
sudo mkdir /var/run/amavisd /var/spool/amavisd /var/spool/amavisd/tmp /var/spool/amavisd/db
sudo chown amavis /var/run/amavisd /var/spool/amavisd /var/spool/amavisd/tmp /var/spool/amavisd/db
sudo ln -s /var/run/clamav/clamd.sock /var/spool/amavisd/clamd.sock
the OpenKM.cfg should look like this now:
system.ocr=/usr/local/bin/tesseract
system.openoffice.path=/usr/lib/openoffice
system.img2pdf=/usr/bin/convert
system.pdf2swf=/usr/local/bin/pdf2swf
#since openkm 5.1 we use :
System.imagemagick.convert=/usr/bin/convert
System.swftools.pdf2swf=/usr/local/bin/pdf2swf
system.antivir=/usr/bin/clamscan
hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.hbm2ddl=create
application.url=http://host:8080/OpenKM/com.openkm.frontend.Main/index.jsp
be sure to change the hibernate.hbm2ddl value to “none” without quotes later
run OpenKM
bin/run -b 0.0.0.0 &
________________________________________
references
http://paramountideas.com/tesseract-ocr-30-and-leptonica-installation-centos-55-and-opensuse-113
http://www.betaquest.com/2010/08/how-to-install-swftools-0-9-1-on-centos-5-5/
http://wiki.openkm.com/index.php/WebDAV_accesshttp://www.howtoforge.com/perfect-server-centos-5.5-x86_64-ispconfig-3-p6http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
http://blog.srvme.de/2011/04/16/install-openkm-on-centos-5/
I have made some addings to be in line with OpenKM 5.1
Maybe it helps for you, it surely did for me
If there are any mistakes in above mentioned instruction list, please let me know so i can change it
At the end this doesn't solve your problem completely but i hope we are getting closer to the solution