如何用gcc的自定义位置在Linux上安装提振? [英] How to install boost on Linux with custom location of gcc?

查看:198
本文介绍了如何用gcc的自定义位置在Linux上安装提振?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的gcc编译器是在自定义位置/我的/路径/ hpgcc

My gcc compiler is at a custom location /my/path/hpgcc

我已经下载了升压来源。执行bootstrap.sh,但由于其与默认的gcc运行失败。

I've downloaded the boost sources. Executed bootstrap.sh, but it fails because it runs with the default gcc.

寻找到它,我看到它失败它做的第一件事:建立Boost.Build引擎:

Looking into it, I see that it fails at the first thing it does: building the Boost.Build engine:

gcc -o bootstrap/jam0 command.c compile.c debug.c expand.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c output.c parse.c pathunix.c pathvms.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c pwd.c class.c native.c md5.c w32_getreg.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c execunix.c fileunix.c

(失败,因为使用默认的gcc执行的,而不是我的gcc版本)。

(fails because executed with the default gcc, and not my gcc version).

我试图改变在用户config.jam中的文件路径的gcc,但它并不能帮助。可能是因为Boost.Build的构建脚本boost_1_47_0 /工具/建设/ V2 /发动机/ build.sh不使用用户config.jam中,只是使用默认的位置。

I've tried to change the gcc path in the user-config.jam file, but it doesn't help. Probably because the Boost.Build's build script boost_1_47_0/tools/build/v2/engine/build.sh doesn't use user-config.jam, and just uses the default locations.

任何解决方案?

推荐答案

添加一行:

using gcc : : /my/path/hpgcc ;

用户config.jam中用户config.jam中通常会在 /路径/要/升压/工具/建设/ V2 / ,但你可以把一个自定义的用户config.jam中站点config.jam中任何上市的地方<一个HREF =htt​​p://www.boost.org/boost-build2/doc/html/bbv2/overview/configuration.html相对=nofollow>这里。

to user-config.jam. user-config.jam will usually be in /path/to/boost/tools/build/v2/, but you can put a custom user-config.jam or site-config.jam in any of the places listed here.

/我的/路径/ hpgcc 应该是全路径的G ++可执行文件。

/my/path/hpgcc should be the full path to the g++ executable.

编辑(伊戈尔OKS):什么最终解决的问题是,我编辑boost_1_47_0 /工具/建设/ V2 /发动机/ build.sh,使之使用个性化的gcc

EDIT (Igor Oks) : What eventually solved the problem is that I edited boost_1_47_0/tools/build/v2/engine/build.sh to make it use my custom gcc.

这篇关于如何用gcc的自定义位置在Linux上安装提振?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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