Menu

#23 libawka.so: cannot open shared object fi

open
nobody
None
5
2002-12-02
2002-12-02
Anonymous
No

Downloaded awka-0.7.5.tar.gz.

Installed it on Redhat7.3 as user root.
Made small awk test file.

test.awk
{print $0}

Did generated compiled c-progam.
awka -X -f test.awk.

Executed the script and getting next error message.
cat test.awk | ./awka.out
./awka.out: error while loading shared libraries:
libawka.so: cannot open shared object file: No such file
or directory

What do I do wrong?

Wilfried

Discussion

  • Andrew Sumner

    Andrew Sumner - 2002-12-03

    Logged In: YES
    user_id=84532

    I'm a bit rusty on how shared libraries work right now, but
    perhaps check to ensure that libawka.so is somewhere in
    your PATH, or is installed in a standard place like /usr/lib
    or /usr/local/lib. I think there's a variable called
    LD_LIBRARY_PATH (or something similar) that is used to
    identify locations of shared libraries as well - not sure.

     
  • Nobody/Anonymous

    Logged In: NO

    Andrew,

    The libawka.so is standing in /usr/local/lib.
    This directory is in the PATH.
    I added the LD_LIBRARY_PATH=/usr/local/lib to
    the .bash_profile.

    It working now.

    Thanks,
    Wilfried

     
  • Jeff Chua

    Jeff Chua - 2003-01-15

    Logged In: YES
    user_id=69045

    update the library links and cache by issuing "ldconfig".
    libawka should normally go to /usr/local/lib or /usr/lib.

     

Log in to post a comment.

MongoDB Logo MongoDB