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. 019-并发编程-java.util.concurrent之-Semaphore 信号量

    一.概述 Semaphore是一个计数信号量.从概念上将,Semaphore包含一组许可证.如果有需要的话,每个acquire()方法都会阻塞,直到获取一个可用的许可证.每个release()方法都会 ...

  2. iptables精通

    前提基础: 当主机收到一个数据包后,数据包先在内核空间中处理,若发现目的地址是自身,则传到用户空间中交给对应的应用程序处理,若发现目的不是自身,则会将包丢弃或进行转发. iptables实现防火墙功能 ...

  3. 解决 FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory 问题

    https://blog.csdn.net/weixin_41196185/article/details/81114226 今天在启动vue项目的时候报了这样一个错误 观察到关键词是 FATAL E ...

  4. jmeter二次开发之java请求

    现在很多公司都用的是微服务,每个服务的请求协议有可能不相同,怎样用jmeter二次开发自己的java请求? 下面是具体的开发步骤: 1,把需要的jar包 添加到maven依赖中 jmeter中java ...

  5. 如何通过代码审计挖掘REDos漏洞

    写这篇文章的目的一是由于目前网上关于java代码审计的资料实在是太少了,本人作为一个java代码审计的新手,深知学习java代码审计的难受之处,所以将自己学习过程中挖掘的一些漏洞写成博客发出来希望可以 ...

  6. IP地址和子网划分学习笔记之《IP地址详解》

    2018-05-03 18:47:37   在学习IP地址和子网划分前,必须对进制计数有一定了解,尤其是二进制和十进制之间的相互转换,对于我们掌握IP地址和子网的划分非常有帮助,可参看如下目录详文. ...

  7. ssh防止暴力破解之fail2ban

    1.利用sshd服务本身防止暴力破解 2.sshd服务防止暴力破解和fail2ban使用方法 先说说一般的防范措施: 方法1: 1.密码足够复杂: 密码的长度要大于8位最好大于14位.密码的复杂度是密 ...

  8. Python- 解决PIP下载安装速度慢

    让PIP源使用国内镜像,提升下载速度和安装成功率. 国外的源下载速度太慢,而且经常出现下载后安装出错问题.把PIP安装源替换成国内镜像,可以大幅提升下载速度,还可以提高安装成功率. 国内源: 新版ub ...

  9. mysql order by 多个字段排序

    工作中需用到order by 后两个字段排序,但结果却产生了一个Bug,以此备录. [1]复现问题场景 为了说明问题,模拟示例数据库表students,效果同实例. 如下语句Sql_1: SELECT ...

  10. qemu-kvm内存虚拟化2

    2017-04-20 上篇文章对qemu部分的内存虚拟化做了介绍,上篇文章对于要添加的FR,调用了 MEMORY_LISTENER_UPDATE_REGION(frnew, as, Forward, ...