当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ConfigureMakeMakeInstall
帖子发表于 : 2005-08-02 11:19 
论坛管理员

注册: 2005-03-27 0:06
帖子: 10116
系统: Ubuntu 12.04
送出感谢: 7
接收感谢: 128
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


_________________
当净其意如虚空,远离妄想及诸取,令心所向皆无碍


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2005-08-02 13:27 
头像

注册: 2005-05-23 13:38
帖子: 771
地址: gdsz
送出感谢: 0 次
接收感谢: 0 次
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


_________________
……


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2005-08-22 21:52 
论坛管理员

注册: 2005-03-27 0:06
帖子: 10116
系统: Ubuntu 12.04
送出感谢: 7
接收感谢: 128
http://www.ubuntu.org.cn/support/docume ... howto_view


_________________
当净其意如虚空,远离妄想及诸取,令心所向皆无碍


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2006-07-30 21:14 
头像

注册: 2005-07-02 14:41
帖子: 4133
系统: Ubuntu 14.04 (Kylin)
送出感谢: 53
接收感谢: 11
这个价值不是很大,这类文章很多了。所以先放着


_________________
https://weakish.github.io


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
cron
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译