环境是:centos 5.6 安装系统时,可能安装的是标准的精简版本,所以没有选择软件依赖包,很多软件都没有安装。

现在需要安装软件,安装软件时报错:

make: *** 没有指明目标并且找不到 makefile。 停止。

原因是因为没有执行./configure

接下来执行 ./configure 报错:

[root@localhost pcre-8.40]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/javaSoft/pcre-8.40':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

原因是缺少c++编译器,也可以查看日志得到一些信息,

安装c++编译器,

yum install gcc-c++ 注意(有些是yum install g++ 但是5.10 的系统版本一定要用gcc-c++)

==============================================

[root@localhost pcre-8.40]# yum install gcc-c++
已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.163.com
* updates: mirrors.tuna.tsinghua.edu.cn
解决依赖关系
--> 执行事务检查
---> Package gcc-c++.x86_64 0:4.4.7-18.el6 will be 安装
--> 处理依赖关系 libstdc++-devel = 4.4.7-18.el6,它被软件包 gcc-c++-4.4.7-18.el6.x86_64 需要
--> 处理依赖关系 libstdc++ = 4.4.7-18.el6,它被软件包 gcc-c++-4.4.7-18.el6.x86_64 需要
--> 处理依赖关系 gcc = 4.4.7-18.el6,它被软件包 gcc-c++-4.4.7-18.el6.x86_64 需要
--> 处理依赖关系 libmpfr.so.1()(64bit),它被软件包 gcc-c++-4.4.7-18.el6.x86_64 需要
--> 执行事务检查
---> Package gcc.x86_64 0:4.4.7-18.el6 will be 安装
--> 处理依赖关系 libgomp = 4.4.7-18.el6,它被软件包 gcc-4.4.7-18.el6.x86_64 需要
--> 处理依赖关系 cpp = 4.4.7-18.el6,它被软件包 gcc-4.4.7-18.el6.x86_64 需要
--> 处理依赖关系 libgcc >= 4.4.7-18.el6,它被软件包 gcc-4.4.7-18.el6.x86_64 需要
--> 处理依赖关系 cloog-ppl >= 0.15,它被软件包 gcc-4.4.7-18.el6.x86_64 需要
---> Package libstdc++.x86_64 0:4.4.7-11.el6 will be 升级
---> Package libstdc++.x86_64 0:4.4.7-18.el6 will be an update
---> Package libstdc++-devel.x86_64 0:4.4.7-18.el6 will be 安装
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be 安装
--> 执行事务检查
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be 安装
--> 处理依赖关系 libppl_c.so.2()(64bit),它被软件包 cloog-ppl-0.15.7-1.2.el6.x86_64 需要
--> 处理依赖关系 libppl.so.7()(64bit),它被软件包 cloog-ppl-0.15.7-1.2.el6.x86_64 需要
---> Package cpp.x86_64 0:4.4.7-18.el6 will be 安装
---> Package libgcc.x86_64 0:4.4.7-11.el6 will be 升级
---> Package libgcc.x86_64 0:4.4.7-18.el6 will be an update
---> Package libgomp.x86_64 0:4.4.7-11.el6 will be 升级
---> Package libgomp.x86_64 0:4.4.7-18.el6 will be an update
--> 执行事务检查
---> Package ppl.x86_64 0:0.10.2-11.el6 will be 安装
--> 完成依赖关系计算

依赖关系解决

================================================================================
软件包 架构 版本 仓库 大小
================================================================================
正在安装:
gcc-c++ x86_64 4.4.7-18.el6 base 4.7 M
为依赖而安装:
cloog-ppl x86_64 0.15.7-1.2.el6 base 93 k
cpp x86_64 4.4.7-18.el6 base 3.7 M
gcc x86_64 4.4.7-18.el6 base 10 M
libstdc++-devel x86_64 4.4.7-18.el6 base 1.6 M
mpfr x86_64 2.4.1-6.el6 base 157 k
ppl x86_64 0.10.2-11.el6 base 1.3 M
为依赖而更新:
libgcc x86_64 4.4.7-18.el6 base 103 k
libgomp x86_64 4.4.7-18.el6 base 134 k
libstdc++ x86_64 4.4.7-18.el6 base 295 k

事务概要
================================================================================
Install 7 Package(s)
Upgrade 3 Package(s)

总文件大小:22 M
确定吗?[y/N]:

总文件大小:22 M
确定吗?[y/N]:y
下载软件包:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
Package: centos-release-6-6.el6.centos.12.2.x86_64 (@anaconda-CentOS-201410241409.x86_64/6.6)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
确定吗?[y/N]:y
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在升级 : libgcc-4.4.7-18.el6.x86_64 1/13
正在升级 : libstdc++-4.4.7-18.el6.x86_64 2/13
正在安装 : mpfr-2.4.1-6.el6.x86_64 3/13
正在安装 : cpp-4.4.7-18.el6.x86_64 4/13
正在安装 : libstdc++-devel-4.4.7-18.el6.x86_64 5/13
正在安装 : ppl-0.10.2-11.el6.x86_64 6/13
正在安装 : cloog-ppl-0.15.7-1.2.el6.x86_64 7/13
正在升级 : libgomp-4.4.7-18.el6.x86_64 8/13
正在安装 : gcc-4.4.7-18.el6.x86_64 9/13
正在安装 : gcc-c++-4.4.7-18.el6.x86_64 10/13
清理 : libstdc++-4.4.7-11.el6.x86_64 11/13
清理 : libgcc-4.4.7-11.el6.x86_64 12/13
清理 : libgomp-4.4.7-11.el6.x86_64 13/13
Verifying : libstdc++-devel-4.4.7-18.el6.x86_64 1/13
Verifying : cpp-4.4.7-18.el6.x86_64 2/13
Verifying : libgomp-4.4.7-18.el6.x86_64 3/13
Verifying : mpfr-2.4.1-6.el6.x86_64 4/13
Verifying : libgcc-4.4.7-18.el6.x86_64 5/13
Verifying : gcc-4.4.7-18.el6.x86_64 6/13
Verifying : gcc-c++-4.4.7-18.el6.x86_64 7/13
Verifying : ppl-0.10.2-11.el6.x86_64 8/13
Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 9/13
Verifying : libstdc++-4.4.7-18.el6.x86_64 10/13
Verifying : libstdc++-4.4.7-11.el6.x86_64 11/13
Verifying : libgomp-4.4.7-11.el6.x86_64 12/13
Verifying : libgcc-4.4.7-11.el6.x86_64 13/13

已安装:
gcc-c++.x86_64 0:4.4.7-18.el6

作为依赖被安装:
cloog-ppl.x86_64 0:0.15.7-1.2.el6 cpp.x86_64 0:4.4.7-18.el6 gcc.x86_64 0:4.4.7-18.el6 libstdc++-devel.x86_64 0:4.4.7-18.el6 mpfr.x86_64 0:2.4.1-6.el6
ppl.x86_64 0:0.10.2-11.el6

作为依赖被升级:
libgcc.x86_64 0:4.4.7-18.el6 libgomp.x86_64 0:4.4.7-18.el6 libstdc++.x86_64 0:4.4.7-18.el6

完毕!
[root@localhost pcre-8.40]#

==============================================

这里要注意,安装过程中有一个Is this ok [y/N]: 这里一定要输入一个y 否则会出错:

Is this ok [y/N]: Exiting on user Command
Complete! 虽然完成了,但是还没有安装成功,再执行 ./configure 还是报错。

安装完后,就可以了。

最新文章

  1. 大熊君学习html5系列之------WebStorage(客户端轻量级存储方案)
  2. 用Laravel+Grunt+Bower管理你的应用
  3. iOS.DistributionApp.1-mobile-provision-file[draft]
  4. OpenGL(一)——入门学习
  5. MVC EF异常-“序列化类型为 XX 的对象时检测到循环引用”
  6. POJ 1942 Paths on a Grid(组合数)
  7. asp.net mvc 生成条形码
  8. J2SE知识点摘记(十八)
  9. Linux 查硬件配置
  10. Http批量异步发送和数据保存
  11. (MonoGame从入门到放弃-3)-放弃MonoGame
  12. 2018 ACM-ICPC World Finals B.Comma Sprinkler
  13. CSS 布局术语
  14. itoa()函数和atoi()函数详解
  15. js创建并下载文件
  16. 解决post、get端中文乱码问题
  17. linux系统安装jdk详细配置
  18. csvn使用入门
  19. SVN集成compare4比较软件
  20. JavaSE Set集合

热门文章

  1. mvc购物车项目(2)
  2. DIV CSS 笔记
  3. python3全方位教程
  4. 关于MFC中重载函数是否调用基类相对应函数的问题
  5. 【leetcode刷题笔记】Recover Binary Search Tree
  6. EasyDarwin+ffmpeg进行PC(摄像头+麦克风)流媒体直播服务
  7. [BALTIC 2008] Grid
  8. bzoj 3083 遥远的国度 —— 树链剖分
  9. LCS(最长公共子序列问题)
  10. 【转】 Pro Android学习笔记(七一):HTTP服务(5):多线程调用HttpClient