Need some help installing stuff please
-
- 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
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
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
Re: Need some help installing stuff please
CentOS uses yum, so this will probably work for 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.
Code: Select all
yum install python
"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.
Re: Need some help installing stuff please
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.
I tried update python but it says no update available.
Re: Need some help installing stuff please
I'll work on it tomorrow, thanks John.
Re: Need some help installing stuff please
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.
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.
Re: Need some help installing stuff please
Is the Gentoo 64 bit and do I get a GUI like CentOS? I might go with Ubuntu if not.
Re: Need some help installing stuff please
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
Ubuntu would probably be quicker
Re: Need some help installing stuff please
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?
Re: Need some help installing stuff please
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
Re: Need some help installing stuff please
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/
Re: Need some help installing stuff please
Sounds worth a try. Good luck!
Re: Need some help installing stuff please
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?
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?
Re: Need some help installing stuff please
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
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
Re: Need some help installing stuff please
Instead of typing ">", type ">". His post appears to have it converted to its HTML code equivalent.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?
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
Code: Select all
/opt/python2.7/lib
Re: Need some help installing stuff please
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
setuptools-0.6c11-py2.7.egg: line 3: exec: python2.7: not found