Install Python on Linux without Root Permission
2015-05-04 14:20
302 查看
You don't need root but you do need write privledges to a dir. This will most likely be your homedir and so I use ~ in these docs. They're running redhat linux 6.2 on intel. Read the README doc in the root of the tarball for more detailed info. Get python http://python.org (I used the lynx browser to get it) Download Python-2.2.tgz to your homedir or somewhere like that and extract to Python-2.2 with the commands: tar zxf Python-2.2.tgz cd Python-2.2 Next, type this command to configure options for your system ./configure Normally you'd type 'make' in the root of Python-2.2 but if you run make now you'll probably have some problems because this will attempt to install everything in /usr/local/. These instructions are modified so that python is installed into your home directory. make altinstall prefix=~ exec-prefix=~ 'prefix=~' installs all platform-independent files in ~/lib and 'exec-prefix=~' installs all binary and other platform-specific files in ~/bin This installs the same set of files as "make install" except it doesn't create the hard link to "python<version>" named "python" and it doesn't install the manual page at all. I create a link in ~/bin with ln -s python2.2 python And since my system has python 1.5.2 in /usr/bin, in my .bashrc I short-circuit that with alias python='~/bin/python' hope this helps out some newbies.
相关文章推荐
- A very cool thing: Install MYSQL from source without root access on LINUX
- install texlive without root privileges (linux)
- Install 11.2.0.3(RAC) Grid Infrastructure on linux x86-64, run root.sh on second node failed 失败一列
- How can I install mySQL on CentOS without being root/su?
- How to Install Python 3.5.2 on Ubuntu & Linuxmint
- Install Theano in Linux without root authority (sodu)
- How to Install Python 2.7.13 on Ubuntu & LinuxMint
- How to Install Python on Linux
- How to Install VIM without ROOT Permission
- Install Rouge and Pyrouge for python 2.7 (conda virtual env) on Linux 64
- Install Theano in Linux without root authority (sodu)
- Cannot install ubuntu or other linux flavours on citrix Xen server
- Install Python 3.3.2 on Ubuntu 12.04
- Install ntop on Red Hat Enterprise Linux / CentOS Linux
- How to install eclipse on linux
- 【buildroot-2011.11】You may have to install 'g++' on your build machine
- Oracle 11gR2 RAC Install – cleaning up a failed install on Linux
- install IE 7 on Linux with wine
- How To Install Linux, Nginx, MySQL, PHP (LEMP) Stack on Debian 7
- How to Setup Rsync without password with SSH on UNIX / Linux?