problems with lite-kernel and friends

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

problems with lite-kernel and friends

Mario Storti-4

I successfully compiled Octave  under Linux RedHat 5.0. The executable
was >10Mb  in  size and I  need  dynamic-linking in order to  run .oct
files, so   that I tried:

$ ./configure  --enable-shared --enable-lite-kernel --enable-dl

but then Octave can't find some routines (those in libcruft, I guess),
for instance:

> octave> rand(10)
> error: `rand' undefined near line 6 column 1
> error: evaluating index expression near line 6, column 1
> octave> eig(a)
> error: `eig' undefined near line 8 column 1
> error: evaluating index expression near line 8, column 1
> octave>

I had to manually add `/usr/local/lib/octave' to `/etc/ld.so.conf' and
run  `ldconfig'. It seems  that  the octave libraries liboctinterp.so,
liboctave.so and   libcruft.so   are    properly  installed  in    the
ld.so.cache.

Sorry if this  is a dumb question.

Any hints?

TIA,

Mario

%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%
Mario Alberto Storti                           | Fax: (54)(42) 55.09.44 |
Centro Internacional de Metodos Computacionales| Tel: (54)(42) 55.91.75 |
     en Ingenieria - CIMEC                     |........................|  
INTEC, Guemes 3450 - 3000 Santa Fe, Argentina                           |
Reply: [hidden email], http://venus.unl.edu.ar/gtm-eng.html |


Reply | Threaded
Open this post in threaded view
|

problems with lite-kernel and friends

John W. Eaton-6
On  2-Apr-1998, Mario Storti <[hidden email]> wrote:

|
| I successfully compiled Octave  under Linux RedHat 5.0. The executable
| was >10Mb  in  size and I  need  dynamic-linking in order to  run .oct
| files, so   that I tried:
|
| $ ./configure  --enable-shared --enable-lite-kernel --enable-dl
|
| but then Octave can't find some routines (those in libcruft, I guess),
| for instance:
|
| > octave> rand(10)
| > error: `rand' undefined near line 6 column 1
| > error: evaluating index expression near line 6, column 1
| > octave> eig(a)
| > error: `eig' undefined near line 8 column 1
| > error: evaluating index expression near line 8, column 1
| > octave>
|
| I had to manually add `/usr/local/lib/octave' to `/etc/ld.so.conf' and
| run  `ldconfig'. It seems  that  the octave libraries liboctinterp.so,
| liboctave.so and   libcruft.so   are    properly  installed  in    the
| ld.so.cache.

I don't think you should have to do that if Octave was linked with the
correct -rpath option.

| Sorry if this  is a dumb question.
|
| Any hints?

Are the .oct files installed?  What is your LOADPATH?

jwe