Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Which X11/Motif installed? (UNIX)

29 views
Skip to first unread message

J. Hogan

unread,
Nov 14, 2000, 3:00:00 AM11/14/00
to
How do you determine which versions of X11 and Motif have been installed
on a UNIX workstation? Does anyone have a shell or perl script that I
may use? Thanks in advance.


Sven Mascheck

unread,
Nov 14, 2000, 3:00:00 AM11/14/00
to
In comp.windows.x J. Hogan <a@b.c> wrote:
> How do you determine which versions of X11 and Motif have been installed
> on a UNIX workstation?

For the running Xserver, use xdpyinfo(1) first.
But it's output is not obvious on all platforms, f.i. SunOS5.5:

version number: 11.0
vendor string: Sun Microsystems, Inc.
vendor release number: 3510

it's a modified MIT X11R5, (patchlevel?)

See also:

From: Pete Forman
Newsgroups: comp.windows.x.intrinsics,comp.windows.x.apps
Subject: Re: Need help figuring out X release version
Date: 02 Dec 1999 13:40:25 +0000
Message-ID: <tuvh6hh...@kryten.bedford.waii.com>

Available via <URL:http://www.deja.com/forms/mid.shtml>

The posting contains C source.
Sample output on above SunOS5.5

Header information:
XlibSpecificationRelease = 5
X_PROTOCOL = 11
X_PROTOCOL_REVISION = 0
XtSpecificationRelease = 5
XT_VERSION = 11
XT_REVISION = 5
XtVersion = 11005
XtCompositeExtensionVersion = 1
XtObjectExtensionVersion undefined
XtShellExtensionVersion = 1
XmVERSION = 1
XmREVISION = 2
XmUPDATE_LEVEL = 3
XmVersion = 1002
XmVERSION_STRING = "@(#)OSF/Motif Version 1.2.3"
Library information:
Xt library version = 11005
Xm linked with Xt library version = 11005
Xm library version = 1002

f'up c.w.x
Sven

Roland Mainz

unread,
Nov 14, 2000, 3:00:00 AM11/14/00
to
"J. Hogan" wrote:

> How do you determine which versions of X11 and Motif have been installed
> on a UNIX workstation? Does anyone have a shell or perl script that I
> may use? Thanks in advance.

Try this:
-- snip --
% strings /usr/lib/libXm.so | grep -i "motif version"
@(#)Motif Version 2.1.0
-- snip --

Sometimes /usr/lib/libXm.so links to older Motif V1.2 instead of (the
far more advanced) V2.1. Check for all variants of /usr/lib/libXm.so*

----

Bye,
Roland

--
__ . . __
(o.\ \/ /.o) Roland...@informatik.med.uni-giessen.de
\__\/\/__/ gis...@informatik.med.uni-giessen.de
/O /==\ O\ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
(;O/ \/ \O;) TEL +49 641 99-41370 FAX +49 641 99-41359

ken...@nojunk.rahul.net-

unread,
Nov 14, 2000, 3:00:00 AM11/14/00
to
In article <3A11660A.4E157A3B@b.c>, J. Hogan <a@b.c> wrote:
>How do you determine which versions of X11 and Motif have been installed
>on a UNIX workstation? Does anyone have a shell or perl script that I
>may use? Thanks in advance.

Subject 17 in the Motif FAQ. My web site has a copy of the FAQ.
--
Ken Lee, http://www.rahul.net/kenton/

Mark H. Wood

unread,
Nov 15, 2000, 3:00:00 AM11/15/00
to
In comp.windows.x.motif J. Hogan <a@b.c> wrote:
> How do you determine which versions of X11 and Motif have been installed
> on a UNIX workstation? Does anyone have a shell or perl script that I
> may use? Thanks in advance.

Here's what I use:

# $/bin/sh
# A little script to display the Motif version number (and LessTIF
# version if available)

cpp -P -imacros /usr/local/include/Xm/Xm.h <<-ENDOFITALL
Motif version XmVERSION.XmREVISION(XmUPDATE_LEVEL) [XmVERSION_STRING]
ENDOFITALL

--
Mark H. Wood, Lead System Programmer mw...@IUPUI.Edu
The AVR menu said, "if you are running Novell, press 4." Eric Schmidt
is running Novell; the rest of us are running Netware.

0 new messages