Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-23-2022, 05:53 PM
|
#1
|
LQ Newbie
Registered: Aug 2022
Location: Germany
Distribution: Slackware64 Stable 15.0
Posts: 20
Rep:
|
installing Minecraft on Slackware64 Current
this is my first post on here, this forum has helped me out a bunch as i started learning linux with slackware a few days ago, but now i've encountered a problem without any recent coverage anywhere.
i've been trying to run minecraft on my machine, as i mainly try and use it for gaming. i've installed the java jre according to the official howto.
on a side note, running slackpkg clean-system now constantly tries removing the newly installed jre. maybe someone could help with that, too.
the installation succeeded, running java -version yields
Code:
java version "1.8.0_341"
Java(TM) SE Runtime Environment (build 1.8.0_341-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.341-b10, mixed mode)
older posts referred to downloading the client jar from minecraft's website, which (thanks to Microsoft's wonderful changes to the game) is not offered anymore - i'm stuck with the tar gz from the official website.
extracting the content (a single file) and executing it in terminal with "./minecraft-launcher" only yields
Code:
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid
Aborted
it does create empty "/.minecraft/launcher" folders in my home directory though.
other than that the website only offers Debian, Arch and Snap packages. The first two obviously aren't viable, and from what i've understood messing with snap on slackware is too big of a hassle to be worth it. i hope someone can point me into the right direction.
|
|
|
08-23-2022, 06:20 PM
|
#2
|
Senior Member
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,434
|
Welcome GumiBear (used to love those candies)
First to avoid the proposal of removing a third-party package, use blacklist (or greylist ?) config file in /etc/slackpkg (check manpage).
Second, I'd rather try to convert Debian package than going snap way. Iirc SBo has a deb2tgz offered.
If I'm unclear do not hesitate to ask for further information.
Edit : maybe blacklist is a feature of slackpkgplus
Last edited by Tonus; 08-23-2022 at 06:22 PM.
|
|
1 members found this post helpful.
|
08-23-2022, 06:48 PM
|
#4
|
LQ Newbie
Registered: Aug 2022
Location: Germany
Distribution: Slackware64 Stable 15.0
Posts: 20
Original Poster
Rep:
|
thank you Tonus for the two ideas. editing the blacklist worked great, i totally forgot about that feature of slackpkg!
i tried using the deb2tgz tool which brought me a step closer - the game now shows up in my list of programs, but still doesn't do much. it launches the "minecraft-launcher" command, which again yields the same error as the tar.gz.
i will try red's solution tomorrow, thank you guys for the ideas and fast replies
|
|
|
08-23-2022, 07:00 PM
|
#5
|
Senior Member
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,884
|
Quote:
Originally Posted by GumiBear
thank you Tonus for the two ideas. editing the blacklist worked great, i totally forgot about that feature of slackpkg!
i tried using the deb2tgz tool which brought me a step closer - the game now shows up in my list of programs, but still doesn't do much. it launches the "minecraft-launcher" command, which again yields the same error as the tar.gz.
i will try red's solution tomorrow, thank you guys for the ideas and fast replies
|
Just make sure if you use the OpenJDK package that Reddog83 posted above that you remove the existing java package you have installed. You won't need both.
|
|
|
08-23-2022, 07:17 PM
|
#6
|
Member
Registered: May 2019
Posts: 265
Rep:
|
I made a fresh installation of Slackware 15 just last night, so I tried to install Minecraft just to see if the same was happening to me:
* I downloaded the launcher from this link: https://launcher.mojang.com/download/Minecraft.tar.gz
* I extracted the contents of it: tar xvf Minecraft.tar.gz
* I executed minecraft-launcher/minecraft-launcher
A window box appeared telling that the launcher was being updated. It finished updating and then launcher was showed correctly.
Which means that you probably messed up something because everything is working correctly.
Also remember that the game needs java but not launcher itself anymore.
When you execute the launcher and install a version of the Minecraft Java Version a java binary will be installed and that is the one used for the game, you no longer need to install an external java version. Once any game version is installed you can find the java binary here: .minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/bin/java
Just in case... Remember that the launcher is only for 64bit machines.
|
|
|
08-23-2022, 11:07 PM
|
#7
|
Senior Member
Registered: Oct 2009
Distribution: Slackware
Posts: 1,864
|
I forgot, does 15 ship with Wayland? I'm on current, and I'm still using X, but the launcher (looking at ldd minecraft-launcher) is hooking into it now.
ETA: looks like this is a known problem: https://bbs.archlinux.org/viewtopic.php?id=248209 Do you have a locale set?
Last edited by garpu; 08-23-2022 at 11:10 PM.
|
|
|
08-23-2022, 11:39 PM
|
#8
|
Member
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 527
|
Quote:
Originally Posted by garpu
I forgot, does 15 ship with Wayland?
|
It does; only Plasma uses it.
|
|
|
08-24-2022, 05:22 AM
|
#9
|
LQ Newbie
Registered: Aug 2022
Location: Germany
Distribution: Slackware64 Stable 15.0
Posts: 20
Original Poster
Rep:
|
Quote:
Just make sure if you use the OpenJDK package that Reddog83 posted above that you remove the existing java package you have installed. You won't need both.
|
thanks for the reminder. looks like messing with more jdks or jres won't help though, and as slac said, with modern versions of the game no external java libraries are needed.
Quote:
Just in case... Remember that the launcher is only for 64bit machines.
|
i'm on a 64bit system with multilib, a friend helped me with the setup.
apparently there are larger issues here, i have seen the posts that garpu referred to before i hit the hay.
they mention running the launcher with:
Code:
LC_ALL=C minecraft-launcher
i've only seen these solutions related to the arch installer, and since i'm fairly new to linux i'm not quite sure if this does apply to me, and if it does, how to pass these parameters (and what they do).
Quote:
Do you have a locale set?
|
could you please elaborate on that? i am using kde plasma, and i have set my keyboard layout, currency, time and date values according to my local standard (Germany).
running "locale" returns
Code:
LANG=en_DE.UTF-8
LC_CTYPE="en_DE.UTF-8"
LC_NUMERIC="en_DE.UTF-8"
LC_TIME="en_DE.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_DE.UTF-8"
LC_MESSAGES="en_DE.UTF-8"
LC_PAPER="en_DE.UTF-8"
LC_NAME="en_DE.UTF-8"
LC_ADDRESS="en_DE.UTF-8"
LC_TELEPHONE="en_DE.UTF-8"
LC_MEASUREMENT="en_DE.UTF-8"
LC_IDENTIFICATION="en_DE.UTF-8"
LC_ALL=
i would like to keep these overall settings as they suit my daily use best (english language with local values and metric system). specifying LC_ALL will overwrite the other values from what i've heard, can i set it temporarily to run the installer and leave the rest as-is?
Last edited by GumiBear; 08-24-2022 at 05:28 AM.
Reason: added output of locale command
|
|
|
08-24-2022, 05:56 AM
|
#10
|
LQ Newbie
Registered: Aug 2022
Location: Germany
Distribution: Slackware64 Stable 15.0
Posts: 20
Original Poster
Rep:
|
i did it!
a friend was able to give me a quick answer, running "LC_ALL=C ./minecraft_launcher" is indeed just a temporary change of the LC_ALL variable, and the game seems to be running now. thank you all for your patience, i hope i'll soon be able to contribute a bit to this place on my own
for anyone using the game from the tar.gz installer, after installing you can simply create a desktop shortcut with a file with the contents
Code:
#!/bin/bash
cd /home/yourname/.minecraft/launcher/
LC_ALL=C ./minecraft-launcher
name it something like "Minecraft", and make it executable (chmod +x /path/to/Minecraft)
Last edited by GumiBear; 08-24-2022 at 07:12 AM.
Reason: added instructions for creating a shortcut
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 05:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|