linux软件安装种种

1. tar.bz2结尾的安装包
  • tar jxvf Python-3.2.3.tar.bz2   解压
  • ./configure --prefix=/opt/python3.2.3
  • make
  • make install


2. ubuntu12 上安装subversion-1.7.2.tar.gz

先下载http://1413570.blog.51cto.com/1403570/631226 

包括subversion-1.7.2.tar.gz,subversion-deps-1.6.1.tar.gz

下载http://sourceforge.net/projects/libpng/files/zlib/1.2.7/zlib-1.2.7.tar.gz/download?use_mirror=jaist&download=

包括zlib-1.2.7.tar.gz

下载http://www.sqlite.org/download.html

包括sqlite-autoconf-3071400.tar.gz

安装步骤如下:

  1. tar -zxvf subversion-1.7.6.tar.gz
  2. ./configure prefix=/opt/subversion1.7.2
  • 执行过程中会出现几个问题,解决办法如下
  • 安装遇到的第一个error,

checking for APR... no
configure: WARNING: APR not found
The Apache Portable Runtime (APR) library cannot be found.
Please install APR on this system and supply the appropriate
--with-apr option to 'configure'
解决办法:
到tar -zxvf subversion-deps-1.6.1.tar.gz 解压的目录下,有一个apr的文件夹,放到subversion-1.7.2下即可

  • 安装遇到的第二个error
checking APR version... 1.3.3
configure: Apache Portable Runtime Utility (APRUTIL) library configuration
checking for APR-util... no
configure: WARNING: APRUTIL not found
The Apache Portable Runtime Utility (APRUTIL) library cannot be found.
Either install APRUTIL on this system and supply the appropriate
到tar -zxvf subversion-deps-1.6.1.tar.gz 解压的目录下,发现有一个 APR-util,再移动到ubversion-1.7.2下

  • 安装遇到的第三个error
checking sqlite library version (via pkg-config)... no
An appropriate version of sqlite could not be found. We recommmend
3.7.6.3, but require at least 3.6.18.
错误有提示:解决办法
get the sqlite 3.7.6.3 amalgamation from:
http://www.sqlite.org/sqlite-amalgamation-3.7.6.3.tar.gz
unpack the archive using tar/gunzip and copy sqlite3.c from the
resulting directory to:
/home/software/subversion-1.7.2/sqlite-amalgamation/sqlite3.c
下载这个包,解压,将sqlite3.c放到指定的位置

  • 安装遇到的第四个error
#错误提示2#

    configure: error: subversion requires zlib

    解决方法:

    tar -xvzf zlib-1.2.5.tar.gz

    cd zlib-1.2.5
   ./configure
   make
   make install

 

cd /usr/local

ln -s zlib-1.2.5 zlib


3. make clean

4. make 

5. make install

你可能感兴趣的:(linux软件安装种种)