LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2009, 04:46 PM   #1
areamike
LQ Newbie
 
Registered: Nov 2004
Location: CornFields of Indiana
Distribution: RedHat/CentOS
Posts: 24

Rep: Reputation: 15
PCRE install broke phpBB


Well, I did not see a Linux-Idiots category, so I decided to post my latest bone head play in this category.

CentOS 5.2

Running Apache/PHP//MySQL from default packages in CentOS.

I recently was reading some, we'll call it "stuff", and decided I needed PCRE installed. Long story short. I downloaded and installed pcre 7.8 by doing
make make install etc....

Now, since then, certain functions in phpBB, which uses php/mysql complain of this:
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 42: preg_match() [function.preg-match]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0

hrmmm. Uh yeah, ok, I think. Well, after some investigating, the previous version of PRCE( pcre - 6.6-2.el5_1.7.i386
), which was already installed during my CentOS install, had this UTF8 support already compiled. <looks at self and proclaims one's idiocy at new levels>

Bottom line, my question. How do I revert back to the "already installed" version of PCRE on my Linux box?
 
Old 03-27-2009, 03:28 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Vote for the new category should be started. You and me would be in good company

Let's see what I can do. Either deinstall your own compiled PCRE or recompile with diffrent option should do the trick. Their also might be the chance that your php.ini includes the PCRE module some where. Or just try to reinstall the original module through package managment.

Some programms have a "make uninstall" or "make deinstall" option. Which must be run of the directory where you original run the "make install" command. If there is no make target "de/uninstall" you need to get a list of files the programm puts on the filesystem.

But before going through the hassle of deleting by hand take a look at the compile options of PCRE. "./configure --help" should give you a list. See if you can find the UTF-8 support (or what ever it's called within PCRE) and recompile with
Code:
./configure --with-utf8-support-or-what-ever-it's-called;
make && make install
To get a list of files installed during make install compile with the option "--prefix=/tmp/pcre/filelist". After make install /tmp/pcre/filelist contains all the files. You just have to revert the path to your filesystem structure and delete them.

I would just be bold an reinstall the package and see what happens. After that recompile with the --utf8-support option

Good luck and happy compiling
Zhjim
 
Old 03-27-2009, 02:12 PM   #3
areamike
LQ Newbie
 
Registered: Nov 2004
Location: CornFields of Indiana
Distribution: RedHat/CentOS
Posts: 24

Original Poster
Rep: Reputation: 15
Fixed:

Thanks for the tip.
I recompiled pcre with the following:

#./configure --enable-utf8 --enable-unicode-properties
#make
#make install

Then
# pcretest -C
PCRE version 7.8 2008-09-05
Compiled with
UTF-8 support
Unicode properties support
Newline sequence is LF
\R matches all Unicode newlines
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack

I then restarted apache and now my PHP scripts are not complaining.
I actually recompiled the first time without the unicode properties enable, which did not work.
 
Old 03-30-2009, 06:55 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by areamike View Post
I then restarted apache and now my PHP scripts are not complaining.
I actually recompiled the first time without the unicode properties enable, which did not work.
Good to hear everythings working as supposed to.

Cheers zhjim
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use PCRE in C ? raiux Programming 1 11-23-2007 06:43 AM
LXer: BitNami releases easy to install phpBB and Mantis multiplatform software stacks LXer Syndicated Linux News 0 10-13-2007 03:41 AM
PHPBB Install Help On Server carlosinfl Linux - Server 1 01-12-2007 05:55 PM
DHCPCD broke, how to install from Slackware install disk? JockVSJock Slackware 8 03-20-2006 10:04 PM
Solution: Install error with phpBB Kanon Linux - Newbie 1 03-02-2005 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration