LKB under Ubuntu on Mac

View: New views
6 Messages — Rating Filter:   Alert me  

LKB under Ubuntu on Mac

by Emily M. Bender :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've got Ubuntu running under Parallels on my MacBook Pro,
and I thought I'd see if I could install the LKB.  I realize
this is not a standard configuration, so I wouldn't be surprised
if this is not possible, but I am a little surprised at the
particular error that I'm getting:

I've done the automated install, and added the requisite lines
to my .emacs.  

When I do M-x lkb, I get errors (see the buffer included below).

The file libXm.so.3 is installed in ~/delphin/lib/linux.x86.32.

Does anyone have any ideas about why this file isn't being found?

Thanks,
Emily


==============================================================
Starting image `~/delphin/lkb/linux.x86.32/lkb'
  with image (dxl) file `~/delphin/lkb/linux.x86.32/lkb.dxl'
  with arguments `(-locale en_US.UTF-8)'
  in directory `~/delphin'
  on machine `localhost'.

Warning: Loading sys:climxm.so failed with error:
         libXm.so.3: cannot open shared object file: No such file or directory.
International Allegro CL Enterprise Edition
8.0 [Linux (x86)] (Jun 6, 2006 13:56)
Copyright (C) 1985-2005, Franz Inc., Oakland, CA, USA.  All Rights Reserved.

This standard runtime copy of Allegro CL was built by:
   [TC7227] Stanford University

An unhandled error occurred during initialization:
Attempt to call
#("InitializeMyDrawingAreaQueryGeometry" 3084136816 0 2 3084136816) for which
the definition has not yet been (or is no longer) loaded.


Re: LKB under Ubuntu on Mac

by Francis Bond :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

G'Day,

> I've got Ubuntu running under Parallels on my MacBook Pro,
> and I thought I'd see if I could install the LKB.  I realize
> this is not a standard configuration, so I wouldn't be surprised
> if this is not possible, but I am a little surprised at the
> particular error that I'm getting:
>
> I've done the automated install, and added the requisite lines
> to my .emacs.
>
> When I do M-x lkb, I get errors (see the buffer included below).
>
> The file libXm.so.3 is installed in ~/delphin/lib/linux.x86.32.
>
> Does anyone have any ideas about why this file isn't being found?

Something needs to set the LD_LIBRARY_PATH, as the library is in a
wierd place.  This can be done by loading  delphin/lkb/etc/dot.bashrc,
and making sure you start emacs from a shell, not the panel.

Alternatively, you can include the universe repositories and
$sudo apt-get install libmotif3
which puts the library you want in the standard place.

--
Francis Bond  <www.kecl.ntt.co.jp/icl/mtg/members/bond/>
NTT Communication Science Laboratories | Natural Language Research Group

Re: LKB under Ubuntu on Mac

by Emily M. Bender :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, Francis.  I'm happy to report that that works, and I am
able to run the lkb on my mac under ubuntu under parallels.  The
dog barks!

For the archives, the path to dot.bashrc within DELPHINHOME is
actually this:  ${DELPHINHOME}/lkb/etc/dot.bashrc

Emily

On Wed, Jul 19, 2006 at 09:54:49AM +1000, Francis Bond wrote:

> G'Day,
> >I've got Ubuntu running under Parallels on my MacBook Pro,
> >and I thought I'd see if I could install the LKB.  I realize
> >this is not a standard configuration, so I wouldn't be surprised
> >if this is not possible, but I am a little surprised at the
> >particular error that I'm getting:
> >
> >I've done the automated install, and added the requisite lines
> >to my .emacs.
> >
> >When I do M-x lkb, I get errors (see the buffer included below).
> >
> >The file libXm.so.3 is installed in ~/delphin/lib/linux.x86.32.
> >
> >Does anyone have any ideas about why this file isn't being found?
>
> Something needs to set the LD_LIBRARY_PATH, as the library is in a
> wierd place.  This can be done by loading  delphin/lkb/etc/dot.bashrc,
> and making sure you start emacs from a shell, not the panel.
>
> Alternatively, you can include the universe repositories and
> $sudo apt-get install libmotif3
> which puts the library you want in the standard place.
>
> --
> Francis Bond  <www.kecl.ntt.co.jp/icl/mtg/members/bond/>
> NTT Communication Science Laboratories | Natural Language Research Group

Re: LKB under Ubuntu on Mac

by Stephan Oepen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi emily,

> I've done the automated install, and added the requisite lines
> to my .emacs.  

  [...]

> Does anyone have any ideas about why this file isn't being found?

  [...]

> Warning: Loading sys:climxm.so failed with error:
>   libXm.so.3: cannot open shared object file: No such file or directory.

i suspect you are not using the `dot.emacs' file installed as part of
the DELPH-IN tree?  i recommend you actually include that file in your
personal `.emacs', e.g.

  (let ((root (or (getenv "DELPHINHOME") "/home/ebender/delphin")))
    (if (file-exists-p (format "%s/lkb/etc/dot.emacs" root))
      (load (format "%s/lkb/etc/dot.emacs" root) nil t t)))

the DELPH-IN `dot.emacs' actually adjusts LD_LIBRARY_PATH, such as to
include the DELPH-IN library directory, i.e. enabling the LKB to see
the correct Motif library.  likewise, [incr tsdb()], as of late, will
look for an external library, which again depends on LD_LIBRARY_PATH
including the appropriate, platform-specific DELPH-IN directory.

in case you were actually including the DELPH-IN `dot.emacs' already,
please let me know.  we are keen to make the automated installer work
well across the various platforms!

                                                     all best  -  oe

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++ Universitetet i Oslo (IFI); Boks 1080 Blindern; 0316 Oslo; (+47) 2285 7989
+++     CSLI Stanford; Ventura Hall; Stanford, CA 94305; (+1 650) 723 0515
+++       --- oe@...; oe@...; stephan@... ---
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Re: LKB under Ubuntu on Mac

by Emily M. Bender :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Stephan,

I was indeed including the dot.emacs file (as specified), but
didn't get the desired behavior until I followed Francis's tip
and also included the dot.bashrc that's provided.  Both the LKB
and the fine system work now :-)

Emily

On Fri, Jul 21, 2006 at 02:49:09AM +0200, Stephan Oepen wrote:

> hi emily,
>
> > I've done the automated install, and added the requisite lines
> > to my .emacs.  
>
>   [...]
>
> > Does anyone have any ideas about why this file isn't being found?
>
>   [...]
>
> > Warning: Loading sys:climxm.so failed with error:
> >   libXm.so.3: cannot open shared object file: No such file or directory.
>
> i suspect you are not using the `dot.emacs' file installed as part of
> the DELPH-IN tree?  i recommend you actually include that file in your
> personal `.emacs', e.g.
>
>   (let ((root (or (getenv "DELPHINHOME") "/home/ebender/delphin")))
>     (if (file-exists-p (format "%s/lkb/etc/dot.emacs" root))
>       (load (format "%s/lkb/etc/dot.emacs" root) nil t t)))
>
> the DELPH-IN `dot.emacs' actually adjusts LD_LIBRARY_PATH, such as to
> include the DELPH-IN library directory, i.e. enabling the LKB to see
> the correct Motif library.  likewise, [incr tsdb()], as of late, will
> look for an external library, which again depends on LD_LIBRARY_PATH
> including the appropriate, platform-specific DELPH-IN directory.
>
> in case you were actually including the DELPH-IN `dot.emacs' already,
> please let me know.  we are keen to make the automated installer work
> well across the various platforms!
>
>                                                      all best  -  oe
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> +++ Universitetet i Oslo (IFI); Boks 1080 Blindern; 0316 Oslo; (+47) 2285 7989
> +++     CSLI Stanford; Ventura Hall; Stanford, CA 94305; (+1 650) 723 0515
> +++       --- oe@...; oe@...; stephan@... ---
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Re: LKB under Ubuntu on Mac

by Stephan Oepen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi again, emily,

> I was indeed including the dot.emacs file (as specified), but didn't
> get the desired behavior [...]

hmm, that is potentially troubling.  any chance you have other code in
your personal `.emacs' that could interfere?  e.g. if you had your own
function definition for allegro() (as we all used to have :-), and the
DELPH-IN `dot.emacs' was loaded before your (re-)definition?

in future versions, i can hide all functions internal to DELPH-IN in a
separate name space, so as to avoid such name conflicts; but for me to
sleep well now, it would be good confirming the above hypothesis :-).

meta-level, i suggest we take the LKB list off this thread for now ...

                                                        cheers  -  oe

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++ Universitetet i Oslo (IFI); Boks 1080 Blindern; 0316 Oslo; (+47) 2285 7989
+++     CSLI Stanford; Ventura Hall; Stanford, CA 94305; (+1 650) 723 0515
+++       --- oe@...; oe@...; stephan@... ---
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++