Linux 配置/制作,--prefix? [英] Linux configure/make, --prefix?

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

问题描述

忍耐一下,这个不太好解释...

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

我正在尝试将 Xfce configuremakemake install Xfce 放入我的 buildroot 构建目录中.配置时我正在使用

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

以便它构建到正确的文件夹,但是当它被压缩并运行时,我从各种配置文件中得到错误,它在

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

(当然不存在.)

如何设置要构建到的文件夹,同时为要使用的配置文件设置不同的根目录?

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

推荐答案

执行 configure --help 并查看其他可用选项.

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

提供不同的选项来覆盖不同的位置是很常见的.按照标准, --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 

我认为应该这样做.

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

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