Home > OS >  Build famine under centOS server appear wrong ELF class: ELFCLASS64
Build famine under centOS server appear wrong ELF class: ELFCLASS64

Time:09-20

Plans to build a famine server to play, but in execution./dontstarve_dedicated_server_nullrenderer met a mistake:/dontstarve_dedicated_server_nullrenderer is what causes it?

CodePudding user response:

There was a problem one, first, install the software x. So. X: wrong ELF class: ELFCLASS64, roughly means software is 32-bit, need 32 x. So. X dynamic link libraries, and the system is provided by a 64 - bit the dynamic link library x. So, x is 64, so can't use,
1. The terminal input
 DPKG -- print - architecture 

If see like the following content:
 amd64 

This shows that the kernel you already have a 64 - bit architecture, if you don't have no influence,
2. Enter
 DPKG -- print - foreign - architectures 

The output is:

 i386 


Already open architecture to support the more, if haven't even opened can press the following

3.
 sudo DPKG -- add - architecture i386 
Sudo apt update

Then I will begin to download the update and then run,
Then you need to enter:
 sudo apt - get dist - upgrade 

It will check whether you already have the library files have updated version,
If so, it will ask whether you need to update (y/n),
So, you've successfully for your 64 - bit systems installed the 32-bit support,



Two, and then you can install a 32-bit support,
Such as what I lack of library is libcurl - gnutls. So. 4 and libstdc++. So. 6, so execute the command
//install the library 
Sudo apt install libcurl4 gnutls - dev: i386
Sudo apt install libstdc++ 6: i386
//add library
//install directory is usually/usr/lib/i386 - Linux - gnu
Ln -s/usr/lib/i386 - - the gnu/Linux libcurl - gnutls. So. 4/home/Game/dstserver/bin/lib32 libcurl - gnutls. So. 4
Ln -s/usr/lib/i386 - - the gnu/Linux libstdc++. So. 6/home/Game/dstserver/bin/lib32 libstdc++. So. 6

After successful installation can perform other operations normally,

Note: this is the post four years ago, estimates the building already did not need to answer, I'm looking for the solution was found this post, was excited to think to find the same problems will have a solution, but is not disappointed, after several hours of searching information and successfully solve suddenly want to have a post, although the original poster has not been in use, but may help to others, so write here,
The
reference
reference: https://blog.csdn.net/mifangdebaise/article/details/44942395

  • Related