jorio / Nanosaur2

Pangea Software’s Nanosaur II for modern systems

Home Page:https://jorio.itch.io/nanosaur2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installing libsdl2-dev on Ubuntu?

foote-darrell opened this issue · comments

I had followed the build instructions on this site to modify the game with more render distance and higher height. Reportedly this computer does not have the libsdl2-dev library which was required. I had referred to this site to download it. I am pretty sure this computer is a x86 architecture, which doesn't seem to be one of the options. I had tried opening one of them, but ti just reports that the dependencies are not met. How do I actually install it?image

Did you try this? apt install libsdl2-dev

I tried it. This is what it said:
image

darrell@darrell-Lenovo-H430:~$ apt install libsdl2-dev
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
darrell@darrell-Lenovo-H430:~$ 

Hello @foote-darrell,

You must read the error message carefully. It says: “are you root?” which implies that you must run the command apt install libsdl2-dev as root, which is the Linux equivalent for Administrator under Windows.

To run any command as root, you can use sudo:

sudo apt install libsdl2-dev

You will be prompted for your password, and everything will be good to go!

Looks like that did it. Thanks.