本文介绍了如何添加编译器包括新安装的加速路径和链接库路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有RHEL 5.2,安装升压1.33。
我下载boost_1_44_0.tar.bz2。并建立它。在完成这表明:

 的Boost C ++库已成功建成!下面的目录应该被添加到编译器包含路径:    /家庭/ DFE /存档/ boost_1_44_0以下目录应添加到链接程序库的路径:    /家庭/ DFE /存档/ boost_1_44_0 /台/ lib目录


  1. 如何添加上述提到的include路径?

  2. 当我做转-q提升,它显示了升压1.33.1-10.el5。为什么会这样,当我安装的版本1.44?

  3. 有没有安装最新版本的Boost一个更好的办法?


解决方案

首先,我删除了使用现有的升压转

 转-e升压1.33.1-10.el5

显示消息说错误:助推指定多个包

然后尝试:

 转-e --allmatches提振

(我不记得我是否键入提升或升压1.33.1-10.el5')

与依赖的包被证明。
我所做的:

 转-e [packagename1]
RPM -e [packagename2]

等等,然后做:

 转-e --allmatches

这抹去我的系统完全提升。

然后我提取boost_1_44_0.tar.bz2使用tar -xvjf boost_1_44_0.tar.bz2和跑引导:

  ./ bootstrap.sh

然后跑的bjam为:

  ./安装的bjam

这就是它!升压得到了安装在我的系统上,我没有指定任何的连接选项,同时在编译程序!好极了!
现在,转-q升压'命令显示没有安装包。

I have RHEL 5.2, with Boost 1.33 installed.I downloaded boost_1_44_0.tar.bz2. and built it. On completion it showed:

The Boost C++ Libraries were successfully built!

The following directory should be added to compiler include paths:

    /home/dfe/Archive/boost_1_44_0

The following directory should be added to linker library paths:

    /home/dfe/Archive/boost_1_44_0/stage/lib
  1. How do I add the above mentioned include paths?
  2. When I do "rpm -q boost", it shows boost-1.33.1-10.el5. Why is that so, when I've installed version 1.44?
  3. Is there a better way to install the latest version of Boost?
解决方案

First, I removed the existing boost rpm using

rpm -e boost-1.33.1-10.el5

A message is displayed saying "error: "boost" specifies multiple packages"

Then tried:

rpm -e --allmatches boost

(I don't remember whether I typed 'boost' or 'boost-1.33.1-10.el5')

The packages with dependencies were shown.I did:

rpm -e [packagename1]
rpm -e [packagename2]

and so on and then did:

rpm -e --allmatches

This erased boost completely from my system.

Then I extracted boost_1_44_0.tar.bz2 using tar -xvjf boost_1_44_0.tar.bz2 and ran bootstrap with:

./bootstrap.sh

Then ran bjam as:

./bjam install

That's it! Boost got installed on my system, and I didn't have to specify any of the linker options while compiling programs! Yay!Now the 'rpm -q boost' command shows that there is no package installed.

这篇关于如何添加编译器包括新安装的加速路径和链接库路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 00:34