Need some help installing stuff please

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Jul 07, 2008 1:47 pm

Need some help installing stuff please

Post by j0rd0n420 »

I need to install:
Python 2.6 or 2.7 http://python.org/download/
PIL (Python Imaging Library) http://www.pythonware.com/products/pil/
Numpy http://scipy.org/Download

I'm hoping there's just a command I could use in the terminal to download and install. Also maybe a command to see if I have them already. This is on CentOS 5.5. I tried to find out on my own for a while, but my GoogleFU is terrible I guess. And if anyone's curious I'm trying to get this setup: https://github.com/brownan/Minecraft-Overviewer
User avatar
Edge100x
Founder
Founder
Posts: 12957
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Need some help installing stuff please

Post by Edge100x »

CentOS uses yum, so this will probably work for Python:

Code: Select all

yum install python
Googling "centos yum python pil" turns up this, which might help you for installing PIL: http://packetcloud.net/2008/09/30/insta ... os-x86_64/

"yum install python-numpy" is worth a try too; if that doesn't work, it looks like you can use the repo mentioned here: http://www.scipy.org/Installing_SciPy/L ... 015abd8529. They lay out the instructions on how to do that, as well.
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Need some help installing stuff please

Post by j0rd0n420 »

yum install python says it's installed already, but it says it's package python-2.4.3-27.el5.x86_64
I tried update python but it says no update available.
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Need some help installing stuff please

Post by j0rd0n420 »

I'll work on it tomorrow, thanks John.
User avatar
Edge100x
Founder
Founder
Posts: 12957
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Need some help installing stuff please

Post by Edge100x »

CentOS (well, RHEL) does tend to be very conservative when it comes to packages, running old versions of most things and just applying security updates. For more cutting edge things -- and by that, I mean anything in the last few years -- I'd recommend Ubuntu or Gentoo over it.

There's likely a CentOS-compatible RPM of a later version of Python floating around, but you may have to do a little digging for it.
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Need some help installing stuff please

Post by j0rd0n420 »

Is the Gentoo 64 bit and do I get a GUI like CentOS? I might go with Ubuntu if not.
User avatar
Edge100x
Founder
Founder
Posts: 12957
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Need some help installing stuff please

Post by Edge100x »

The Gentoo autoinstall is 32-bit, but you could use the DVD to install the 64-bit version by hand, if you'd like. It doesn't include a graphical desktop by default, but you could install that with Portage.

Ubuntu would probably be quicker :)
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Need some help installing stuff please

Post by j0rd0n420 »

I'll probably do that late tonight when no one is on the server. It uses something other than yum though right, like apt-get or something?
User avatar
Edge100x
Founder
Founder
Posts: 12957
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Need some help installing stuff please

Post by Edge100x »

Yes, Ubuntu uses aptitude, which is similar in many ways to yum. To install desktop stuff, you'd just need to use these two commands:

Code: Select all

apt-get update
apt-get install ubuntu-desktop
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Need some help installing stuff please

Post by j0rd0n420 »

I might do that, but I'm making some headway with python 2.7 on CentOS 5.5 by doing an 'alt-install' so that it doesn't break CentOS. I'm in middle of following this guide: http://villaroad.com/2010/10/rolling-py ... entos-5-3/
User avatar
Edge100x
Founder
Founder
Posts: 12957
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Need some help installing stuff please

Post by Edge100x »

Sounds worth a try. Good luck!
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Need some help installing stuff please

Post by j0rd0n420 »

http://villaroad.com/2010/10/rolling-py ... entos-5-3/

Following this guide everything goes fine until I hit Step 8 line 3, it than spits this error at me: bash: syntax error near unexpected token `&'

I'm unsure if lines 3 and 4 are suppose to be entered at the same time (either way I get that error). Anyone have a clue and can help me maybe?
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Need some help installing stuff please

Post by j0rd0n420 »

Could it be I'm editing the .bash_profile's wrong?
Here's how I have them:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs
alias python='/opt/python2.7/bin/python'
alias python2.7='/opt/python2.7/bin/python'
PATH=$PATH:$HOME/bin:/opt/python2.7/bin

export PATH
User avatar
Edge100x
Founder
Founder
Posts: 12957
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Need some help installing stuff please

Post by Edge100x »

j0rd0n420 wrote:http://villaroad.com/2010/10/rolling-py ... entos-5-3/

Following this guide everything goes fine until I hit Step 8 line 3, it than spits this error at me: bash: syntax error near unexpected token `&'

I'm unsure if lines 3 and 4 are suppose to be entered at the same time (either way I get that error). Anyone have a clue and can help me maybe?
Instead of typing ">", type ">". His post appears to have it converted to its HTML code equivalent.

3 and 4 are actually two lines. He says "don’t actually type –> below. It is just to show that you are on a new line" above. By this, he means to type:

Code: Select all

cat >> /etc/ld.so.conf.d/opt-python2.7.conf
Then, into the blank, type:

Code: Select all

/opt/python2.7/lib
Followed by 'enter' and then 'ctrl+d'.
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Need some help installing stuff please

Post by j0rd0n420 »

Thanks! But now I have a new problem, step 9 line 2 spits out this error:
setuptools-0.6c11-py2.7.egg: line 3: exec: python2.7: not found

:(
Post Reply