Jump to content
RockDawg

How do I install python?

6 posts in this topic Last Reply

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? 

Share this post


Link to post

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)

 

 

Share this post


Link to post

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

 

I assume that means I need to install that library.  How do I go about that?

Share this post


Link to post

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

 

 

Share this post


Link to post

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.