Re: Getting into Xwindows programming???

Anton Blanchard (anton@nospam.ftoomsh.progsoc.uts.edu.au)
Tue, 29 Aug 1995 13:22:49 +1000 (EST)

> > Yes but I feel it is much better to hard code a binary, and allow everyone
> > to run it without problems. Especially if you create DLLs sitting in your
> > home directory.

> ?? Hard coding it would mean that LESS people could run the
> resulting binary...

Across machines maybe. But what about on the same machine?

Take an example:

I am sick of the number of people who can't run xv on the acs machines
simply because xv can't find the shared lib.

Possible solutions:
Add LD_LIBRARY_PATH=/usr/local/lib in the global .login file. This is how
it has been solved to an extent.

Link -R/usr/local/lib the xv binary.

The second is much neater and guards against users stuffing around with
their environment variables. Not to mention the fact that the first
way requires root privs.

> (Do you REALLY have paths hard coded into all of your binaries? Certainly
> in my work environment, predominantly Solaris, nothing does. Everything
> depends on the LD_LIBRARY_PATH, consequently one binary will run
> anywhere, you can even do library development without upsetting the
> public copy of a library. Yes I know about the security ramifications...)

So everyone should have LD_LIBRARY_PATH=/student/ele/ablancha/lib just
to run my binaries? My work environment is predominantly at uni :)

Anton

--
Anton Blanchard                      anton@nospam.progsoc.uts.edu.au
Electrical Engineering Student       ablancha@nospam.acs.itd.uts.edu.au
University of Technology, Sydney     http://www.progsoc.uts.edu.au/~anton 

Well, it's a laugh, innit?