DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-04-02 11:12:13

tinybilbo
Member
Registered: 2011-04-02
Posts: 36

How do I install python 2.6 or higher on debian lenny-for couchpotato

Hi,

I've just got a DNS-323, and am still playing with it to learn what it can do.
There seem to quite a few different options as how to hack it.
I have settled on installing Debian (upgraded to Lenny),
simply because a full Linux install seemed to be the best way to go.
I have it running via the reloaded method over the latest Dlink beta firmware (not ALT-F).

I am merely familiar with Linux (but still noobish), rather than a total noob,
having built Xbmc, Mythtv, and Zoneminder boxes,
as well as hacking Tivo's and iPhones.
Normally a few days of googling sorts out my problems... (but not this time smile )

I want to run SabNZBd, Sickbeard, and Couchpotato.

I have managed to get SabNZBd running without much problem (this uses Python 2.5.x).

So I then reinstalled Debian Lenny (it's easier to get things going from a virgin install),
and started to try to run Couchpotato, (I'll worry about Sickbeard later).

Couchpotato requires Python 2.6+, and  "apt-get install python" installs python 2.5.x,
so I've been trying install Python-2.7.1.tgz using;

" ./configure"
"make"
"make install"

When I try to run couchpotato with;

"python2.7 CouchPotato.py -d" (from the couchpotato directory)

I get an error - That I have been having trouble dealing with;

Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site.py", line 553, in <module>
    main()
  File "/usr/local/lib/python2.7/site.py", line 535, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/local/lib/python2.7/site.py", line 268, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/local/lib/python2.7/site.py", line 243, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/local/lib/python2.7/site.py", line 233, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/usr/local/lib/python2.7/sysconfig.py", line 535, in get_config_var
    return get_config_vars().get(name)
  File "/usr/local/lib/python2.7/sysconfig.py", line 434, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File "/usr/local/lib/python2.7/sysconfig.py", line 287, in _init_posix
    raise IOError(msg)
IOError: invalid Python installation: unable to open /usr/local/lib/python2.7/config/Makefile (No such file or directory)

There is indeed no Makefile in the location in the final line...

When Googling the error - I find this answer/fix

http://www.gossamer-threads.com/lists/p … hon/889237

I found solution:
Py_NoSiteFlag = 1;
Py_FrozenFlag = 1;
Py_IgnoreEnvironmentFlag = 1;
Py_SetPythonHome("");
Py_SetProgramName("");

But I don't where to put these lines (if they even work).

Could someone who's more Linux-Able please help me on installing Python 2.7.1 properly.

Or maybe suggest a route to getting all three programs to work via a different method/platform/firmware.

Many Thanks

Offline

 

#2 2011-04-02 12:14:12

bjby
Member
Registered: 2009-02-22
Posts: 265

Re: How do I install python 2.6 or higher on debian lenny-for couchpotato

Lenny is really old and obsolete. I think it is way easier to upgrade to a newer distro instead of doing the compile from source stuff.

http://www.debian.org/releases/

Offline

 

#3 2011-04-02 13:34:42

tinybilbo
Member
Registered: 2011-04-02
Posts: 36

Re: How do I install python 2.6 or higher on debian lenny-for couchpotato

bjby, Thanks for the reply,

I'm not too familiar with debian, so did'nt realise that lenny was that old.

I used it because I wanted to stay with stock Dlink firmware to begin learning about the 323 with...
I will wipe my drives and flash Alt-F-0.1B7, so as to allow Debian Squeeze to be reloaded.

Then I'll crack on with trying to get stuff to install from source.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB