Hi all,
I have a problem, I'm running CentOS 4.3 and I just installed php with yum, later I realize that I nedd LDAP support so I download the php-ldap rpm with yum, everything was OK...but now..the problem is that I need Informix support, so I search for a php-ifx module to see if it exist...but no. So, what are my options? recompile a fresh new php with informix support...loosing the automatic updates with yum... or compile php with informix support in another machine and then copy the "informix.so" to "/usr/lib/php4/"? will that work?
Claudio
On Thursday 08 June 2006 09:53, Claudio Castro wrote:
Hi all,
I have a problem, I'm running CentOS 4.3 and I just installed php with yum, later I realize that I nedd LDAP support so I download the php-ldap rpm with yum, everything was OK...but now..the problem is that I need Informix support, so I search for a php-ifx module to see if it exist...but no. So, what are my options? recompile a fresh new php with informix support...loosing the automatic updates with yum... or compile php with informix support in another machine and then copy the "informix.so" to "/usr/lib/php4/"? will that work?
Claudio _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Rebuild the php rpm with your changes and redo that operation on every updates
Charles Lacroix escribió:
On Thursday 08 June 2006 09:53, Claudio Castro wrote:
Hi all,
I have a problem, I'm running CentOS 4.3 and I just installed php with yum, later I realize that I nedd LDAP support so I download the php-ldap rpm with yum, everything was OK...but now..the problem is that I need Informix support, so I search for a php-ifx module to see if it exist...but no. So, what are my options? recompile a fresh new php with informix support...loosing the automatic updates with yum... or compile php with informix support in another machine and then copy the "informix.so" to "/usr/lib/php4/"? will that work?
Claudio _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Rebuild the php rpm with your changes and redo that operation on every updates
Is it too complicated? How do I rebuild the php rpm? I've installed php with yum..so no rpm is available.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Thursday 08 June 2006 10:01, Claudio Castro wrote:
Charles Lacroix escribió:
On Thursday 08 June 2006 09:53, Claudio Castro wrote:
Hi all,
I have a problem, I'm running CentOS 4.3 and I just installed php with yum, later I realize that I nedd LDAP support so I download the php-ldap rpm with yum, everything was OK...but now..the problem is that I need Informix support, so I search for a php-ifx module to see if it exist...but no. So, what are my options? recompile a fresh new php with informix support...loosing the automatic updates with yum... or compile php with informix support in another machine and then copy the "informix.so" to "/usr/lib/php4/"? will that work?
Claudio _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Rebuild the php rpm with your changes and redo that operation on every updates
Is it too complicated? How do I rebuild the php rpm? I've installed php with yum..so no rpm is available.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
It's not hard to do.
Just get the rpm source froma mirror and install it.
- mkdir -p /usr/src/redhat/{BUILD,RPMS,SOURCES,SPECS,SRPMS} - rpm -ihv php-4.x.x-src.rpm - cd /usr/src/redhat/SPECS - edit php.spec to add the --with-informix or whatever compilation flag you need.
save the file, than
rpmbuild -ba php.spec
it will compile and build everything and if no errors you will get a list of the new rpms in RPMS directory.
I hope this helps
later Charles
On Thu, 8 Jun 2006, Charles Lacroix wrote:
Rebuild the php rpm with your changes and redo that operation on every updates
Is it too complicated? How do I rebuild the php rpm? I've installed php with yum..so no rpm is available.
It's not hard to do.
Just get the rpm source froma mirror and install it.
- mkdir -p /usr/src/redhat/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- rpm -ihv php-4.x.x-src.rpm
- cd /usr/src/redhat/SPECS
- edit php.spec to add the --with-informix or whatever compilation flag you
need.
You might consider adding some flotsam to the end of the Release tag (typically defined near the top of the spec file) so rpm recognizes the new rpms as upgrades.
The current release is, I believe,
Version : 4.3.9 Release : 3.12
You might consider making your locally built to be Release "3.12.local" or something like that. If you use the same appendix for all locally rebuilt packages, it's easy to spot them in an "rpm -qa" list.
On Thursday 08 June 2006 12:48, Paul Heinlein wrote:
On Thu, 8 Jun 2006, Charles Lacroix wrote:
Rebuild the php rpm with your changes and redo that operation on every updates
Is it too complicated? How do I rebuild the php rpm? I've installed php with yum..so no rpm is available.
It's not hard to do.
Just get the rpm source froma mirror and install it.
- mkdir -p /usr/src/redhat/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- rpm -ihv php-4.x.x-src.rpm
- cd /usr/src/redhat/SPECS
- edit php.spec to add the --with-informix or whatever compilation flag
you need.
You might consider adding some flotsam to the end of the Release tag (typically defined near the top of the spec file) so rpm recognizes the new rpms as upgrades.
The current release is, I believe,
Version : 4.3.9 Release : 3.12
You might consider making your locally built to be Release "3.12.local" or something like that. If you use the same appendix for all locally rebuilt packages, it's easy to spot them in an "rpm -qa" list.
good idea, i always add a little something myself.
Charles Lacroix wrote on Thu, 8 Jun 2006 09:57:40 -0400:
Rebuild the php rpm with your changes and redo that operation on every updates
you can also ask on rpmforge if they can build that extra so against RHEL4.
Kai
Claudio Castro wrote on Thu, 08 Jun 2006 10:53:31 -0300:
or compile php with informix support in another machine and then copy the "informix.so" to "/usr/lib/php4/"? will that work?
Remmeber, you would need to build with the same PHP version source that centOS uses! Using the src.rpm from a 4.3 mirror looks really like the best thing you can do! Then just install the rpm for that single so. I've never done it before so I can't give you a better explanation. I assume you should be able to learn what you need to do for a single php_ifx rpm from the section about any other module in the spec file.
Kai