1 (edited by Sigtran 2010-10-14 10:19:25)

Topic: Installing from remi.src.rpm

Hi all, I have a bit of trouble trying to install a XXX.remi.src.rpm (no matter which one).
My system is CentOS 5.5, when I do:

rpm -ivh XXX.remi.src.rpm

EDIT:

prm build --rebuild

didnt work either and I dont get any errors or warnings*
I only get 2 folders in /usr/src/redhat tree:
"SOURCES" & "SPECS". Im missing however "BUILD" folder, -> cant configure/make/install. Or is it done in some other way now?
P.S. if its of any help, im trying to compile and install php-5.3.3-1.remi.src.rpm, but i have the same issue with every other remi.src.rpm package.

Any help would be appreciated.

Re: Installing from remi.src.rpm

I don't understand what is your problem.

Any error message ?

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

3 (edited by Sigtran 2010-10-14 11:21:03)

Re: Installing from remi.src.rpm

No error messages, I just dont get a binary package when I do

prm build --rebuild php-5.3.3-1.remi.src.rpm

and I dont get a /usr/src/redhat/BUILD folder when I do

rpm -ivh php-5.3.3-1.remi.src.rpm

--> the question really is how do I install the package or where do binary/build files go (locate php only showed packages previously installed)? OR am I doing something wrong?

Re: Installing from remi.src.rpm

And why don't you simply use the available binary packages ?

To build RPM, you need a build environment.

+

P.S., sorry but only in french http://doc.fedora-fr.org/wiki/RPM_:_env … nstruction

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Installing from remi.src.rpm

Thanks for the instructions, I cant use the binary package, because php doesnt respect global variables like somaxconn. They can only be defined @ build time.

Re: Installing from remi.src.rpm

I don't understand your response.
somaxconn is a kernel parameter, don't know any PHP configure option of this name.

Any link ?

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

7 (edited by Sigtran 2010-10-14 15:26:37)

Re: Installing from remi.src.rpm

sure, here you go:
http://bugs.php.net/bug.php?id=49616
The kernel parameter is easy to increase, but php ignores it. you can check it by simply creating a file.php and adding to it:

<?php
echo SOMAXCONN;
?>
/sbin/sysctl -a | grep somaxconn

will give you the kernel parameter value.

EDIT: if its of any interest to you: after a wile, i have rebuild the php using src.rpm, but for some reason it didint make any difference (echo SOMAXCONN; returns 128). I will retry building it from the source.

Re: Installing from remi.src.rpm

I really don't see where changing this "constant" will change anything in a running PHP...

There is absolutely no place in all the PHP source code where this value is used.
It was an old hard coded limit (kernel < 2.4.25) which is now configurable.

So... I really don't understand what is your need.


+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

9 (edited by Sigtran 2010-10-14 18:11:43)

Re: Installing from remi.src.rpm

Ive made a TCP socket server. I havent yet tested it with the Q above ~ 70, but I suspected that it would not work once the Q hits 128. This bug was there last year, but ive used windows then (- it would just refuse the connection and it was much easier to fix...), If you are sure that its not an issue under linux, then WoW ! I just wasted a day trying to fix something thats not there. Thanks for all the help. Ill report back, once tested with more connections in the Q.