Add new comment

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Submitted by unreal4u (not registered) on Thu, 2009-04-09 05:46.
If you have installed PHP 5.2.6 from the test repo
/etc/yum.repos.d/centos-test.repo: 
[c5-testing] 
name=CentOS-5 Testing 
baseurl=http://dev.centos.org/centos/5/testing/$basearch/ 
enabled=1 
gpgcheck=1 
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing 
instead of the default 5.1.6, some aditional changes have to be made in order to compile properly.

In php.spec:
Original:
Patch0: php-5.2.6-suhosin.patch 
Patch1: php-5.2.4-gnusrc.patch
 ..... 
%patch0 -p1 -b .suhosin 
%patch1 -p1 -b .gnusrc 
Replace with:
Patch0: php-5.2.6-suhosin.patch 
#Patch1: php-5.2.4-gnusrc.patch
 ..... 
%patch0 -p1 -b .suhosin 
#%patch1 -p1 -b .gnusrc 
I had to comment out the php-5.2.4-gnusrc.patch because of a tip found here.

After that, libiconv wasn't found; so i changed in "php.spec" line 398:
--with-iconv \

to:

--with-iconv=/usr/local/lib/libiconv.so \

And than it compiled correctly:
Free Image Hosting at www.ImageShack.us

QuickPost

@falko: Thanks for your GREAT guides! It really helps a lot :D
Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.

Reply

*
*
The content of this field is kept private and will not be shown publicly.


*

  • Images can be added to this post.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div>
  • Lines and paragraphs break automatically.