Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
185
rated 0 times [  185] [ 0]  / answers: 1 / hits: 392939  / 1 Year ago, tue, may 9, 2023, 8:01:53

I'm completely new to Ubuntu. I got installed it because my school uses a lot of Linux type stuff in my school's Computer Science program so I figured I would use Ubuntu on my own machine and just do my code from there instead of the computer labs. However, I'm having a lot of trouble trying to install the numerous packages that aren't included natively on Ubuntu. Can someone help me install the PNG library, libpng and zlib. This is just one of many things I need to get on here but I think I need to first start off with this. I did download both packages, did the tar xf thingy on the download, and looked at the README files for insight on installing the software. I get weird errors though. I first tried installing libpng and the terminal was like zlib isn't installed so I was like ok, I'll just get zlib but permission is denied. Do I need to get root or something? I remember seeing people say root before, but I don't know if it is relevant. I'm really new so I don't understand a lot of these things and it's kinda scary. Please help.


More From » png

 Answers
1

Open terminal by CtrlAltT



For libpng, run:



sudo apt-get install libpng-dev


For zlib, run:



sudo apt-get install zlib1g-dev

[#23739] Wednesday, May 10, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tigehanc

Total Points: 162
Total Questions: 113
Total Answers: 122

Location: Zambia
Member since Sat, Oct 31, 2020
4 Years ago
;