library problem for xdotool

1,064 views
Skip to first unread message

jescu tudor

unread,
Jan 7, 2010, 11:02:10 AM1/7/10
to xdotoo...@googlegroups.com
Hi guys,
 
  I download your script from http://www.semicomplete.com/projects/xdotool/
 I untar the archive, I run the command "make xdotool" , but when I try to run any command, like "./xdotool mousemove 500 1000"  I have an error:
 
./xdotool: error while loading shared libraries: libxdo.so.0: cannot open shared object file: No such file or directory
 
 The error is because this library should be in a special directory ?  I want to tell you, that after compiling the C code with "make xdotool" I have no such library libxdo.so.0, only a library named libxdo.so. I rename this library, but the result was the same.
 
   Can you please tell me, what I can do, because I wrealy need the script....
 
 Thank you very much,
 
      Tudor.

Jordan Sissel

unread,
Jan 10, 2010, 9:25:17 PM1/10/10
to xdotoo...@googlegroups.com
On Thu, Jan 7, 2010 at 8:02 AM, jescu tudor <songo...@yahoo.com> wrote:
Hi guys,
 
  I download your script from http://www.semicomplete.com/projects/xdotool/
 I untar the archive, I run the command "make xdotool" , but when I try to run any command, like "./xdotool mousemove 500 1000"  I have an error:

Some changes were made recently that make xdotool depend on libxdo, rather than building statically. 

The latest version needs to be built this way:
make all install

If you want to install somewhere other than /usr/local, use:
make all install PREFIX=/new/path/to/install

The lib directory $(PREFIX)/lib needs to be known through ldconfig (or crle on Solaris).

If you just want to run from the build directory, without installing, you'll need to do:
% make xdotool libxdo.so
% ln -s libxdo.so  libxdo.so.0 
% LD_LIBRARY_PATH=. ./xdotool <command .... >

Hope this helps. 

-Jordan

 
 
./xdotool: error while loading shared libraries: libxdo.so.0: cannot open shared object file: No such file or directory
 
 The error is because this library should be in a special directory ?  I want to tell you, that after compiling the C code with "make xdotool" I have no such library libxdo.so.0, only a library named libxdo.so. I rename this library, but the result was the same.
 
   Can you please tell me, what I can do, because I wrealy need the script....
 
 Thank you very much,
 
      Tudor.


--
You received this message because you are subscribed to the Google Groups "xdotool-users" group.
To post to this group, send email to xdotoo...@googlegroups.com.
To unsubscribe from this group, send email to xdotool-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xdotool-users?hl=en.


erm...@gmail.com

unread,
May 18, 2015, 11:12:12 AM5/18/15
to xdotoo...@googlegroups.com, songo...@yahoo.com
I have the same problem described here.

On ZorinOS (Ubuntu) the install was so easy and worked. xdotool is just MEGA EASY.
On the centos, i download, make all install and i got that:
xdotool error while loading shared libraries: libxdo.so.2: cannot open shared object file: No such file or directory

I've created a basic bash wrapper to add the LD_LIBRARY_PATH=/usr/lib but didn't work.

What i did:
#!/bin/bash
# Simple wrapper to add a variable to the xdotool binary
# Original file is renamed to xdotool.orig
 
LD_LIBRARY_PATH=/usr/lib

xdotool.orig $@

I test this same script on the working and was OK.

I don't know what to do now.

Anthony Thyssen

unread,
May 18, 2015, 7:09:37 PM5/18/15
to xdotoo...@googlegroups.com, ErM...@gmail.com
On Mon, 18 May 2015 06:45:53 -0700 (PDT)
erm...@gmail.com wrote:
| I have the same problem described here.
|
| On ZorinOS (Ubuntu) the install was so easy and worked. xdotool is just
| MEGA EASY.
| On the centos, i download, make all install and i got that:
|
| > xdotool error while loading shared libraries: libxdo.so.2: cannot open
| > shared object file: No such file or directory
| >
|
| I've created a basic bash wrapper to add the LD_LIBRARY_PATH=/usr/lib but
| didn't work.
|
| What i did:
|
| > #!/bin/bash
| > # Simple wrapper to add a variable to the xdotool binary
| > # Original file is renamed to xdotool.orig
| >
|
|
| > LD_LIBRARY_PATH=/usr/lib
| >
| > xdotool.orig $@
| >
|
| I test this same script on the working and was OK.
|
| I don't know what to do now.
|
|
You should 'export' the variable too. Many variables like this
are already exported, but if it isn't then xdotool (and the dynanic
linker) will not see it.

=======8<--------
#!/bin/bash
# Simple wrapper to add a variable to the xdotool binary
# Original file is renamed to xdotool.orig

export LD_LIBRARY_PATH=/usr/lib

xdotool.orig $@

=======8<--------



In such scripts it is also a good idea to use a full path to the
"xdotool.orig" program, as a future security measure.



Anthony Thyssen ( System Programmer ) <A.Th...@griffith.edu.au>
--------------------------------------------------------------------------
"There are no Accidents" -- Master Oogway, "Kung Fu Panda"
--------------------------------------------------------------------------
Anthony's Castle http://www.ict.griffith.edu.au/anthony/
Reply all
Reply to author
Forward
0 new messages