ConfigureMakeMakeInstall

参与到Ubuntu的翻译中来
回复
头像
oneleaf
论坛管理员
帖子: 10228
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 103 次

ConfigureMakeMakeInstall

#1

帖子 oneleaf » 2005-08-02 11:19

Introduction

Most programs (at least most of the good programs) that need to be installed from source on Linux come in the configure, make, make install format. That means that after unzip/untarring the sources into a local directory, you need to execute the following steps in order to install the program: configure, make and make install.
Step 1 - Configure

configure is a script that is used for four things:

*

It checks that your computer fulfils all the necessary requirments
*

It is used to enable/disable various options in the compiled program
*

It can help you change the default paths it looks for it's requirments in
*

It can change the path that the program will be installed in

You can look at the various options that your specific configure script provides you with by executing:

# ./configure --help

Most problems you havee with installing programs from source will hopefully be restricted to the configure phase.

To run configure in a terminal enter the directory that contains the source of the program and type:

# ./configure (your options here)

Step 2 - Make

After configure finishes successfully you need to run make to actually compile the program. This can be done simply be calling:

# make

Now if all goes well you should have a working copy of the program in the sources directory. You should try it out by running it:

# ./yourprogramnamehere

Step 3 - Make Install

If everything works well and you want to install the program just type:

# sudo make install

And walla!

https://wiki.ubuntu.com/ConfigureMakeMakeInstall
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
lyreopera
帖子: 771
注册时间: 2005-05-23 13:38
来自: gdsz
送出感谢: 0
接收感谢: 0

#2

帖子 lyreopera » 2005-08-02 13:27

Introduction
介绍

Most programs (at least most of the good programs) that need to be installed from source on Linux come in the configure, make, make install format. That means that after unzip/untarring the sources into a local directory, you need to execute the following steps in order to install the program: configure, make and make install.
大多数从原码安装的linux程序(至少是大多数好的程序)使用configure, make, make install格式。这意味着在解压缩原代码到一个本地目录以后,你需要执行下列步骤来安装这个程序:configure, make 和 make install.

Step 1 - Configure
步骤 1 - Configure

configure is a script that is used for four things:
configure 是一个脚本,它用来做下面四件事情:

*

It checks that your computer fulfils all the necessary requirments
它检查你的电脑是否满足了所有必须的条件
*

It is used to enable/disable various options in the compiled program
它能用来在编译程序的时候开启或关闭各种选项
*

It can help you change the default paths it looks for it's requirments in
你可以用它改变它的依赖包所在的路径。
(这个翻译有点勉强)
*

It can change the path that the program will be installed in
它可以改变程序的安装目录

You can look at the various options that your specific configure script provides you with by executing:
你可以通过执行下面的命令来查看configure 脚本所提供的各种选项:

代码: 全选

# ./configure --help
Most problems you havee with installing programs from source will hopefully be restricted to the configure phase.
大多数从源码安装的程序所遇到的问题可能出现在configure阶段。

To run configure in a terminal enter the directory that contains the source of the program and type:
进入含有程序原代码的目录,在终端键入:

代码: 全选

# ./configure (your options here) 
Step 2 - Make
步骤2 - Make

After configure finishes successfully you need to run make to actually compile the program. This can be done simply be calling:
在成功的完成configure之后你必须运行make 来真正地编译这个程序。这很简单,键入:

# make

Now if all goes well you should have a working copy of the program in the sources directory. You should try it out by running it:
如果一切顺利的话这时候应该有一个该程序的工作中的副本在这个原代码的目录中。你应该尝试运行它,通过运行:

代码: 全选

# ./yourprogramnamehere 
(你的程序名)

Step 3 - Make Install
步骤3 - Make Install

If everything works well and you want to install the program just type:
如果一切顺利并且你要安装这个程序的话就键入:

代码: 全选

# sudo make install 
And walla!

完成了!(这句话是我猜的,walla大概是个方言……)

https://wiki.ubuntu.com/ConfigureMakeMakeInstall
……
头像
oneleaf
论坛管理员
帖子: 10228
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 103 次

#3

帖子 oneleaf » 2005-08-22 21:52

当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
送出感谢: 42 次
接收感谢: 9 次
联系:

#4

帖子 millenniumdark » 2006-07-30 21:14

这个价值不是很大,这类文章很多了。所以先放着
回复

回到 “软件和文档翻译”