Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0

在安装pcre-8.13.tar.gz时候出了错,说是缺少libpcre.so.0 下面是解决方法。真不容易哦,一个问题来没解决,新问题就出来了。一环扣一环,会搞死去。。

error
grep: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
缺少libpcre.so.0文件 要下载这个文件,如果系统是32位的,则需要把这个文件放在/lib目录下;如果系统是64位的,则要把它放在/lib64目录下

可下以载pcre-7.8-6.el6.x86_64.rpm 这个文件进入安装 ,安装后系统的/lib64目录下会自动添加libpcre.so.0文件

下面是正式解决方法

linux下安装软件
1、下载原文件pcre-8.13.tar.gz
2、解压文件(可以解压到指定目标)
tar zxvf pcre-8.13.tar.gz
cd pcre-8.13 #切换到文件解压所在目标
3、设置
./configure --enable-utf8 --enable-unicode-properties
4、
make
make install

安装完成后,重生编译php

../configure --prefix=/home/web/php-5.4/ --with-apxs2=/home/web/apache/bin/apxs --with-mysql=mysq安装路径
--with-config-file-path=/home/web/php-5.4/ --enable-mbstring

注意--with-apxs2=/home/web/apache/bin/apxs作用是
会在 /home/web/apache//modules 目录下生成一个 libphp5.so, 并且在httpd.conf 中会自动加上
LoadModule php5_module modules/libphp5.so 这句

时间: 2024-07-30 06:36:06

Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0的相关文章

grep: this version of PCRE is not compiled with PCRE_UTF8 support

前言: 公司服务器在迁移之后出现了问题,在grep使用正则表达式的时候老是提示grep: this version of PCRE is not compiled with PCRE_UTF8 support,pcre是正则表达式的函数库,使如果不改正,很烦人.我是源码安装的.所以重新编译的时候加上支持utf-8的选项就可以了. 步骤: (1)卸载prce 假如是rpm包,直接rpm -qa | grep prce 或rpm -e pcre --nodeps 就可以了,我这边用的是源码包编译安装

idea报错:error java compilation failed internal java compiler error

idea下面报如下问题 error java compilation failed internal java compiler error 解决办法:Setting->Compiler->Java Compiler,发现有的module是1.7的是1.6的,重新删除再导入好了

Error:java: Compilation failed: internal java comp

导入了一个idea project ,编译运行时候,提示Error:java: Compilation failed: internal java compiler error.查看了model的jdk版本,无异常,其实只需设置Setting->Compiler->Java Compiler,发现有的module是1.7的是1.6的,选 下就好了

jsmooth compilation failed error null

JSmooth 0.9.9-7 在将 jar 文件打包成 exe 文件时报错:jsmooth compilation failed error null 原因,没有指定 logo 图片文件. http://kechengpuzi.com/q/s14902409 连接中说:还有可能是 logo 文件图片问题: This is a common issue users come across. JSmooth seems very limited in the size and bitdepth o

grep 正则问题 this version of PCRE is compiled without UTF support

问题 在使用grep -P,出现如下报错: grep: this version of PCRE is compiled without UTF support 原因 有些系统支持的正则规范不同. 解决办法 使用egrep或grep –E 代替. 正则表达式分类 基本正则表达式:BRE grep ,egrep –G 扩展正则表达式:ERE grep -E, egrep 扩展正则表达式extended regular expression比基本正则表达式basic regular expressi

Failed to resolve: com.android.support:appcompat-v7:27.0.1问题解决

今天,在毫无征兆的情况下AndroidStudio又抽风了,搞了大半天,试了网上众多方案,终于解决了这个问题.咱们一步一步来 第一步:这是最开始的bug Error:Failed to resolve: com.android.support:support-annotations:27.0.1 Install Repository and sync projectOpen FileShow in Project Structure dialog Error:Failed to resolve:

Error:Failed to resolve: com.android.support:support-annotations:26.0.2

异常信息记录: Error:Failed to resolve: com.android.support:support-annotations:26.0.2 <a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:D:/AndroidStudioProjects/Qsb2/appild.gradle">

IDEA Error:java: Compilation failed: internal java compiler error

解决办法很简单:File-->Setting...-->Build,Execution,Deployment-->Compiler-->Java Compiler 设置相应Module的target bytecode version的合适版本(跟你jkd版本一致),这里我改成1.8版本的. 原文地址:https://www.cnblogs.com/comeluder/p/8215317.html

PHP Fatal error: Uncaught ErrorException: preg_match_all (): JIT compilation failed: no more memory in phar

PHP 升级到 7.3 后,出现 BUG: 解决办法:修改php.ini文件,;pcre.jit=1 =>  pcre.jit=0 原文地址:https://www.cnblogs.com/peteremperor/p/10545032.html