Comment 13 for bug 345033

Revision history for this message
adriverhoef (a3) wrote :

If you run into this error and don't like editing your system files, you could try adding the environment variable "LD_LIBRARY_PATH" to your shell before calling 'cuneiform' e.g. by adding the following line to your .bash_profile:
export LD_LIBRARY_PATH=/usr/local/lib

... or you could create a script that calls the real 'cuneiform' e.g. like this:
   LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/cuneiform "$@"

Here's a sample script that I use for a specific job that converts PNM-files:

#!/bin/sh
for pnm in *.pnm
do
 [ -f "$pnm" ] || break
 printf "Processing %s ...\n" "$pnm"
 ppmtobmp "$pnm" > "${pnm%%.pnm}.bmp"
 LD_LIBRARY_PATH=/usr/local/lib cuneiform -l eng -f smarttext -o ${pnm%%.pnm}.eng ${pnm%%.pnm}.bmp
done