环境是: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 还是报错。

安装完后,就可以了。

【linux-./configure 配置文件时出错问题】的更多相关文章

  1. ./configure 配置文件时出错checking for g++... no

    checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no 缺少C++编译器 ...

  2. Oracle安装-------实例化EM 配置文件时出错问题 ( 转 )

    命令行中执行: C:\Users\Administrator>emca -repos drop   EMCA 开始于 2013-4-23 20:13:58 EM Configuration As ...

  3. dpkg:处理软件包dradis (--configure)时出错

    dpkg:处理软件包dradis (--configure)时出错!解决方案:1.将info文件夹更名%mv /var/lib/dpkg/info /var/lib/dpkg/info_old2.新建 ...

  4. 子进程 已安装 post-installation 脚本 返回错误状态 1,dpkg: 处理软件包 python-crypto (--configure)时出错: 该软件包正处于非常不稳定的状态;

    这几天在学习redis的时候,装软件总是报错,两个问题都和dpkg有关,上网查阅了些解决办法,发现整体来说执行以下方法均可解决. 虽然每个人需要安装的包不同,但是出现此类问题的不同也只有安装包的名字, ...

  5. dpkg:处理 xxx (--configure)时出错解决方案

    出现问题如下: 正在设置 nfs-common (1:1.2.2-4ubuntu5) ... dpkg:处理 nfs-common (--configure)时出错:  子进程 已安装 post-in ...

  6. dpkg:处理软件包 xxx (--configure)时出错

    9月 17 16:11:35 xiakaibi-PC systemd[1]: Starting LSB: Start Jenkins at boot time...9月 17 16:11:35 xia ...

  7. dpkg:处理 xxx (--configure)时出错解决办法,也可用于卸载软件出错的情况

    dpkg:处理 xxx (--configure)时出错解决办法今早安装nfs时出现问题,找到该文,备份留用.然后在网上找到了这片文章,按步骤走就解决了,中间会提示自动卸载一下,执行那个命令就好了,我 ...

  8. .net 配置文件 分析 EntityName 时出错

    今天用C#读写XML文档,总出现下面的错误: 分析 EntityName 时出错.行1,位置9. 出错地方的源程序为: //...... pathEle.InnerXml = reducedStr(v ...

  9. Linux使用curl 方式安装docker-compose 后执行docker-compose version 检查安装是否成功时出错的解决办法

    0x0.缘起: 今天在一台新的Fedora 25上按照官方文档,使用curl方式安装 docker-compose后,验证是否安装成功时出错: 安装时使用的命令为; curl -L https://g ...

随机推荐

  1. 算法(Algorithms)第4版 练习 2.2.11(1)

    实现关键代码: private static void sort(Comparable[] input, int lo, int hi) { if((lo+CUTOFF-1) >= hi) { ...

  2. 编码,charset,乱码,unicode,utf-8与net简单释义

    1.文件分为文本文件和二进制文件﹐不过本质都一样﹐都是些01. 2.计算机存储设备存储的0或1﹐称为计算机的一个二进制位(bit). 3.二进制文件的0和1有专门的应用程序来读﹐所以它们没有什么乱不乱 ...

  3. android 真心话大冒险 摇色子

    android 真心话大冒险  摇色子 软件

  4. Nginx HTTP反向代理基础配置

    #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #erro ...

  5. linux 软件包的命名规则

     linux软件包的命名规则 eg:主包       bind-9.7.1-1.el7.i586.rpm 子包 bind-libs-9.7.1-1.el7.i586.rpm bind-utils-9. ...

  6. 在Win8.1系统下如何安装运行SQL Server 2005

    按正常情况,在Win8/Win8.1系统下安装微软的SQL Server 2005套件会存在兼容问题,即使安装完,最后的结果就是导致其服务项无法正常启动. 如果用户创建使用的项目非要按照SQL Ser ...

  7. C++(五)— 控制保留小数位数

    1.C++中输出指定保留的小数位数. 这里还要注意,每次输出只要设置一次就行了,因为这两个的作用范围是后续对象,而不是仅对后一个对象起作用. #include<iostream> #inc ...

  8. 负载均衡之IP

    文章出自:http://blog.csdn.net/cywosp/article/details/38036537       首先让我们来看看下面这张大家都非常熟悉的TCP/IP协议族的分层图:   ...

  9. eslipse 修改tomcat server location 解决HTTP Status 404 – Not Found

    Eclipse中tomcat service设置选择window ----show view---services可以看到服务的面板双击tomcat进入配置界面Service Locations(Sp ...

  10. freeMarker(五)——模板开发指南补充知识

    学习笔记,选自freeMarker中文文档,译自 Email: ddekany at users.sourceforge.net 模板开发指南补充知识 1. 自定义指令 自定义指令可以使用 macro ...