(Solved) Linux Installation

Request help for teeworlds-related subjects (mapping, servers, ..).
For client issues, see our repositories (https://github.com/ddnet/ddnet/issues).
User avatar
deen
TECHNICAL Team
Posts: 3576
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: (Solved) Linux Installation

Post by deen »

Please post the entire error message.
¯\_(._.)_/¯
Posts: 14
Joined: Sat Mar 05, 2016 1:48 am

Re: (Solved) Linux Installation

Post 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
User avatar
deen
TECHNICAL Team
Posts: 3576
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: (Solved) Linux Installation

Post 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
¯\_(._.)_/¯
Posts: 14
Joined: Sat Mar 05, 2016 1:48 am

Re: (Solved) Linux Installation

Post 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.
User avatar
Ryozuki
Posts: 1748
Joined: Tue Feb 24, 2015 7:28 am
Location: Catalonia
Player profile: http://ddnet.tw/players/Ryozuki/
Mapper profile: http://ddnet.tw/mappers/Ryozuki/
Clan: Unique
Website: https://edgarluque.com
Discord: Ryozuki#2188

Re: (Solved) Linux Installation

Post 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)
¯\_(._.)_/¯
Posts: 14
Joined: Sat Mar 05, 2016 1:48 am

Re: (Solved) Linux Installation

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests