[comp.windows.x] Problem using xcalc. Need a clue...

cowan@dover.sps.mot.com (Andrew H Cowan) (07/06/90)

I have a strange situation...and I need a clue.

When I run "xcalc -display myncd:0" from a Sun 4, xcalc works just
fine.

If I run "xcalc -display myncd:0" from a Solbourne (Sun 4 architecture),
xcalc comes up as a tiny little box with what looks like a bunch of
small boxes jammed on top of each other.  It definitely doesn't look
like a calculator.

Now, the particulars are that I have installed the same ".so" libs on
both systems, however on the Solbourne I have not installed the libs
in /usr/lib (rather, thanks to some of you kind net.folks, I've 
discovered the LD_LIBRARY_PATH variable) but in an alternate directory.
On the Solbourne we still have X11R3 installed in /usr/lib.

I am running SWM (Solbourne's Window Manager).  I am using an NCD 17c
X terminal.  All of which works, if xcalc is running on the Sun 4.

Why does xcalc work on the Sun 4, but not on the Solbourne?  Is it 
because I am trying to screw around with putting the libs in an
alternate directory?  Or is it because the Solbourne has a compatability
problem running a X11R4 that was built on a Sun 4?

-AC


        **                   /   \                   **
     ** **                  |     |                  **
     ** ** **                \___/                   ** **
     ********                                        ** **
      ******         __                  **          ****
        **        \_/oo\_/              ****         **
........**..........\||/................****.........**...........
Andy Cowan...........||.............cowan@soleil.sps.mot.com......

stripes@eng.umd.edu (Joshua Osborne) (07/07/90)

In article <2312@dover.sps.mot.com> cowan@soleil.sps.mot.com.UUCP (Andrew H Cowan) writes:
>Now, the particulars are that I have installed the same ".so" libs on
>both systems, however on the Solbourne I have not installed the libs
>in /usr/lib (rather, thanks to some of you kind net.folks, I've 
>discovered the LD_LIBRARY_PATH variable) but in an alternate directory.
>On the Solbourne we still have X11R3 installed in /usr/lib.
Xcalc need to beable to find .../lib/app-defaults/Xcalc, if you compiled it
to look somewhere else, it will fail.  The is an enviroment var you can set
to make it look elsewhere (I forget what it is, but it's in the docs).
-- 
           stripes@eng.umd.edu          "Security for Unix is like
      Josh_Osborne@Real_World,The          Mutitasking for MS-DOS"
      "The dyslexic porgramer"                  - Kevin Lockwood
"Don't try to change C into some nice, safe, portable programming language
 with all sharp edges removed, pick another language."  - John Limpert

emike@cpg.trs.reuter.com (E. Mike Durbin) (07/10/90)

In article <2312@dover.sps.mot.com>, cowan@dover.sps.mot.com (Andrew H
Cowan) writes:
|> I have a strange situation...and I need a clue.
|> 
|> When I run "xcalc -display myncd:0" from a Sun 4, xcalc works just
|> fine.
|> 
|> If I run "xcalc -display myncd:0" from a Solbourne (Sun 4 architecture),
|> xcalc comes up as a tiny little box with what looks like a bunch of
|> small boxes jammed on top of each other.  It definitely doesn't look
|> like a calculator.

If your libs are not in /usr/lib, then your app-defaults probably are'nt.

In you X startup (.profile is you're using an NCD???), define:

	XFILESEARCHPATH=/...WhereIt'sInstalled.../lib/%T/%N%S

%T later becomes "app-defaults".

E. Mike Durbin
Rich/Reuters Trading Room Systems