LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-27-2010, 11:04 PM   #1
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 294

Rep: Reputation: 39
Slackware PHP PCRE compiled with no UTF-8 support


Hi there,

Sorry but I cannot find any related thread on this forum so I post this one. My Slackware installed PHP's PCRE seems not compiled with utf-8 support as I run some framework test (therefore it fails the framework test #kohana).

Can I use the current source code and change some of the slackbuild script for this purpose?

TIA
 
Old 10-27-2010, 11:16 PM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
You need to recompile

add this line:

Quote:
--enable-utf8
Then run:
$ make clean
$ make
$ make install
$ /etc/init.d/httpd restart
 
Old 10-27-2010, 11:40 PM   #3
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 294

Original Poster
Rep: Reputation: 39
Thanks,

That leads me to editing http://www.slackware.at/data/slackwa...php.SlackBuild and add the following lines:

Code:
--enable-utf8 \
--enable-unicode-properties \
Further question: I will be using php in CLI using PHPUnit. Do I need to configure another portion for CLI version?

I will be using the slackbuild (link above). Hope this work tonight. Will post tomorrow for progress.

Thanks
 
Old 10-28-2010, 01:03 AM   #4
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 294

Original Poster
Rep: Reputation: 39
I have successfully rebuilt my PHP but it seems that what I need to rebuild is PCRE and not PHP. I rebuild it anyway and it now works.
 
Old 10-28-2010, 01:05 AM   #5
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi,

Hope your problem solved.So would you mind marking post as SOLVED so its useful to others in future!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
pcre problem upgrading to php 5.2 on rhel3 tinusinfrance Linux - Server 2 10-05-2008 02:13 PM
Postfix PCRE support in SLES 10 utahnix Linux - Server 3 04-02-2008 10:08 PM
Apache + PHP (with GD+MySQL support)... non-compiled? matrixcubed Linux - Software 2 11-09-2005 01:19 PM
PHP: call to undefined function preg_match() (I think to do with PCRE) BuckRogers01 Linux - Software 1 10-17-2005 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:34 PM.

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