MCCTeam / Minecraft-Console-Client

Lightweight console for Minecraft chat and automated scripts
https://mccteam.github.io
Other
1.67k stars 402 forks source link

[BUG] When trying to launch the program built from the source code on ubuntu 20.04 it gives me an error: "-bash: ./MinecraftClient: cannot execute binary file: Exec format error" #2689

Closed obvGamer closed 8 months ago

obvGamer commented 8 months ago

Prerequisites

Minecraft Version

1.19.3

Console Client Version

latest

Expected Behavior

I expect the console client to run perfectly

Actual Behavior

it gives me the error "-bash: ./MinecraftClient: cannot execute binary file: Exec format error". I've tried chmod + MinecraftClient but it still doesnt work

Steps to Reproduce the bug

  1. build from src code using git on ubuntu 20.04

Attach screenshot here (If applicable)

No response

Anythings that could help diagnosing the bug

No response

Device

VPS

Operating System

Linux

Server Address (If applicable)

No response

ReinforceZwei commented 8 months ago

what is your build arguments and your cpu architecture?

Tienkut commented 8 months ago

obvgamer lamf cah nao de tui nhan tin cho ban tui can bangiup

breadbyte commented 8 months ago

If you just want to run MCC without building from source, simply download the linux version on the releases page.

If you wish to build from source however, please run the following command instead:

dotnet publish MinecraftClient -f net7.0 -r linux-x64 --no-self-contained -c Release -p:UseAppHost=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=None