Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-update-dev] Eclipse doesn't "just go" on Linux

>>>>> "Jared" == Jared Burns <jared-eclipse@xxxxxxxxx> writes:

Jared> The following is from a discussion on the SWT mailing
Jared> list. Please comment.

Jared> There are two obvious ways to achieve victory here. Either add
Jared> the code to programmatically append the install dir to
Jared> LD_LIBRARY_PATH to the Eclipse executable or we could rename
Jared> the executable (to, say, "runEclipse") and create an executable
Jared> shell script which would basically read:
Jared> LD_LIBRARY_PATH=`dirname $0`:$LD_LIBRARY_PATH export
Jared> LD_LIBRARY_PATH exec runEclipse

I think there are a couple more plausible fixes.

One temporary one is to use ldconfig to tell the system where your
libXm happens to lie.

Longer term, Eclipse on Linux will use Gtk, which ldconfig knows about
by default.  So you won't need to do anything.

Another idea would be to rebuild the `eclipse' launcher program and
link it with `-Wl,-rpath,/path/to/libXm/directory/'.  This would have
to be done on your system.  A related idea would be to build an RPM
and then do this in the spec file; that would work because the RPM
would fix the install directories.

Tom


Back to the top