在RHEL4中安装GCC 3.4.6

时间:2021-07-03 07:03:58

I do the following in command line:

我在命令行中执行以下操作:

1) wget ftp://mirrors.kernel.org/gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2

1)wget ftp://mirrors.kernel.org/gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2

2) tar -jxf gcc-3.4.6.tar.bz2

2)沥青箱体gcc-3.4.6.tar.bz2

3) cd gcc-3.4.6

3)cd gcc-3.4.6

4) cd libstdc++-v3

4)cd libstdc + + v3

5) ./configure

5). / configure

And I get the following error:

我得到以下错误:

configure: error: cannot find install-sh or install.sh in ./../..

配置:错误:无法找到安装-sh或安装。sh。/ . . / . .

There is actually an "install-sh" file in the gcc-3.4.6 directory, but that's one directory up the current, not two.

gcc-3.4.6目录中实际上有一个“install-sh”文件,但这是当前目录上的一个目录,而不是两个。

The configure script should look for install-sh in "./.." insted of "./../.." ??

配置脚本应该在"./.."中查找。? ?

What's wrong??

怎么了? ?

4 个解决方案

#1


2  

  1. wget ftp://mirrors.kernel.org/gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2
  2. wget ftp://mirrors.kernel.org/gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2
  3. tar -jxf gcc-3.4.6.tar.bz2
  4. 焦油箱体gcc-3.4.6.tar.bz2
  5. cd gcc-3.4.6
  6. cd gcc-3.4.6
  7. ./configure
  8. . / configure
  9. make
  10. 使
  11. make install
  12. 制作安装

#2


2  

Suggestion: Consider stow to keep custom installations in /usr/local in some sane order.

建议:考虑让stow保持/usr/local的自定义安装在一些正常的顺序中。

#3


1  

Why are you cd:ing down into libstdc++-v3? I thought the correct way was to just run "make" from the directory you ran configure from.

为什么是cd:转到libstdc+ -v3?我认为正确的方法是从您运行的目录中运行“make”。

#4


1  

Here's how I built a different package that didn't come with a configure script:

下面是我如何构建另一个没有配置脚本的包:

config/autorun.sh
./configure <options>
make
make install

#1


2  

  1. wget ftp://mirrors.kernel.org/gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2
  2. wget ftp://mirrors.kernel.org/gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2
  3. tar -jxf gcc-3.4.6.tar.bz2
  4. 焦油箱体gcc-3.4.6.tar.bz2
  5. cd gcc-3.4.6
  6. cd gcc-3.4.6
  7. ./configure
  8. . / configure
  9. make
  10. 使
  11. make install
  12. 制作安装

#2


2  

Suggestion: Consider stow to keep custom installations in /usr/local in some sane order.

建议:考虑让stow保持/usr/local的自定义安装在一些正常的顺序中。

#3


1  

Why are you cd:ing down into libstdc++-v3? I thought the correct way was to just run "make" from the directory you ran configure from.

为什么是cd:转到libstdc+ -v3?我认为正确的方法是从您运行的目录中运行“make”。

#4


1  

Here's how I built a different package that didn't come with a configure script:

下面是我如何构建另一个没有配置脚本的包:

config/autorun.sh
./configure <options>
make
make install