Lisp HUG Maillist Archive

Motif Libraries (again)

Hi,

I know this is a recurring question but I am again having trouble  
getting LispWorks Personal Edition to work on Linux.

I am using Ubuntu 8.04 and I installed libmotif3 using Synaptic, which  
gave me:

sven@bladerunner:~/Desktop/lw-install$ locate libXm.so.3
/usr/lib/libXm.so.3
/usr/lib/libXm.so.3.0.2

Still, LispWorks tells me it cannot find libXm.so.3:

sven@bladerunner:~/Desktop/lw-install$ ./lispworks-personal-5-1-1-x86- 
linux
LispWorks(R): The Common Lisp Programming Environment Personal Edition
Copyright (C) 1987-2008 LispWorks Ltd.  All rights reserved.
Version 5.1.1
Saved by LispWorks as lispworks-personal-5-1-1-x86-linux, at 13 May  
2008 17:15
User sven on bladerunner

Error: Could not register handle for external module X- 
UTILITIES::CAPIX11:
  libXm.so.3: cannot open shared object file: No such file or directory.
   1 (abort) Quit process.

Type :b for backtrace, :c <option number> to proceed,  or :? for other  
options

CL-USER 1 : 1 > :bq

FLI::CREATE-EXTERNAL-MODULE <- FLI:REGISTER-MODULE
<- X-UTILITIES::DO-ENSURE-MOTIF-LIBRARIES
<- X-UTILITIES:ENSURE-MOTIF-LIBRARIES
<- CAPI-MOTIF-LIBRARY::ENSURE-CAPI-XM-LIBRARY-INITIALIZED
<- (METHOD CAPI-LIBRARY:INITIALIZE-CAPI-USING-LOOK-AND-FEEL  
((EQL :MOTIF)))
<- CAPI-INTERNALS:ENSURE-CAPI-INITIALIZED
<- (METHOD CAPI::CONVERT-OBJECT-TO-SCREEN (CONS))
<- CAPI-MOTIF-LIBRARY::RUN-INITIAL-FUNCTIONS
<- (SUBFUNCTION MP::PROCESS-SG-FUNCTION MP::INITIALIZE-PROCESS-STACK)

Maybe it is looking in the wrong directory ? Or maybe the standard  
Motif libraries are no good (they are version 2.2.3-2) ?

Any help or pointers greatly appreciated.

Sven


Re: Motif Libraries (again)

On Tue, Jan 27, 2009 at 02:03:04PM +0100, Sven Van Caekenberghe wrote:
> I know this is a recurring question but I am again having trouble
> getting LispWorks Personal Edition to work on Linux.
> 
> I am using Ubuntu 8.04 and I installed libmotif3 using Synaptic,
> which  gave me:
> 
> sven@bladerunner:~/Desktop/lw-install$ locate libXm.so.3
> /usr/lib/libXm.so.3
> /usr/lib/libXm.so.3.0.2
> 
> Still, LispWorks tells me it cannot find libXm.so.3:
> 
> sven@bladerunner:~/Desktop/lw-install$ ./lispworks-personal-5-1-1-x86- 
> linux
> LispWorks(R): The Common Lisp Programming Environment Personal Edition
> Copyright (C) 1987-2008 LispWorks Ltd.  All rights reserved.
> Version 5.1.1
> Saved by LispWorks as lispworks-personal-5-1-1-x86-linux, at 13 May  
> 2008 17:15
> User sven on bladerunner
> 
> Error: Could not register handle for external module X- 
> UTILITIES::CAPIX11:
>  libXm.so.3: cannot open shared object file: No such file or directory.
>   1 (abort) Quit process.

This knowledgebase article may help:
http://www.lispworks.com/kb/f05daf889214217a80256c5a004c9b12.html.
It's a bit out of date, in that it says libXm.so.3 "appears to be"
binary incompatible, but I use it and it works.  (I'm on Debian, but
isn't Ubuntu a Debian-descendent?  Or have I got my wires crossed?)

My /usr/local/lib/LispWorks/lib/5-1-0-0/config/use-motif-library says

  (:detect-version (("/usr/X11R6/lib/libXm.so.3" :motif))
   :prefer-version :motif
   )

but on the other hand it also says

  NOTE: THIS FILE IS NO LONGER USED BY LISPWORKS IN THE DEFAULT
  CONFIGURATION.

so YMMV.  (Note that I'm talking about the Professional version, but I
think it's pretty much the same for the Personal version, just a
different path.)

HTH.

-- Larry


Re: Motif Libraries (again)

Sven Van Caekenberghe <sven@beta9.be> writes:

> I am using Ubuntu 8.04 and I installed libmotif3 using Synaptic, which
> gave me:

Are you using a 32-bit lispworks on a 64-bit Ubuntu, by any chance?  I
tried that and ran into a similar problem.  Ubuntu 8.10, x86_64, with
ia32-libs installed (in its default /usr/lib32 directory).

Unfortunately, ia32-libs does not contain the motif libraries.  I
solved it by manually downloading libmotif3_2.2.3-2_i386.deb and
libmotif-dev_2.2.3-2_i386.deb from packages.ubuntu.com.  I unpacked
each package with "dpkg -x" to a temporary directory, dug down into
the package-relative usr/lib, and did a 'sudo cp -ira * /usr/lib32/'.

I can't remember if I did a ldconfig afterwards or not, but I don't
think so.  Anyway, after that my 32-bit lispworks fired up its gui
without problems.  So now I can run both 64-bit and 32-bit lispworks
on the same box, yay!

(BTW, I'm using Enterprise Edition, not that I think it matters in
this case.)
-- 
Mvh/Regards
Peder O. Klingenberg
Netfonds Bank ASA


Updated at: 2020-12-10 08:41 UTC