环境是: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. mac工作软件推荐-iterm + zsh + tmux

    原文链接: http://ju.outofmemory.cn/entry/57244 tmux安装https://blog.csdn.net/nmgzywd/article/details/50915 ...

  2. ELK的使用

    首先安装jdk,我这里使用open-jdk yum list all | grep jdk yum -y install java-1.8.0-openjdk-devel, java-1.8.0-op ...

  3. html5新特性contenteditable 属性更容易实现动态表单

    介绍html5新特性的一个属性:contenteditable 作用域全局.所有的块标签都可以,例如:span.p.div.td等标签.但是,不可以作用域<br/>类型的标签. conte ...

  4. matlab函数之imresize()

    B = imresize(A,scale) B = imresize(A,scale) 返回图像 B,它是将 A 的长宽大小缩放 scale 倍之后的图像.输入图像 A 可以是灰度.RGB 或二值图像 ...

  5. 微信等webview中无法修改document.title的情况

    // hack在微信等webview中无法修改document.title的情况 var $iframe = $('<iframe src="https://www.bbtree.co ...

  6. How to handle Imbalanced Classification Problems in machine learning?

    How to handle Imbalanced Classification Problems in machine learning? from:https://www.analyticsvidh ...

  7. 关于_T()说明

    #define  _T(X)  L##X _T()是MFC里的宏.VS支持两种编码方式ASCII和Unicode,前者是用单字节编码,只能表示0~255个字符.为了表示各个国家的字符,采用了UNICO ...

  8. 非系统表空间损坏,rman备份恢复

    实验条件:有完整可用备份--查询表空间情况SQL> select tablespace_name,status from dba_tablespaces;TABLESPACE_NAME STAT ...

  9. keepalived+redis 高可用redis主从解决方案

    背景介绍: 目前,Redis还没有一个类似于MySQL Proxy或Oracle RAC的官方HA方案.#Redis 2.8版开始正式提供名为Sentinel的主从切换方案(后面附上,未测试) 因此, ...

  10. 杂项-Log:NLog

    ylbtech-杂项-Log:NLog NLog是一个基于.NET平台编写的类库,我们可以使用NLog在应用程序中添加极为完善的跟踪调试代码. NLog是一个简单灵活的.NET日志记录类库.通过使用N ...