Installing Python 2.5 on QNAP TS-859

Hardware: QNAP TS-859 with 8 1TB Seagate drives running RAID5 + hot spare.
Firmware: 3.2.7 Build 0526T

In the management web interface, I went to “Applications”, then “QPKG Plugins”. I then clicked the “Get QPKG” button to retrieve the proper Python package for the hardware. Unzipped it.

Attempted the install via the “Installation” tab in the web interface. It got to about 20% completion, then failed. The log was less than helpful:

Python 2.5.2 has been installed in /share/MD0_DATA/.qpkg/Python.

Attempted again. Failed again at the same spot. The log said:

Python 2.5.2 installation failed. /share/MD0_DATA/.qpkg/Python existed. Please remove it first.

After a bit of googling, I found this page, which suggested I SSH into the device as admin, and delete the directory due to some permissions problems.

[~] # cd /share/MD0_DATA/.qpkg/
[/share/MD0_DATA/.qpkg] # rm -rf Python/

I then attempted the install via the web interface one more time. It said it was successful… but just to be sure…

[/share/MD0_DATA] # which python
/usr/bin/python
[/share/MD0_DATA] # python
Python 2.5.2 (r252:60911, Jul 25 2008, 01:52:53)
[GCC 4.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

Victory.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s