Problems downloading the Cuberite precompiled S/W
#1
I hope thisis the correct forum to ask the question, i fnot , please tell me so.

My grandson wants to run Minecraft server on his Raspberry Pi 2. I am retired from the computer industry, and his father has not a clue, so Pops has been drafted to help him.

I have visited the Cuberite,org website to download the Pi version of the server on to my Windows 7 Professional 64 bit system. Each time I click on the Download button, I get the pop-up window to Save the file or open it with an application, but before I can click SAVE File and tell Firefox to save it in the downloads folder, another window pops up behind the save window with the following:

C:\Users\...l\Temp\WJQBj2mf.gz.part could not be saved, because the source file could not be read.
Try again later, or contact the server administrator.
So I thought I'd try to D/L the Windows 64bit version, but got the same error.

Someone plase tell me what I'm doing wrong, or verify there is a problem with the site before Pops tears out what little hair he has left.
Thank you.
Jimmy Thompson - joshpops
Reply
Thanks given by:
#2
Ditto. Same issue, but using Linux Mint 17.2 Cinnamon.
Sad face. Just received the Pi in the mail, with time off from work to set this up. Now I am being forced to have quality family time. Argh.
Reply
Thanks given by:
#3
(07-24-2015, 04:37 AM)joshpops Wrote: I hope thisis the correct forum to ask the question, i fnot , please tell me so.

My grandson wants to run Minecraft server on his Raspberry Pi 2. I am retired from the computer industry, and his father has not a clue, so Pops has been drafted to help him.

I have visited the Cuberite,org website to download the Pi version of the server on to my Windows 7 Professional 64 bit system. Each time I click on the Download button, I get the pop-up window to Save the file or open it with an application, but before I can click SAVE File and tell Firefox to save it in the downloads folder, another window pops up behind the save window with the following:

C:\Users\...l\Temp\WJQBj2mf.gz.part could not be saved, because the source file could not be read.
Try again later, or contact the server administrator.
So I thought I'd try to D/L the Windows 64bit version, but got the same error.

Someone plase tell me what I'm doing wrong, or verify there is a problem with the site before Pops tears out what little hair he has left.
Thank you.
Jimmy Thompson - joshpops

Thought I'd take another approach:
went to http://builds.cuberite.org/job/Cuberite%...ableBuild/
and clicked on the Cuberite.tar.gz to download that file and got the same result.
Either I'm doing something wrong, or this website is broken.
Help
Reply
Thanks given by:
#4
Have/Had the same issues. Though on an RPi-B1. The archive is broken, it contains \0 values in or after the file list.

You can get the source from github and build it yourself. Which is probably not a bad idea for the Raspberry anyway.

On Raspbian, you may run into the same issue as me, since the gcc dependency is not properly checked. Cuberite has CLI flags that seem to require a gcc version > 4.6, so you need to install a newer version (4.8 ideally)

Here's a condensed version of what I did to get my cuberite server:

Code:
# Need to be root, otherwise prepend everything with sudo
sudo -i

# Get dependencies
aptitude install screen cmake g++-4.8 gcc-4.8 git

# if you already have a gcc/g++/cc installed, alter for your versions, you
# should get the meaning
# Skip this if you only have gcc 4.8+
update-alternatives --list gcc
update-alternatives --list g++
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 100
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 460
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 480
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 480
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 480
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 460
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 460
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 480
update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.6 460
update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.8 480
# check proper versions are used
gcc --version
g++ --version
cc --version
# should report 4.8

# Create a new user for minecraft (please REALLY do this)
useradd -m minecraft
passwd minecraft
Connect as minecraft to your Pi:
Code:
# Login as minecraft
# Compiling will take some time on the Pi, best do it in screen
screen

# Do everything in a subdirectory
mkdir cuberite && cd cuberite
# Get install script
wget https://raw.githubusercontent.com/cuberite/cuberite/master/compile.sh
# (DO NOT get easy_install, this only tries to download the broken zip)
./compile.sh
# Wait for it, grab lunch, drink some beers, etc. Though the Pi2 is probably a lot faster

# Now go into the actual server directory
cd MCServer/MCSserver
# Set a password for the webadmin interface
nano webadmin.ini
# Now you can run the server
./MCServer
Reply
Thanks given by:
#5
It looks like something is wrong with the build server. :|
Reply
Thanks given by:
#6
(07-24-2015, 05:53 AM)e14 Wrote: Have/Had the same issues. Though on an RPi-B1. The archive is broken, it contains \0 values in or after the file list.

You can get the source from github and build it yourself. Which is probably not a bad idea for the Raspberry anyway.

On Raspbian, you may run into the same issue as me, since the gcc dependency is not properly checked. Cuberite has CLI flags that seem to require a gcc version > 4.6, so you need to install a newer version (4.8 ideally)

Here's a condensed version of what I did to get my cuberite server:

Code:
# Need to be root, otherwise prepend everything with sudo
sudo -i

# Get dependencies
aptitude install screen cmake g++-4.8 gcc-4.8 git

# if you already have a gcc/g++/cc installed, alter for your versions, you
# should get the meaning
# Skip this if you only have gcc 4.8+
update-alternatives --list gcc
update-alternatives --list g++
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 100
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 460
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 480
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 480
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 480
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 460
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 460
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 480
update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.6 460
update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.8 480
# check proper versions are used
gcc --version
g++ --version
cc --version
# should report 4.8

# Create a new user for minecraft (please REALLY do this)
useradd -m minecraft
passwd minecraft
Connect as minecraft to your Pi:
Code:
# Login as minecraft
# Compiling will take some time on the Pi, best do it in screen
screen

# Do everything in a subdirectory
mkdir cuberite && cd cuberite
# Get install script
wget https://raw.githubusercontent.com/cuberite/cuberite/master/compile.sh
# (DO NOT get easy_install, this only tries to download the broken zip)
./compile.sh
# Wait for it, grab lunch, drink some beers, etc. Though the Pi2 is probably a lot faster

# Now go into the actual server directory
cd MCServer/MCSserver
# Set a password for the webadmin interface
nano webadmin.ini
# Now you can run the server
./MCServer
What is the URL/Linux command to retrieve the source code? The Github descriptions are not very clear, at least to me.
Reply
Thanks given by:
#7
You need "git" to download the source code; it should be available either out of the box, or can be installed using your platform's package manager.
These commands will set up the complete source repository:
Code:
mkdir cuberite
cd cuberite
git clone https://github.com/cuberite/cuberite.git .
git submodule update --init

To compile, you need gcc at least version 4.8 or clang at least version 3.0, install those using your platform's package manager and make them the default compiler, using the update-alternatives command. You will need cmake, too, also available in your package manager.
This will compile the server (assuming you're in the previously created cuberite folder):
Code:
mkdir Release
cd Release
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 4
Note that the last command, the actual compilation, may take a lot of time - it takes over an hour on my RasPi1 (which has only one core, though)
Reply
Thanks given by:
#8
Thanks, Xoft for your reply. I finally did see the previuos instructions after scrolling down the code. The eyes don't seem to connect with the brain much anymore.

I did do the compile on my Pi 2 and the whole process took about 25 minutes give or take a minute or two, so the Pi 2 is significantly faster than the Pi 1, although the memory size had a lot to do with that. Before I retired and mainframes were common, I did performance analysis on customer mainframes, developed models for them to run and decide what types of upgrades would make sense. In about 85% of the contracts we did, increasing the memory capacity turned out to be the greatest overall system performance boost. The CPU was next with higher speed rotating memory next.

It would be interesting to see what would happen if the Pi 1 had 1G memory. Maybe there may be a way to disable 3 cores in the Pi 2 to test - assuming the cores are roughly the same between the Pi1 and 2. I'm now curious but that's a project in the future.
Reply
Thanks given by:
#9
That would be rather easy to test. Just run the "make" without the "-j 4" parameters, that will make use of only a single core for compilation.
Reply
Thanks given by:
#10
If anyone needs Windows builds:
Win32:
https://mega.co.nz/#!YZwThAZY!fJht4H-GIt...36YpJf4bSI
Win64:
https://mega.co.nz/#!8ZIVha4K!phGfXPSFpZ...jU2QFTK7qc
Revision:
7cb981443e3709268d32fa2ea286f37708f07d82
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)