linux安装pcre错误,安装PCRE时出错
问题描述
我正在尝试在我的Ubuntu 11.10服务器上安装PCRE。当我运行”make”命令时,我得到一个非常长的输出,它始终以此错误结束:
libtool: link: ( cd ".libs" && rm -f "libpcreposix.la" && ln -s "../libpcreposix.la" "libpcreposix.la" ) source='pcrecpp.cc' object='pcrecpp.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ./depcomp \
/bin/bash ./libtool --tag=CXX --mode=compile -DHAVE_CONFIG_H -I. -c -o pcrecpp.lo pcrecpp.cc libtool: compile: unrecognized option `-DHAVE_CONFIG_H' libtool: compile: Try `libtool
--help' for more information. make[1]: *** [pcrecpp.lo] Error 1 make[1]: Leaving directory `/home/root/src/pcre/pcre-8.12' make:
*** [all] Error 2
我确实运行了”configure”。有任何想法吗?
最佳解决思路
您需要安装C++编译器,您很可能需要g ++。
使用apt-get,运行’apt-get install g ++’,或’apt-get安装build-essential’,因为build-essential包含g ++。
次佳解决思路
PCRE尝试在没有c ++编译器的情况下构建c ++输出。尝试
./configure --disable-cpp
禁用C++选项。
第三种解决思路
为什么不使用apt-cache search pcre | grep pcre找到PCRE,然后使用apt-get install来安装PCRE?我认为PCRE已经包含在存储库中。
这是我的计算机(Ubuntu 10.04)中上述命令的结果:
$ apt-cache search pcre | grep pcre
libpcre3-dbg - Perl 5 Compatible Regular Expression Library - debug symbols
libpcre3-dev - Perl 5 Compatible Regular Expression Library - development files
libpcrecpp0 - Perl 5 Compatible Regular Expression Library - C++ runtime files
libpcre3 - Perl 5 Compatible Regular Expression Library - runtime files
cl-ppcre - Portable Regular Express Library for Common Lisp
gambas2-gb-pcre - The Gambas regexp component
haskell-pcre-light-doc - library documentation for pcre-light
libghc6-pcre-light-dev - Haskell library for Perl 5-compatible regular expressions
libghc6-pcre-light-prof - pcre-light library with profiling enabled
liblua5.1-rex-pcre-dev - PCRE development files for the Lua language version 5.1
liblua5.1-rex-pcre0 - Perl regular expressions library for the Lua language version 5.1
libpcre++-dev - C++ wrapper class for pcre (development)
libpcre++0 - C++ wrapper class for pcre (runtime)
libpcre-ocaml - OCaml bindings for PCRE (runtime)
libpcre-ocaml-dev - OCaml bindings for PCRE (Perl Compatible Regular Expression)
pcregrep - grep utility that uses perl 5 compatible regexes.
pike7.6-pcre - PCRE module for Pike
sqlite3-pcre - Perl-compatible regular expression support for SQLite
postfix-pcre - PCRE map support for Postfix
第四种思路
我遇到了同样的问题,解决方案是在其他答案中做一切建议并安装PCRE的开发文件:
apt-get安装build-essential
apt-get安装libtool
apt-get安装libpcre3-dev
apt-get安装libpcre3
参考资料
linux安装pcre错误,安装PCRE时出错相关推荐
- python中scipy及pandas安装成功,但import时出错,教你解决问题
1.python中scipy 安装成功,但import时出错,即出现如下问题 按照流程,先安装numpy+mkl,再安装scipy,cmd命令窗口提示成功安装,但是import时却错误,这个问题我研究 ...
- unity安装问题:启动编译器时出错:许可证无效
在使用unityhub安装完unity后,尝试新建项目,发现出现: 启动编译器时出错:许可证无效 原因时未激活许可证. 激活许可证的方法是: 点击右上角的设置选项,许可证管理,选择激活许可证,选择un ...
- 32位驱动安装到64位操作系统时出错
在32位操作系统上,一直运行挺好的驱动,但当操作系统安装了windows 2008 R2 (64bits),再安装以前的驱动时,一直报0x800f0203错误,windows对此的错误定义是" ...
- fedora安装 设置基础软件仓库时出错
首先检查你的网络 然后点击安装源,然后配上阿里云的 http://mirrors.aliyun.com/centos/7/os/x86_64/ 我这里时选择的这个版本,根据自己的需求来 然后点击安装
- 金蝶KS客户端无法安装,提示“iKernel.exe时出错”
1.在C:\Program Files (x86)\Common Files\InstallShield\Engine\6\Intel 32\路径下找到"iKernel.exe"程 ...
- linux下做u盘启动权限不够,Linux U盘启动安装制作工具unetbootin - 第一原理 - 小木虫 - 学术 科研 互动社区...
http://baike.baidu.com/view/1434744.htm UNetbootin (Universal Netboot Installer)为一种跨平台工具软件,可以用来建立Liv ...
- linux线程出错,在线程应用程序(linux,pthreads)中读取文件大小时出错
我试图从Linux中的文件夹中读取所有文件和目录,其线程为 获取最大文件大小&当前目录和当前目录树下的名称.在线程应用程序(linux,pthreads)中读取文件大小时出错 主线程扫描基本目 ...
- Flask扩展包安装出现错误:Could not find a version that satisfies the requirement ...
Flask扩展包安装出现错误 安装扩展包flask-bootstrap 出现错误,如下: 对pip进行更新 : python -m pip install --upgrade pip
- 自学java编译老是出错_编写HelloWorld程序编译时提示写入HelloWorld时出错是什么意思...
编写HelloWorld程序编译时提示写入HelloWorld时出错是什么意思 这个能出错的地方就难说了,能给出代码或者错误提示吗 为什么javac编译后说写入错误呢HelloWorld.java : ...
- [已解决] c#签名时出错
电赛期间忙里偷闲做了上位机, 在调试别人的Demo时出现了一下错误 [error]: 签名时出错: 未在路径 C:\Program Files (x86)\Microsoft SDKs\Windows ...
最新文章
- 利用API实现窗体淡入淡出特效
- python在删除对象时会自动调用析构函数_Python面向对象程序设计构造函数和析构函数用法分析...
- python numpy中astype使用不当导致图像出现artifact
- php动态写入vue,Vue自定义动态组件使用详解
- SAP UI5 CSS 类 sapUiSmallMarginEnd 的工作和添加原理
- Python判断变量类型
- Win7系统网页视频无法播放怎么办
- (转)让思维活跃化的几个技巧
- 分布式ID | 这六种分布式ID生成方法,总有一款适合你
- [knowledge][basic][hardware] 内存的硬件结构(转)
- 【数据结构 by 解学武】线性表简介
- qemuuser模式运行linux,在Android上使用qemu-user运行可执行文件
- linux/centos shell脚本中非交互式修改密码
- 【程序】Xilinx FPGA将DDR3内存转换为W25Q256的SPI接口,供STM32单片机调用,产生容量为256MB的USB U盘设备
- 2020-12.24 用SURF实现简易的两张图像拼接
- 江苏高考时间2021成绩查询,小高考时间2021具体时间江苏-江苏小高考成绩查询公布时间及网站...
- 可靠数据传输(RDT)的原理
- 树莓派控制PCF8591 AD/DA模块
- 别傻干了,刚离职的同事分享了他常用的19个私活平台!
- 如何把数字金额转换成中文大写