Page 2 of 2

Re: (Solved) Linux Installation

Posted: Fri May 19, 2017 7:58 am
by deen
Please post the entire error message.

Re: (Solved) Linux Installation

Posted: Fri May 19, 2017 10:34 pm
by ¯\_(._.)_/¯
deen wrote:Please post the entire error message.

Code: Select all

~/Desktop/DDNet-10.4.3-linux_x86$ ./DDNet
./DDNet: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory

Re: (Solved) Linux Installation

Posted: Fri May 19, 2017 11:15 pm
by deen
Googling for that error tells me:

Code: Select all

apt-get install libglu1-mesa
Generally DDNet requires everything that Teeworlds requires and additionally SDL2. So if you're missing more:

Code: Select all

apt-get build-dep teeworlds

Re: (Solved) Linux Installation

Posted: Sat May 20, 2017 4:09 pm
by ¯\_(._.)_/¯
So I tried to install teeworlds and this happened

Code: Select all

$ sudo apt-get build-dep teeworlds
[sudo] password for hershel: 
Reading package lists... Done
E: Unable to find a source package for teeworlds
So I installed it from the website and this happened when I tried to open it

Code: Select all

~/Documents/teeworlds-0.6.4-linux_x86$ ./teeworlds
./teeworlds: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory
So I tried to check which dependencies I'm missing

Code: Select all

~/Documents/teeworlds-0.6.4-linux_x86$ ldd ./teeworlds
The only dependency that I'm missing is libSDL-1.2.so.0 but when I tried to install it this happened

Code: Select all

$ sudo apt-get install libSDL-1.2
[sudo] password for hershel: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libSDL-1.2
E: Couldn't find any package by glob 'libSDL-1.2'
E: Couldn't find any package by regex 'libSDL-1.2'
So the dependency that I'm missing, doesn't exist? I'm not sure what to do.

Re: (Solved) Linux Installation

Posted: Sat May 20, 2017 5:04 pm
by Ryozuki
you are missing libfreetype, install it with: sudo apt install libfreetype6


You can also run:
sudo apt-get install libsdl2-dev libfreetype6-dev libcurl4-openssl-dev libogg-dev libopus-dev libopusfile-dev bam

Which will install all needed libs to compile ddnet (and so, also to run it)

Re: (Solved) Linux Installation

Posted: Sat May 20, 2017 6:20 pm
by ¯\_(._.)_/¯
Ryozuki wrote:you are missing libfreetype, install it with: sudo apt install libfreetype6


You can also run:
sudo apt-get install libsdl2-dev libfreetype6-dev libcurl4-openssl-dev libogg-dev libopus-dev libopusfile-dev bam

Which will install all needed libs to compile ddnet (and so, also to run it)
Ok so I installed that and got the same error as before when trying to compile DDNet.

Code: Select all

~/Desktop/DDNet-10.4.3-linux_x86$ ./DDNet
./DDNet: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
Also I already had libfreetype:

Code: Select all

$ sudo apt install libfreetype6
[sudo] password for hershel: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libfreetype6 is already the newest version (2.6.1-0.1ubuntu2.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.