Linux的配置/制造, - preFIX? [英] Linux configure/make, --prefix?

查看:266
本文介绍了Linux的配置/制造, - preFIX?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

多多包涵,这个不是很容易解释...

Bear with me, this one's not very easy to explain...

我试图配置制作使安装的Xfce到我buildroot的build目录。在配置我使用

I'm trying to configure, make and make install Xfce into my buildroot build directory. When configuring I'm using

--prefix=/home/me/somefolder/mybuild/output/target

所以,它建立到正确的文件夹,但是当它的COM pressed和运行我从不同的配置文件,它在寻找文件中的错误在

so that it builds to the right folder, however when it's compressed and run I get errors from various config files where it's looking for files in

/home/me/somefolder/mybuild/output/target

(这当然不存在。)

(which of course doesn't exist.)

如何设置建立什么文件夹到,但设置不同的根目录下的配置文件使用?

How do I set what folder to build into, yet set a different root directory for the config files to use?

推荐答案

不要配置--help ,看看有什么其他选项可用。

Do configure --help and see what other options are available.

这是很常见,提供不同的选择,以覆盖不同的位置。通过标准, - preFIX 覆盖所有的人,所以你需要指定preFIX后覆盖配置位置。行动本课程通常适用于每个基于automake的项目。

It is very common to provide different options to override different locations. By standard, --prefix overrides all of them, so you need to override config location after specifying the prefix. This course of actions usually works for every automake-based project.

更糟的情况是,当你需要修改配置脚本,或者更糟的是,生成的makefile和的config.h头。但是,是的,是Xfce你可以尝试这样的事:

The worse case scenario is when you need to modify the configure script, or even worse, generated makefiles and config.h headers. But yeah, for Xfce you can try something like this:

./configure --prefix=/home/me/somefolder/mybuild/output/target --sysconfdir=/etc 

我认为应该这样做。

I believe that should do it.

这篇关于Linux的配置/制造, - preFIX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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