linux下无root 安装activepython

1、下载ActivePython-2.7.8.10-linux-x86_64.tar.gz 包

2、进入非root用户,如bdc用户,解压

[bdc@svr001 python]$ tar  -zxvf  ActivePython-2.7.8.10-linux-x86_64.tar.gz

解压得到ActivePython-2.7.8.10-linux-x86_64 目录

3、进入ActivePython-2.7.8.10-linux-x86_64目录

[bdc@svr001 python]$ cd ActivePython-2.7.8.10-linux-x86_64
[bdc@svr001
ActivePython-2.7.8.10-linux-x86_64]$ ll
总用量 52
drwxrwxr-x. 7 bdc bdc 
4096  7月  3 2014 INSTALLDIR
-rw-rw-r--. 1 bdc bdc 14306  7月  3 2014
_install.py
-rwxr-xr-x. 1 bdc bdc   373  7月  3 2014 install.sh
-rwxrwxr-x.
1 bdc bdc 16060  7月  3 2014 sh2.py
-rw-rw-r--. 1 bdc bdc 10229  1月 24 13:18
sh2.pyc

4、查看_install.py 文件

[bdc@svr001 ActivePython-2.7.8.10-linux-x86_64]$ more 
_install.py
#!/usr/bin/env python
# Copyright (c) 2003-2014 ActiveState
Software Inc.

#
#********************************************************************
#
WARNING: Do not run this script directly. Run the main
"./install.sh"
#          which will launch this script
properly.
#********************************************************************

"""
    ./install.sh - ActivePython install
script

Usage:
        ./install.sh
[options...]

General Options:
        -h, --help          print
this help and exit
        -v, --verbose       verbose output

-I, --install-dir <dir>     specify install
directory

When called without arguments this script will
interactively install
    ActivePython. If the install dir is specified then
ActivePython will
    be installed without
interaction.

5、用 -I 或--install-dir 参数可安装到指定目录

[bdc@svr001 ActivePython-2.7.8.10-linux-x86_64]$ ./install.sh  -I
/opt/aspire/product/bdc/python/python27.8.10
Installing ActivePython to
'/opt/aspire/product/bdc/python/python27.8.10'...
Relocating dir-dependent
files...
Pre-compiling .py files in the standard library...

ActivePython has been successfully installed to:

/opt/aspire/product/bdc/python/python27.8.10
   
You can add the
following to your .bashrc (or equivalent)
to put ActivePython on your
PATH:

export PATH=/opt/aspire/product/bdc/python/python27.8.10/bin:$PATH

The documentation is available here:

/opt/aspire/product/bdc/python/python27.8.10/doc/python2.7/index.html
   
web: http://docs.activestate.com/activepython/2.7

Please send us any feedback you might have or log bugs here:

activepython-feedback@ActiveState.com
   
http://bugs.activestate.com/ActivePython/

Thank you for using ActivePython.

6、加入环境变量

将以下语句加入到bdc用户的 .bash_prorfile环境变量中,并执行..bash_prorfile生效。

export
PATH=/opt/aspire/product/bdc/python/python27.8.10/bin:$PATH

linux下无root 安装activepython到指定目录的更多相关文章

  1. linux下无root源码安装软件

    先进入源码文件夹下指定安装路径 ./configure --prefix=/public/home/ztu/usr/samtools 编译 make 安装 make install 写入环境变量 vi ...

  2. Linux下非root用户如何安装软件

    Linux下非root用户如何安装软件 从windows转移到Linux的用户最开始总会有各种不适,因为这种不适最终放弃linux的不在少数.对于这类人只能说可惜,还没有领略到linux的美好就过早放 ...

  3. [转载]Linux下非root用户如何安装软件

    [转载]Linux下非root用户如何安装软件 来源:https://tlanyan.me/work-with-linux-without-root-permission/ 这是本人遇到的实际问题,之 ...

  4. linux下subversion server安装手册

    linux下subversion server安装手册 安装基于的Linux版本为:Red Hat Enterprise Linux Server release 6.3. 一 准备需要的安装包. ( ...

  5. 细说Linux下软件包的安装与管理

    一 源码安装方式      由于linux操作系统开放源代码,因而在其上安装的软件大部分也都是开源软件,例如apache.tomcat.php等软件.开源软件基本都提供源码下载,源码安装的方式:源码安 ...

  6. Linux下Qt的安装与配置

    参考资料:http://www.cnblogs.com/emouse/archive/2013/01/28/2880142.html Linux 下编译.安装.配置 QT 下载qt 这里用的是4.7. ...

  7. Memcahce(MC)系列(两)Linux下一个Memcache安装

    Linux下一个memcache安装 memcache是高性能.分布式的内存对象缓存系统,用于在动态应用中降低数据库负载.提升訪问速度.眼下用memcache解决互联网上的大用户读取是很流行的一种使用 ...

  8. Linux下Jdk的安装和jdk环境变量的设置

    我们在Linux下安装系统软件的时候,经常遇到一些系统环境变量配置的问题.什么是环境变量?如何定制环境变量?我将在下面做一些介绍.一.什么是环境变量?Linux是一个多用户的操作系统.多用户意味着每个 ...

  9. Linux下zoopkeeper的安装和启动

    Linux下zoopkeeper的安装和启动 1.什么是zookeeper ZooKeeper是一个分布式的,开放源码的分布式应用程序协调服务,是Google的Chubby一个开源的实现,是Hadoo ...

随机推荐

  1. sql server自定义排序

    方法一: 比如需要对SQL表中的字段NAME进行如下的排序:张三(Z)李四(L)王五(W)赵六(Z) 按照sql中的默认排序规则,根据字母顺序(a~z)排,结果为:李四  王五 赵六 张三 自定义排序 ...

  2. Java-idea-mybatis plugin插件使用

    方案一.免费插件[推荐] Free Mybatis plugin 方案二.破解插件 安装路径 File→Setting→plugin→Install  plugin 搜索需要插件即可 搜索Mybati ...

  3. #学号 20175201张驰 《Java程序设计》第1周学习总结

    教材学习内容总结 第一章 ·第一章的内容相对简单,我并未遇到大的困难. ·1.Java特点:语法简单.面向对象.与平台无关.动态. ·2.关于编写源文件:源文件名字必须与public类的名字相同:保存 ...

  4. form提交所有数据

    HTML: <div class="panel"> <div class="panel-body"> <h3>完善简历< ...

  5. fcrackzip (zip密码破解工具)

    现在做一个例子,首先生成一个带有密码的zip的包 zip -P hujhh test.zip test1.txt test2,txt 可以看到密码是5位的纯字母 现在就用我们的这个软件开始破解 fcr ...

  6. GALV_maptravel研究分析(1)

    强大的地图传送式插件~~ 我以自带demo进行分析,本篇地图Init setting map 1.---------------------------------- 实例 创建地图 Galv.MAP ...

  7. 视图模型-Lambda表达式

    EF中通过改变实体对象达到操作数据库表数据的目的,在对数据库实体操作时,肯定少不了和Linq.Lambda打交道,熟悉SQL的话,上手 Linq并不难,from in where select... ...

  8. flask框架----信号

    一.实例化补充 instance_path和instance_relative_config是配合来用的.这两个参数是用来找配置文件的,当用app.config.from_pyfile('settin ...

  9. 盒子布局、标签特性display、浮动、定位position

    盒子模型布局: 盒子模型:每个标签都是一个盒子 盒子在页面显示在大小是:自身宽度+边框+边距(内边框+外边距) 如果一个盒子设置了边框,则边框需要被加两遍.若果设置了边距则内外边距根据设置情况要被加两 ...

  10. Docker Macvlan 应用部署

    Docker Macvlan 应用部署 MacVLAN有两种桥接模式 Bridge模式:不创建子接口的情况下直接去桥接物理接口.直接桥接到与宿主级的同网段. VLAN Bridge模式:创建子接口去桥 ...