Red Hat Linux: problems: g++ library version: libJXGrabkey and libstdc++

Asked by Jonathan Antognini

i got problem with version of g++ library

g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)

exist some solution for run sikuli into this library? export?
because i got a lot problem to change this version of library.

Thanks.

Question information

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

what are the problems specific for Sikuli?

Your System environment?

Steps to reproduce the problems?

Revision history for this message
Jonathan Antognini (jantogni) said :
#2

i can't run sikuli.
I am using red hat 5.5 with genome 2.16.1

i only runs sikuli-ide.sh but not works, launch errors about version of glibc.

regards

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

Post a bug with specific description of your environment together with the error messages you get (paste them into the post or attach a text file)

set this question to solved.

Revision history for this message
Jonathan Antognini (jantogni) said :
#4

[info] locale: en_US
Exception in thread "main" java.lang.UnsatisfiedLinkError: ~/framework/Sikuli-X-1.0rc1-linux/Sikuli-IDE/libs/libJXGrabKey.so: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ~/framework/Sikuli-X-1.0rc1-linux/Sikuli-IDE/libs/libJXGrabKey.so)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
        at java.lang.Runtime.load0(Runtime.java:770)
        at java.lang.System.load(System.java:1003)
        at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
        at org.sikuli.ide.NativeLayerForLinux.initIDE(NativeLayerForLinux.java:24)
        at org.sikuli.ide.SikuliIDE.<init>(SikuliIDE.java:499)
        at org.sikuli.ide.SikuliIDE.getInstance(SikuliIDE.java:105)
        at org.sikuli.ide.SikuliIDE.main(SikuliIDE.java:752)

That is the bug description. Thanks for your help ^^

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

the
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' is needed,

but your /usr/lib/libstdc++.so.6 does not contain a variant for this.

So you should try to research the options for libstdc to get it in the needed version.

Another option might be to look at the libJXGrabKey.so that comes with the Sikuli distribution. You might try to replace it by a version, that runs on your system and is accepted by Sikuli's native loader logic.

Revision history for this message
Jonathan Antognini (jantogni) said :
#6

but, how i can use local library?, i.e use library into local folder and not use library of operative system using.

Regards =)

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

Uuuuups, this library stuff seems not to be very familiar to you ;-)

Since I only can guess (no linux available), I have to leave you alone with this problem hoping that some Linux experts have an idea. (so I changed the headline to be more specific).

You might look around in Linux/RedHat forums on the topic JXGrabKey

In general my understanding is, that things that are not found in same directory are searched in standard places and along some path specs. So you might replace library stuff in the Sikuli folders or delete them if they could be found in other places.

Revision history for this message
Jonathan Antognini (jantogni) said :
#8

if i can solve, i will post the solution.

Thanks RaiMan (Y)

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

solution available?

Revision history for this message
Antognini (chanfle-182) said :
#10

no, still not have a solution.

My final solution was execute remotely my scripts, in the remote machine was installed Sikuli and respective basic requirement.

Regards RaiMan =)

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

by user