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 这句
Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0的更多相关文章
- Error:java:Compilation failed: internal java compiler error
在IDEA中编译时出现这个错误:Error:java:Compilation failed: internal java compiler error! Information:Using javac ...
- PHP Warning: preg_match(): JIT compilation failed: no more memory in
PHP7.3出现如下错误:PHP Warning: preg_match(): JIT compilation failed: no more memory in ... 解决方案: 修改 /usr/ ...
- Compilation failed: internal java compiler error
在Idea中编译时出现这个错误:Error:java: Compilation failed: internal java compiler error. Information:Using java ...
- idea中解决Error:java: Compilation failed: internal java compiler error的问题
项目中,使用gradle做项目构建,当我们想更改JDK的版本时,报以下错误: Information:Using javac 1.8.0_111 to compile java sourcesInfo ...
- Java异常 | Error:java: Compilation failed: internal java compiler error
背景 今天网上下载了一个项目,编辑运行报如下异常: Error:java: Compilation failed: internal java compiler error 经过往经验,读项目的编译环 ...
- idea报错:error java compilation failed internal java compiler error
idea下面报如下问题 error java compilation failed internal java compiler error 解决办法:Setting->Compiler-> ...
- jsmooth compilation failed error null
JSmooth 0.9.9-7 在将 jar 文件打包成 exe 文件时报错:jsmooth compilation failed error null 原因,没有指定 logo 图片文件. http ...
- idea Error:java: Compilation failed: internal java compiler error
idea 遇到Error:java: Compilation failed: internal java compiler error 是提示说你当前使用的编译器jdk版本不对. 按住Ctrl+Alt ...
- Gradle sync failed: Gradle version 2.2 is required. Current version is 2.10.
Gradle sync failed: Gradle version 2.2 is required. Current version is 2.10. If using the gradle wra ...
随机推荐
- 138. Copy List with Random Pointer
A linked list is given such that each node contains an additional random pointer which could point t ...
- sql server 2012 如何收缩事务日志
sql2008不再支持 BACKUP LOG 数据库名 WITH NO_LOG 语句 BACKUP Log zxta with no_log 截断事务日志 sql2008 提示错误如下 BACKU ...
- HashMap 实现原理(复习)
1. HashMap的数据结构 数据结构中有数组和链表来实现对数据的存储,但这两者基本上是两个极端. 数组 数组存储区间是连续的,占用内存严重,故空间复杂的很大.但数组的二分查找时间复杂度小,为O(1 ...
- 执行sh文件 进行MongoDB的业务逻辑导入
将从HDFS中的数据转化为Json格式写入文件后,十个文件的文件名为 文件名_01 ...._02 ....03格式. 编写个简单的sh文件 通过for do循环让i+1 文件名对应上就可以的- -执 ...
- Form_Form Builder国际化多语言开发(案例)
2014-05-06 Created By BaoXinjian
- 程序员的sql金典
1.数据库基础概念 2.数据类型 3.通过SQL语句管理数据表 4.数据的增删改 5.Select的基本用法 6.高级数据过滤 7.数据分组 8.限制结果集行数和抑制重复数据 9.计算字段 10.不从 ...
- Bugtags:移动时代首选 Bug 管理系统
Bug 管理系统之重 回想我们每次开启一个新项目,筹备之初,首要之事就是选择一款 Bug 管理系统.市面上有诸多 Bug 管理系统可供选择:Jira.Redmine.Bugzilla 等.这些系统功能 ...
- [原创博文] 用Python做统计分析 (Scipy.stats的文档)
[转自] 用Python做统计分析 (Scipy.stats的文档) 对scipy.stats的详细介绍: 这个文档说了以下内容,对python如何做统计分析感兴趣的人可以看看,毕竟Python的库也 ...
- JS闭包研究、自造困扰与解答
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <m ...
- java小程序 示例
乘法表: package com.test; import org.junit.Test; public class TestSwitch { @Test public void test() { f ...