zoukankan      html  css  js  c++  java
  • linux下源码安装

    ●源码的安装(./configure –prefix 命令用法)
    一般由3个步骤组成:配置(configure)、编译(make)、安装(make install)。

    Configure是一个可执行脚本,它有很多选项,使用命令./configure –help输出详细的选项列表,如下:
    -bash-3.00# ./configure --help
    Usage: configure [options] [host]
    Options: [defaults in brackets after descriptions]
    Configuration:
    --cache-file=FILE cache test results in FILE
    --help print this message
    --no-create do not create output files
    --quiet, --silent do not print `checking...' messages
    --version print the version of autoconf that created configure
    Directory and file names:
    --prefix=PREFIX install architecture-independent files in PREFIX
    [/usr/local]
    --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
    [same as prefix]
    --bindir=DIR user executables in DIR [EPREFIX/bin]
    例:
    ./configure --prefix=$(pwd) //或替换为指定路径(例如:--prefix=/usr/local/test)
    make
    make install

    不指定prefix,则可执行文件默认放在/usr/local/bin,库文件默认放在/usr/local/lib,
    配置文件默认放在/usr/local/etc。其它的资源文件放在/usr/local/share。
    要卸载这个程序,要么在原来的make目录下用一次make uninstall(前提是make文件指定
    过uninstall),要么去上述目录里面把相关的文件一个个手工删掉。指定prefix,直接删掉
    一个文件夹就够了。

    ------山的那一边
  • 相关阅读:
    Python 写Windows Service服务程序
    关于Python 获取windows信息收集
    Pyqt 获取windows系统中已安装软件列表
    Python 打开目录与指定文件
    【转载】Pyqt 编写的俄罗斯方块
    Python win32api提取exe图标icon
    Pyqt QListWidget之缩略图列表
    Pyqt 时时CPU使用情况
    Python 的三目运算
    Chrome Crx 插件下载
  • 原文地址:https://www.cnblogs.com/mountain2011/p/8571593.html
Copyright © 2011-2022 走看看