[HowTo] Ubuntu 16.04: SikuliX setup

Asked by Jeff_Vallis

Just installed Ubuntu 16.04LTS on an old laptop
Now trying to install SIKULIX - so instead of just diving in i have read the instructions first and not even downloaded Sikuli

Found this and Following the instructions on
http://sikulix.com/specials/files/linux-setup-prerequisites.html

sudo apt install libopencv-dev
sudo apt install tesseract-ocr

Above both worked ok

so doing the next bit

jeff@jeff-Satellite-L650:~$ ldconfig -p libopencv_core.so.2.4
/sbin/ldconfig.real: relative path `libopencv_core.so.2.4' used to build cache
jeff@jeff-Satellite-L650:~$ ldconfig -p libopencv_imgproc.so.2.4
/sbin/ldconfig.real: relative path `libopencv_imgproc.so.2.4' used to build cache
jeff@jeff-Satellite-L650:~$ ldconfig -p libopencv_highgui.so.2.4
/sbin/ldconfig.real: relative path `libopencv_highgui.so.2.4' used to build cache
jeff@jeff-Satellite-L650:~$ ldconfig -p libtesseract.so.3
/sbin/ldconfig.real: relative path `libtesseract.so.3' used to build cache

then
jeff@jeff-Satellite-L650:~$ ldd -r libopencv_core.so.2.4
ldd: ./libopencv_core.so.2.4: No such file or directory

so have stopped here

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Jeff_Vallis
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

I am not a Linux expert, but it might be, that the ldd command needs a valid path to the file.
Should be /usr/local/bin normally.

Revision history for this message
Mike Bedwell (bedwell2012) said :
#2

ldd requires the full path to the library you want to check. Most linux distros would store it in /usr/lib
change your command to 'ldd -r /usr/lib/libopencv_core.so.2.4' (sans quotes of course) and you may get better results. Failing that, you can usually use the 'whereis' utility to see where the file was stored. 'whereis libopencv_core.so.2.4'.

Revision history for this message
Jeff_Vallis (vallis-pj) said :
#3

used locate to find path
ldd -r /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4
ldd -r /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.2.4
ldd -r /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4
ldd -r /usr/lib/libtesseract.so.3

Revision history for this message
RaiMan (raimund-hocke) said :
#4

thanks for eval and feedback :-)