从某些软件包安装头文件的正确方法是什么? [英] What is the right way to install header files from some package?

查看:168
本文介绍了从某些软件包安装头文件的正确方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从源代码中构建一些软件包(更具体地讲,是e2fsprogs)并将其头文件安装到我的系统中.之后,我将删除构建树,以使其不再可访问.正确的方法是什么?

I want to build some package from source (e2fsprogs to be more concrete) and install its header files to my system. After that I will delete the build tree so it will not be accessible anymore. What is the right way to do this?

当我想安装程序时,我做的很简单:

When I want to install program, I make simply:

 $ ./configure
 $ make
 # make install

我要安装标题时有哪些等效操作?

What are the equivalent actions when I want to install headers?

推荐答案

对于e2fsprogs ,引用

7)安装包含文件和库

7) Install the include files and libraries

您可以运行`make install-libs'来安装包含文件和 库.请注意,对于 程序工作.仅当您期望开发其他产品时才需要 使用库的程序,或者如果您要编译其他程序 使用这些库(例如4.4BSD转储和还原端口).

You can run `make install-libs' to install the include files and libraries. Please note that this installation is not needed for the programs to work. It is only needed if you expect to develop other programs using the libraries or if you want to compile other program using these libraries (like the 4.4BSD dump and restore port).

不过更普遍,当我想找出安装对他人有用的东西的正确"方法是什么时,我会看一下:

More generally though, when I want to find out what is the 'proper' way to install something that has worked for others, I look at:

  1. 我最喜欢的发行版中的软件包是什么样的
  2. 如何为我喜欢的软件包构建软件包发行版
  1. What the package looks like, in my favourite distro
  2. How the package is built for my favourite distro

这篇关于从某些软件包安装头文件的正确方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆