DartEditor: Cannot Open Shared Object – libudev.so.0
by kiawin
Library dependencies can be daunting at times, especially when you’re into something.
DartEditor is the official editor for Dart Language, a Google developed web programming language. The accompanied tutorials provide a convenient peek at how Dart works.
However, I have problem running sunflower.dart due to an awkward error:
‘Launching Dartium launch’ has encountered a problem.
Could not launch browser – process terminated on startup:
Dartium stdout: /usr/bin/dart/chromium/chrome: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory
For information on how to setup your machine to run Dartium visit http://code.google.com/p/dart/wiki/PreparingYourMachine#Linux
The wiki link provided did not ring any bell as it did not resolve the issue. A google search on ‘libudev.so archlinux’ gave an interesting insight on this matter.
The issue caused by a missing libudev.so.0 as Arch Linux somehow only keeps libudev.so, libudev.so.1 and libudev.so.1.1.6 (or any latest version of libudev).
As there is no other proper solution to this peculiar omission of libudev.so.0, the most feasible way for now it to have a symbolic link from libudev.so to libudev.so.0 by the following command in terminal:
# sudo ln -s /usr/lib/libudev.so /usr/lib/libudev.so.0
Enjoy :)
Comments
Thank you, this method worked, although I had to install libudev-dev package first and the path for me was /usr/lib/x86_64-linux-gnu/libudev.so
Hi, thanks for the feedback :)
I know that this is an older post. But I thought that since I am trying this out on Korora 20 (Fedora 20 based distro) that I would post my solution here as well.
Please keep in mind that I have Google Chrome installed in the /opt/google/chrome directory
The following symlink worked for me with Chome installed as mentioned above.
ln -s /opt/google/chrome/libudev.so.0 /usr/lib64/libudev.so.0
I hope this helps someone else down the road.
Cheers!
Hi John,
Thanks for contributing your solution :)