[AWS] Installing AWS

David Marceau davidmarceau@sympatico.ca
Mon, 22 Jul 2002 10:24:24 -0400


emartel@cic.teleco.ulpgc.es wrote:

> I am trying to install AWS-12. in Debian. I am compiling with gnat- 3.14p and I have already installed adasockets-1.1.
> 
> I just copy 'include/aws-os_lib-gnat.adb' over 'src/aws-os_lib.adb'
? should this be necessary?  I don't think so.

> Then I update the INCLUDES variable in top 'makefile' in order to point to the adasockets source directory. After that ...
That's what I did.

>   I have just installed the AWS-version 1.2 in the /usr/local directory
> The installation seems to be OK (run_regtests is OK) but when I
> try to run the "hello_world" example I get the following error:
> 
> ./hello_world: error in loading shared libraries: libadasockets.so.0:
> cannot open shared object file: No such file or directory.
This line indicates that the executable hello_world was found and there
has been an attempt to load it.
It also indicates libadasockets is definitely not in your ld.so.conf
file and you haven't done an ldconfig.
It also means you haven't started a new terminal process to catch the
changes to your linker path.
It also means you haven't got your libadasockets*.so anywhere in your
LD_LIBRARY_PATH.

> Sorry, the directory is /usr/local/lib (not /usr/local/include). I had
> already tested the LD_LIBRARY_PATH and PATH but any change,
> the error remains.
It's odd since you did install adasockets.
I'm guessing you did a make on adasockets however you didn't do a make
install for adasockets.

1)Please confirm the following:
[david@omac lib]$ ls /usr/local/lib/libadaso*
/usr/local/lib/libadasockets.a    /usr/local/lib/libadasockets.so.0@
/usr/local/lib/libadasockets.la*  /usr/local/lib/libadasockets.so.0.0.0*
/usr/local/lib/libadasockets.so@
[david@omac lib]$

2)Next confirm you did:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
or modify your ld.so.conf with this path and then do an ldconfig.(This
is the more permanent solution :)

3)Confirm your hello_world dependencies resembles to the following.  If
you get any "not found" stuff it only confirms again you haven't
installed everything you need to run hello_world successfully.
[david@omac demos]$ ldd hello_world
        libxmlada_input_sources.so =>
/usr/local/lib/libxmlada_input_sources.so
(0x40016000)
        libxmlada_dom.so => /usr/local/lib/libxmlada_dom.so (0x4001d000)
        libxmlada_unicode.so => /usr/local/lib/libxmlada_unicode.so
(0x40042000)        libxmlada_sax.so => /usr/local/lib/libxmlada_sax.so
(0x4014d000)
        libadasockets.so.0 => /usr/local/lib/libadasockets.so.0
(0x4019b000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x401c1000)
        libc.so.6 => /lib/libc.so.6 (0x401d7000)
        libgcc_s.so.1 => /home/david/gcc31tars/gcc-3.1/lib/libgcc_s.so.1
(0x40314000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

I hope this helps :)

Cheers,
David Marceau