[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-swt-dev] Eclipse doesn't "just go" on Linux
|
Hola.
Eclipse doesn't work out of the box on Linux.
Steps to success:
1. Unzip Eclipse
2. Type /path/to/eclipse to launch
3. Receive the error:
"./path/to/eclipse: error while loading shared libraries: libXm.so.2: cannot
open shared object file: No such file or directory"
The Eclipse launcher should append the Eclipse install directory to the
LD_LIBRARY_PATH. The only reason this isn't necessary on Windows is that
Windows happens to do this for you.
There are two obvious ways to achieve victory here. Either add the code to
programmatically append the install dir to LD_LIBRARY_PATH to the Eclipse
executable or we could rename the executable (to, say, "runEclipse") and
create an executable shell script which would basically read:
LD_LIBRARY_PATH=`dirname $0`:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
exec runEclipse
This last version is how the Sun and IBM VMs get around the LB_LIBRARY_PATH
issue. Take a look at the file named "java" in the JDK/bin directory on a
Linux box for an example.
- Jared