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
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: PATH=/usr/ local/lib
export LD_LIBRARY_
... or you could create a script that calls the real 'cuneiform' e.g. like this: PATH=/usr/ local/lib /usr/local/ bin/cuneiform "$@"
LD_LIBRARY_
Here's a sample script that I use for a specific job that converts PNM-files:
#!/bin/sh PATH=/usr/ local/lib cuneiform -l eng -f smarttext -o ${pnm%%.pnm}.eng ${pnm%%.pnm}.bmp
for pnm in *.pnm
do
[ -f "$pnm" ] || break
printf "Processing %s ...\n" "$pnm"
ppmtobmp "$pnm" > "${pnm%%.pnm}.bmp"
LD_LIBRARY_
done