php gettext extension

Support for webhosts that use CentOS
paperogiallo
Posts: 3
Joined: 2007/01/11 23:39:20
Location: Como - Italy
Contact:

php gettext extension

Postby paperogiallo » 2007/01/11 23:59:43

Some times ago, I wanted to add XSL extension to php5. I just downloaded a package called php-xml-5.1.6.[something-other], installed it via rpm (or yum, I don't remember now), and anything goes well.

So, now I'm looking for php-gettext extension (in other words, a package providing a DSO object ".so") to add (in the same simple way) gettext capabilities to my php-5.1.6 installation.
Because I've found no rpm for Centos, I tried this rpm for PLD, but test installation of this file fails due to missing dependancies of php-common-2 package.

Where I can find the package for Centos?

Thanks in advance for support.

_YD

pjwelsh
Posts: 2580
Joined: 2007/01/07 02:18:02
Location: Central IL USA

php gettext extension

Postby pjwelsh » 2007/01/12 01:39:07

http://rpm.pbone.net/ will be your friend for this!
More specifically, the "advanced" search will be more to your liking. Make sure to *UN* check everything then *CHECK* the ones closest to being buildable for you like FC4,5 CentOS (naturally):
http://rpm.pbone.net/index.php3/stat/2/simple/2

paperogiallo
Posts: 3
Joined: 2007/01/11 23:39:20
Location: Como - Italy
Contact:

Re: php gettext extension

Postby paperogiallo » 2007/01/12 16:54:10

pjwelsh, thank you. :-)

I've tried that kind of search before I posted this 3d, of course, but there's nothing that suites my needs. And I guess why... the fact is that I don't use "simple" php5.1.6, but a version coming with DSM ( a control panel by Zervex, www.zervex.com), called dsmphp5. In standard php5, gettext is installed by default, so I think I'll never find any package (for Centos or FC) that provides something (like gettext) that is normally already included (in Centos or FC)... :-(

(sorry my poor english 8-) )

_YD

pjwelsh
Posts: 2580
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: php gettext extension

Postby pjwelsh » 2007/01/12 17:45:28

I more closely understand now... You may try and cheat by extracting the contents of a php-5.1.6 (or whatever version dsmphp5 version matches) and attempt to just put the gettext files into place. I'm not a developer for php so I don't know is this is acceptable. It works for other dev tools like Perl very often (when you have no OTHER better choice).

paperogiallo
Posts: 3
Joined: 2007/01/11 23:39:20
Location: Como - Italy
Contact:

Re: php gettext extension

Postby paperogiallo » 2007/01/13 00:22:28

Yes, I think I've NO OTHER BETTER choice :-D (I'm a Windows user in all-day life, and I never compiled nothing from source, so I think starting from my VPS isn't a good idea... ;-) )

I tried to do what you wrote, but I got an error on PHP startup:

[13-Jan-2007 01:34:03] PHP Warning: PHP Startup: gettext: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=1
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0

Do you think there's a way to fix that ONE to become a ZERO? :-D

_YD

Asiby
Posts: 1
Joined: 2008/05/05 16:19:48
Contact:

Re: php gettext extension

Postby Asiby » 2008/05/05 16:27:50

php-gettext is part of php-common and I believe that it is part of centosplus. But try this first:

yum install php-common

If it does work, then you simply have to activate centosplus and try again.

To activate centosplus, edit the file /etc/yum.repos.d/CentOS-Base.repo and change the value enabled=0 to enabled=1 in the section called [centosplus]