2

I need to install libpng-dev locally on a system where I do not have sudo access This is required to compile a C application. What is the best way to proceed with this? Can this be installed from source?

3
  • Yes, it can be installed from source. ( apt-get source libpng-dev) Commented Jul 30, 2018 at 10:16
  • 1
    It can be done, however if you improve your question for what you need it, we can give a more useful and interesting answer. Commented Jul 30, 2018 at 10:36
  • @RuiFRibeiro Updated: To compile C code
    – Manolete
    Commented Jul 30, 2018 at 12:31

1 Answer 1

2

While it is far more convenient from the sysadmin (and often from the developer) point of view to install development libraries using the distribution packages, such is not essencial. Depending also on the application and language, there might be several alternative ways of doing it.

In this case, you can download the .tar.gz files from the project home at http://www.libpng.org/pub/png/libpng.html

Depending on the package, the make/configure files might or might not detect the library after you compile it.

The specific steps how to do it might be out-of-scope/topic here.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .