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 :)