forked from overviewer/Minecraft-Overviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
CentOS 5 Install
willluongo edited this page Aug 18, 2011
·
12 revisions
CentOS 5 requires python 2.4 in order for the package manager (yum) to function. Here is a solution to installing python 2.6 along side it with the required libraries, PIL and NumPy.
- Make sure you have a compiler installed:
yum groupinstall 'Development Tools' - Download the source for python 2.6.7
wget http://www.python.org/ftp/python/2.6.7/Python-2.6.7.tar.bz2 - Extract it
tar xjfv Python-2.6.7.tar.bz2 - Change into the new source directory
cd Python-2.6.7 - Configure it to coincide with system python (EXTREMELY IMPORTANT) ./configure --prefix=/opt
- Compile it and install it
make && make install - In another directory, download PIL
wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz - Extract it
tar xzfv Imaging-1.1.7.tar.gz - Enter the new source directory
cd Imaging-1.1.7 - Using the 2.6 binary in opt, build PIL
/opt/bin/python setup.py build_ext -i - Test it too (optional but recommended)
/opt/bin/python selftest.py - Copy over the libraries so you can compile OverViewer
/usr/local/src/Imaging-1.1.7/libImaging/* /opt/include/python2.6/ - Install PIL
/opt/bin/python setup.py install - In another directory, download the source for numpy
svn co http://svn.scipy.org/svn/numpy/trunk numpy - Change directories to the source
cd numpy/ - Using the 2.6 binary build numpy
/opt/bin/python setup.py build - And install it
/opt/bin/python setup.py install - In another directory, download Overviewer
git clone git://github.com/brownan/Minecraft-Overviewer.git - Change to that directory
cd Minecraft-Overviewer/ - Replace the first line of overviewer.py with:
#!/usr/bin/env python26 - Copy terrain.png to your Minecraft-Overviewer directory
- Compile the c module for overviewer, again with 2.6 binary
/opt/bin/python setup.py build - Make sure your server isn't running and enjoy
./overviewer.py ../$WORLDFOLDER $DESTFOLDER
- Follow the instructions on this page on installing Python 2.6: Python 2.6 on Centos 5.x
- Install the following packages:
yum install python26-imaging python26-devel - Make sure you have a compiler installed:
yum groupinstall 'Development Tools' - Download NumPy source:
svn co http://svn.scipy.org/svn/numpy/trunk numpy - Enter the numpy folder:
cd numpy - Build numpy:
python26 setup.py build - Install numpy:
python26 setup.py install - Replace the first line of overviewer.py with:
#!/usr/bin/env python26
I have not tried this myself, but if you want to avoid compiling numpy yourself, there is an rpm that I have found:
wget http://download.opensuse.org/repositories/home:/ashigabou/CentOS_5/x86_64/python-numpy-1.2.0-1.4.x86_64.rpmrpm -ivh python-numpy-1.2.0-1.4.x86_64.rpm
- Install the following packages:
yum install python26-imaging-devel - Copy the Imaging headers into the python2.6 include folder:
cp /usr/include/python2.6/Imaging/* /usr/include/python2.6/ - Build the modules:
python26 setup.py build
-
I receive
OSError: [Errno 13] Permission deniederror when I run Overviewer!- Run this
ls -l /dev/ | grep shm - If you see
drwxr-xr-xinstead ofdrwxrwxrwxthen you have two options.- Run overviewer as a single process with
-p 1, or - Have your server administrator update the fstab.
- Run overviewer as a single process with
- Run this
-
I have other issues
- Every other issue that I've come across is mentioned in the documentation in README.rst
-
Overviewer reports a syntax error
- Make sure you're using the right version of python. Specifically, either follow step #8 above ("Replace the first line of overviewer.py..."), or make sure that you're using "python26 overviewer.py ..." and _not _"python overviewer.py ..."