【发布时间】:2016-02-29 13:39:20
【问题描述】:
我一直在尝试安装将我的 linux 机器变成开发环境所需的基本软件。我有一台带有 RHEL6 的机器,但是它没有连接到互联网。我能够连接到局域网和 ssh 到其他机器。我尝试使用 yum 安装但失败并出现以下错误。
[root@******* pcre-8.38]#yum install gcc-c++
Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id, refresh-packagekit, security, subscription-
: manager, tmprepo, verify, versionlock
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Loading support for Red Hat kernel ABI
https://www.softwarecollections.org/repos/rhscl/devtoolset-3/epel-6-x86_64/repodata/repomd.xml: [Errno 12] Timeout on https://www.softwarecollections.org/repos/rhscl/devtoolset-3/epel-6-x86_64/repodata/repomd.xml: (28, 'connect() timed out!')
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhscl-devtoolset-3-epel-6-x86_64. Please verify its path and try again.
在此之前,我安装了一个 ngnix 网络服务器并尝试执行 make 但失败了:
...
checking windows.h presence... no
checking for windows.h... no
configure: error: You need a C++ compiler for C++ support.
make[1]: *** [/home/gunjaj/software/pcre-8.38/Makefile] Error 1
make[1]: Leaving directory `/home/gunjaj/software/nginx-1.8.1'
make: *** [build] Error 2
感谢任何帮助。
PS:这个问题和另一个问题How to install C compiler for GCC without Internet connection? (RHEL6)类似
但我现在绝对无法上网。
【问题讨论】:
-
如果你有 RHEL DVD/ISO,你可以把它挂载到机器和
yum install gcc-c++ -
这是超级用户或 ServerFault 的问题,而不是 SO。因为只有在您拥有开发环境并实际编程时,SO 才会变得相关!