Menu

#44 Docs for installing in unprivileged account

open
nobody
None
5
2012-10-30
2012-10-30
Anonymous
No

I was installing awka on a computer where I have an unprivileged account, and thus I could not do \'make install\'. From the existing documentation, it was unclear how I should use awka if that step was not an option. The awka translator worked fine, but I got errors from gcc. I realized that I needed to inform gcc where to find the header files and object files. In the unpacked awka tarball directory I typed the following to sucessfully compile:

gcc awka_out.c -Ilib -Llib -lawka

The resulting executable worked just fine.

Hopefully I am doing this correctly. Perhaps this will be helpful for other awka newbies.

Discussion

  • Anonymous

    Anonymous - 2012-11-01

    Forgot to mention: you would also need to update the LD_LIBRARY_PATH environment variable to include the path to the libawka.so shared library file.

     
  • Anonymous

    Anonymous - 2012-11-01

    ... and I had to throw in an extra '-lm' option to gcc to get some mathematical functions to work correctly.

     

Log in to post a comment.

MongoDB Logo MongoDB