70's futuristic technology

Programming focused drivel

Tuesday, June 05, 2007

LispWorks on x86_64 Ubuntu feisty

I was just about to give up on trying to use LispWorks, because I couldn't get the CAPI GUI to start up on my beefy Ubuntu machine. Things had gone fine on Mac OS X, but I hit a huge road block with lesstif2 / Open Motif 2.1 on Ubuntu.

When I would start up

~/Library/LispWorks/lispworks-personal-5-0-1-x86-linux

I got a libXm.so missing error

Error during GUI startup:
Could not register handle for external module X-UTILITIES::CAPIX11:
libXm.so.1: cannot open shared object file: No such file or directory.

or maybe it was libXm.so.2 ... Anywhoos, I Ubuntu already has lesstif2 installed, so I added /usr/lib to by LD_LIBRARY_PATH


LispWorks(R): The Common Lisp Programming Environment Personal Edition
Copyright (C) 1987-2006 LispWorks Ltd. All rights reserved.
Version 5.0.1
Saved by LispWorks as lispworks-personal-5-0-1-x86-linux, at 09 Jan 2007 15:47
User auking on bigriver

Error: Could not register handle for external module X-UTILITIES::CAPIX11:
libXm.so.2: wrong ELF class: ELFCLASS64.
1 (abort) Quit process.

Type :b for backtrace, :c to proceed, or :? for other options

CL-USER 1 : 1 >


Okay, so it found the library, but they are 64 bit... Ahh. There are no 32 bit libraries to install.

Couple of days of trying different stuff when I had spare cycles. No dice.
Finally early this morning I found that editing lib/5-0-0-0/config/use-motif-library to

(:detect-version (("/usr/lib/libXm.so.2.0.1" :lesstif)
("/usr/lib/libXm.so.3.0.2" :motif))
:prefer-version :motif
)

I was able to startup LispWorks on 64 bit linux.

1 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home