home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!DOC.IC.AC.UK!mjb
- From: mjb@DOC.IC.AC.UK (Matthew Jude Brown)
- Newsgroups: comp.soft-sys.andrew
- Subject: messages and X windows
- Message-ID: <Added.Yed9nBS00UkTQ1sk9d@andrew.cmu.edu>
- Date: 2 Sep 92 10:51:22 GMT
- References: <AecLYQa4hFs604GANR@cantsc.canterbury.ac.nz>
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 53
-
- In article <AecLYQa4hFs604GANR@cantsc.canterbury.ac.nz> Jason Haar <cctr127@cantva.canterbury.ac.nz> writes:
- >Hi,
- >
- >Over the past month or so I've been trialing the ATK binary distribution on
- >our Sun server.
- >
- >From my SPARCstation it ran/runs very well, and I'm already to announce its
- >availability to the campus here.
- >
- >Unfortunately, I can't get it to run on NCD X-terminals - running ATK
- >applications (like <bold>runapp lauchapp</bold>) causes the following error:
- >
- > Could not open display; this program will not run without a window system
- >
- >Needless to say, windows was running at the time ;-)
- >
- >Any ideas where I should start looking for the problem? The server runs
- >SunOS 4.1.2 and X11R5.
- >
- >Cheers
- >
- >Jason Haar, Network Consultant
-
- For an immediate fix, try setting your DISPLAY environment variable to the
- numeric IP address of your X terminal instead of its domain name like so:
-
- setenv DISPLAY 129.31.81.33:0.0
-
- instead of diapason:0.0 (of course, these are the numbers and name for my
- setup - replace them with yours ...)
-
- I think you'll find this will work - it did for me.
-
- Looking more closely, you'll probably find that your X terminals do not
- appear in /etc/hosts - instead, you're using NIS or DNS to resolve these
- host names. The problem is that you've linked with libraries with the
- wrong version of the hostname functions - gethostbyname() et al -
- probably you have a different version of these in your static libraries
- than in your dynamically linked libraries. Your other X applications
- are probably using the dynamic libraries, which have the right version
- of these for your setup.
-
- Solution? Link with -lresolv , add your X-terminals to /etc/hosts, or
- update your libraries.
-
- Hope this is of some use,
-
- -Matt
- --
- | Matthew J. Brown | Dept. of Computing | If God intended for us to go to |
- | mjb@doc.ic.ac.uk | Imperial College, | lectures He wouldn't have created |
- | mjb02@cc.ic.ac.uk | 180 Queen's Gate | double-sided photocopiers. |
- | Morven on Lambda | LONDON SW7 2AZ | -IC RagMag 1991/92 |
-