chorbintime / LPS-readme

Fully up-to-date version of the Lunapixel ReadME file. Not meant for use outside of LPS modpacks.
2 stars 0 forks source link

Can't Launch on Mac, missing GLIBC? #1

Open Karsten385 opened 2 months ago

Karsten385 commented 2 months ago

Not sure what any of this means, but i appear to be missing a certain file or something. Trying to launch on an M1 Mac running MacOS Sonoma 14.5. Followed the instructions on the Wiki, got this in my console:

karsten@MBP-2020 ~ % cd /Users/karsten/ServerModpack/BMC4_FORGE_1.20.1_Server_Pack_v30.5
karsten@MBP-2020 BMC4_FORGE_1.20.1_Server_Pack_v30.5 % chmod +x ./start.sh
karsten@MBP-2020 BMC4_FORGE_1.20.1_Server_Pack_v30.5 % ./start.sh

Start script generated by ServerPackCreator 6.2.0.
To change the launch settings of this server, such as JVM args / flags, Minecraft version, modloader version etc., edit the variables.txt-file.
No suitable Java installation was found on your system. Proceeding to Java installation.
install_java.sh: line 70: ldd: command not found
Jabba only supports systems with glibc 2.32 & 2.34 onward. You have . Automated Java installation can not proceed.
DO NOT ATTEMPT TO UPDATE OR UPGRADE YOUR INSTALLED VERSION OF GLIBC! DOING SO MAY CORRUPT YOUR ENTIRE SYSTEM!
Instead, consider upgrading to a newer version of your OS. Example: In case of Ubuntu 20 LTS, consider upgrading to 22 LTS or 24 LTS.

Would appreciate any input!

Griefed commented 2 months ago

Heyo,

the creator of the app used in the creation of the server pack, and therefor the scripts, here.

Please try commenting out the following lines in your install_java.sh-script:

GBLIC_VERSION=$(ldd --version | awk '/ldd/{print $NF}')
IFS="." read -ra GBLIC_SEMANTICS <<<"${GBLIC_VERSION}"

# Older Linux systems aren't supported, sadly. This mainly affects Ubuntu 20 and Linux distributions from around that time
# which use glibc versions older than 2.32 & 2.34.
if [[ ${GBLIC_SEMANTICS[1]} -lt 32 ]];then
  echo "Jabba only supports systems with glibc 2.32 & 2.34 onward. You have $GBLIC_VERSION. Automated Java installation can not proceed."
  echo "DO NOT ATTEMPT TO UPDATE OR UPGRADE YOUR INSTALLED VERSION OF GLIBC! DOING SO MAY CORRUPT YOUR ENTIRE SYSTEM!"
  echo "Instead, consider upgrading to a newer version of your OS. Example: In case of Ubuntu 20 LTS, consider upgrading to 22 LTS or 24 LTS."
  exit 1
fi

so they become

#GBLIC_VERSION=$(ldd --version | awk '/ldd/{print $NF}')
#IFS="." read -ra GBLIC_SEMANTICS <<<"${GBLIC_VERSION}"
#
# Older Linux systems aren't supported, sadly. This mainly affects Ubuntu 20 and Linux distributions from around that time
# which use glibc versions older than 2.32 & 2.34.
#if [[ ${GBLIC_SEMANTICS[1]} -lt 32 ]];then
#  echo "Jabba only supports systems with glibc 2.32 & 2.34 onward. You have $GBLIC_VERSION. Automated Java installation can not proceed."
#  echo "DO NOT ATTEMPT TO UPDATE OR UPGRADE YOUR INSTALLED VERSION OF GLIBC! DOING SO MAY CORRUPT YOUR ENTIRE SYSTEM!"
#  echo "Instead, consider upgrading to a newer version of your OS. Example: In case of Ubuntu 20 LTS, consider upgrading to 22 LTS or 24 LTS."
#  exit 1
#fi

As per install_java.sh: line 70: ldd: command not found, MacOS doesn't have the ldd command. This edit is not a guarantee for the script to then start working, but it is at least worth a try. Unfortunately, I can't test Mx Macs, only Intel.

Cheers, Griefed