Duraace wrote:Hi, i'm new in this forum and i have a question:
I want to install GNU Radio 3.2.2 under YDL 6.2 on a PlayStation 3.
Therefore i need at least Python 2.5! But YDL 6.2 brings along only version 2.4.3 of Python.
Now my question: Is there an easy way to install Python 2.5 or higher on YDL 6.2? Is there already a compiled version fo Python 2.5 as rpm or similar?
Thanks for advice!
Hmm... I've not done it, I'll be the first to admit but I was about to suggest a parallel install, so as you don't hose YDL 6.2 if the newer python breaks critical scripts in it that require the default python. I would suggest heeding the great install guide on this board and not trying to use rpm repositories that the boys here do not recommend.
It looks like the python guys have thought about this probably very common 'need', though :
http://www.python.org/doc/2.6.4/install/index.html#alternate-installation-unix-the-prefix-schemeThe link is mainly about modules but it alludes to a separate install existing on /usr/local (YDLs python resides on /usr) so that must be the way most other people do it. I do not have a better link in my brief period of googling
I do not know enough about rpms to know if you can specify where they install to (my guess is probably not), so you are likely going to have to build from source... I suspect. That page could give you an idea on what to pass to configure. I believe you will build to /usr/local by default, the way the tools on YDL6.2 are set up but you can make doubly sure by passing --prefix. Then you build and install it, and I suspect it's then it's all a matter of letting your GNU Radio package know where your new python is. You may have to build that package from source too, if the rpm package does not know where your new python is or cannot be told where it is.
I just hope the new python you're building itself doesn't have any unmet dependencies as well.. ie I hope it doesn't ask for a new glibc for example. If it does... things... err... get a little bit more interesting.
If you're really paranoid like me (and that's probably not a bad thing
), you'll probably want to back your whole system up before trying it, just in case you cause irrecoverable chaos.
I find (re)installing YDL a bit tiresome, so I have a few 'images' of my system backed up. I usually just dd it onto an external usb drive. Yes, I have hosed my system a number of times!
Conveniently, my PS3 has a small HD, having snapshots like these allow you to wipe your onboard linux partitions out with little or no hesitation to try other distros or other partitioning patterns etc..., knowing that if you want a restore, you can just dd (and wait...) it back to just what you liked in the past. I put up the way I dd my HD recently here
http://www.yellowdog-board.com/viewtopic.php?f=5&t=6940&p=35180#p35180 - it is wasteful in that you dd the whole drive, yes, there are other ways, but this is probably more convenient in that you don't have to worry about repartitioning/reformatting the partitions when you restore.
So err.. sorry, yeah, I know I haven't given you an exact specific recipe, but I hope this helps
Cheers,
Rob