How do I install python?


RockDawg

Recommended Posts

I have a python script I want to run via cron on my unraid server.  I don't know much of anything about Linux, but I remember a tiny bit from some of the unRaid addons I've used in the past. 

 

I have downloaded Python-2.6.4.tgz.tar.  If I remember correctly, I need to put a line in my go file that installs this on every boot using the installpkg command.  But doesn't it need to be just a .tgz file and not a compressed .tar file though?  How do I decompress it?

 

Also, are there any other packages or steps I need to make this work? 

Link to comment

I have downloaded Python-2.6.4.tgz.tar.

 

You don't need that. That's probably the source code.

 

Just get the slackware package:

ftp://slackware.osuosl.org/pub/slackware/slackware-current/slackware/d/python-2.6.4-i486-1.txz

 

You install it with:

installpkg  /path-to-where-you-put-the-package/python-2.6.4-i486-1.txz

 

If you want that to be automatically installed upon reboot,

then put the above lines at the end of your 'go' script.

(located in the  config  folder on your flash key)

 

 

Link to comment

Thanks.  That seemed to work.  When I tried to run the script, I got the following message:

 

ImportError: libsqlite3.so.0: cannot open shared object file: No such file or directory

 

How do I go about that?

 

Apparently, your script also needs sqlite.  So, same as with the other package...

 

ftp://slackware.osuosl.org/pub/slackware/slackware-current/slackware/ap/sqlite-3.6.14.2-i486-1.txz

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.