Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #16172 > unrolled thread
| Started by | James Wang <jwang25610@gmail.com> |
|---|---|
| First post | 2016-01-11 03:07 -0800 |
| Last post | 2016-01-12 21:19 +0100 |
| Articles | 12 — 3 participants |
Back to article view | Back to comp.lang.php
Build php pthreads 2 from source James Wang <jwang25610@gmail.com> - 2016-01-11 03:07 -0800
Re: Build php pthreads 2 from source Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-11 08:14 -0500
Re: Build php pthreads 2 from source James Wang <jwang25610@gmail.com> - 2016-01-11 06:24 -0800
Re: Build php pthreads 2 from source Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-11 10:01 -0500
Re: Build php pthreads 2 from source James Wang <jwang25610@gmail.com> - 2016-01-11 07:36 -0800
Re: Build php pthreads 2 from source Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-11 12:32 -0500
Re: Build php pthreads 2 from source James Wang <jwang25610@gmail.com> - 2016-01-12 01:58 -0800
Re: Build php pthreads 2 from source Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-12 09:04 -0500
Re: Build php pthreads 2 from source James Wang <jwang25610@gmail.com> - 2016-01-12 06:23 -0800
Re: Build php pthreads 2 from source "J.O. Aho" <user@example.net> - 2016-01-12 17:39 +0100
Re: Build php pthreads 2 from source James Wang <jwang25610@gmail.com> - 2016-01-12 08:52 -0800
Re: Build php pthreads 2 from source "J.O. Aho" <user@example.net> - 2016-01-12 21:19 +0100
| From | James Wang <jwang25610@gmail.com> |
|---|---|
| Date | 2016-01-11 03:07 -0800 |
| Subject | Build php pthreads 2 from source |
| Message-ID | <3bbab9f2-e0fa-482a-a0b5-ffae6c1e9c80@googlegroups.com> |
Hi All, I have downloaded the source from: http://pecl.php.net/package/pthreads/2.0.2 However there is no Makefile/configure nor build instructions in the README.md file. Please shed some light. Thanks a lot in advance James
[toc] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-01-11 08:14 -0500 |
| Message-ID | <n709mv$fqn$1@jstuckle.eternal-september.org> |
| In reply to | #16172 |
On 1/11/2016 6:07 AM, James Wang wrote: > Hi All, > > I have downloaded the source from: > http://pecl.php.net/package/pthreads/2.0.2 > > However there is no Makefile/configure nor build instructions in the README.md file. > > Please shed some light. > > Thanks a lot in advance > James > See the documentation on installing PECL extensions: http://php.net/manual/en/install.pecl.php -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | James Wang <jwang25610@gmail.com> |
|---|---|
| Date | 2016-01-11 06:24 -0800 |
| Message-ID | <5b76ef5d-cbe1-4069-8e9b-a5c310e827d6@googlegroups.com> |
| In reply to | #16177 |
On Monday, 11 January 2016 13:14:47 UTC, Jerry Stuckle wrote: > See the documentation on installing PECL extensions: > > http://php.net/manual/en/install.pecl.php > Hi Jerry, I did try firstly: sudo pecl install pthreads and got: pecl/pthreads requires PHP (version >= 7.0.0RC5), installed version is 5.3.29 Thanks a lot.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-01-11 10:01 -0500 |
| Message-ID | <n70fv5$937$1@jstuckle.eternal-september.org> |
| In reply to | #16178 |
On 1/11/2016 9:24 AM, James Wang wrote: > On Monday, 11 January 2016 13:14:47 UTC, Jerry Stuckle wrote: >> See the documentation on installing PECL extensions: >> >> http://php.net/manual/en/install.pecl.php >> > > Hi Jerry, > > I did try firstly: > sudo pecl install pthreads > and got: > pecl/pthreads requires PHP (version >= 7.0.0RC5), installed version is 5.3.29 > > Thanks a lot. > Ok, so the latest version of pthreads requires PHP 7. That gives you two choices - upgrade your PHP to V7 or install an older version of pthreads. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | James Wang <jwang25610@gmail.com> |
|---|---|
| Date | 2016-01-11 07:36 -0800 |
| Message-ID | <9d820416-36be-4b6b-b68e-09be3b5b9273@googlegroups.com> |
| In reply to | #16179 |
On Monday, 11 January 2016 15:01:41 UTC, Jerry Stuckle wrote: > > Ok, so the latest version of pthreads requires PHP 7. That gives you > two choices - upgrade your PHP to V7 or install an older version of > pthreads. I am trying 3rd option: building php from source (./configure ... --enable-pthreads) shall report late how I am getting on
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-01-11 12:32 -0500 |
| Message-ID | <n70opr$e8p$1@jstuckle.eternal-september.org> |
| In reply to | #16180 |
On 1/11/2016 10:36 AM, James Wang wrote: > On Monday, 11 January 2016 15:01:41 UTC, Jerry Stuckle wrote: > >> >> Ok, so the latest version of pthreads requires PHP 7. That gives you >> two choices - upgrade your PHP to V7 or install an older version of >> pthreads. > > I am trying 3rd option: > building php from source (./configure ... --enable-pthreads) > > shall report late how I am getting on > Good luck. According to the documentation, pthreads V3 requires PHP 7. I do not recommend building from source. Use your distro's PHP instead. If you build from source, you will have to watch for patches (especially security-related) yourself. Additionally, other modules like php-mysql may also require rebuilding from scratch - just another thing you need to watch out for. Using versions from your distro is much easier and much safer. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | James Wang <jwang25610@gmail.com> |
|---|---|
| Date | 2016-01-12 01:58 -0800 |
| Message-ID | <46cfe500-1750-45e7-91d3-42a3d69c069d@googlegroups.com> |
| In reply to | #16181 |
On Monday, 11 January 2016 17:32:23 UTC, Jerry Stuckle wrote: > >> > >> Ok, so the latest version of pthreads requires PHP 7. That gives you > >> two choices - upgrade your PHP to V7 or install an older version of > >> pthreads. > > > > I am trying 3rd option: > > building php from source (./configure ... --enable-pthreads) > > > > shall report late how I am getting on No luck yet. > > > > Good luck. According to the documentation, pthreads V3 requires PHP 7. > > I do not recommend building from source. Use your distro's PHP instead. > If you build from source, you will have to watch for patches > (especially security-related) yourself. Additionally, other modules > like php-mysql may also require rebuilding from scratch - just another > thing you need to watch out for. > > Using versions from your distro is much easier and much safer. agreed. and please refer to the beginning of this post: I downloaded older pthreads version (2.0) but found no instruction how to build it. Thanks
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-01-12 09:04 -0500 |
| Message-ID | <n73111$49q$1@jstuckle.eternal-september.org> |
| In reply to | #16199 |
On 1/12/2016 4:58 AM, James Wang wrote: > On Monday, 11 January 2016 17:32:23 UTC, Jerry Stuckle wrote: >>>> >>>> Ok, so the latest version of pthreads requires PHP 7. That gives you >>>> two choices - upgrade your PHP to V7 or install an older version of >>>> pthreads. >>> >>> I am trying 3rd option: >>> building php from source (./configure ... --enable-pthreads) >>> >>> shall report late how I am getting on > > No luck yet. > >>> >> >> Good luck. According to the documentation, pthreads V3 requires PHP 7. >> >> I do not recommend building from source. Use your distro's PHP instead. >> If you build from source, you will have to watch for patches >> (especially security-related) yourself. Additionally, other modules >> like php-mysql may also require rebuilding from scratch - just another >> thing you need to watch out for. >> >> Using versions from your distro is much easier and much safer. > > agreed. and please refer to the beginning of this post: I downloaded older pthreads version (2.0) but found no instruction how to build it. > > Thanks > Yes, and I gave you the link on how to build it. You use the PECL command to download and install the packages. You can use it to install any version of any package in the PECL library, i.e. pecl install pthreads-2.0.10 -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | James Wang <jwang25610@gmail.com> |
|---|---|
| Date | 2016-01-12 06:23 -0800 |
| Message-ID | <71c53fb4-e3f9-4289-936e-c1bc783d4604@googlegroups.com> |
| In reply to | #16210 |
On Tuesday, 12 January 2016 14:04:57 UTC, Jerry Stuckle wrote: > Yes, and I gave you the link on how to build it. You use the PECL > command to download and install the packages. You can use it to install > any version of any package in the PECL library, i.e. > > pecl install pthreads-2.0.10 Thanks a lot indeed (though, i had: configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled) Update: I built php7 from source and installed pthreads using php7's pecl tool Thanks again
[toc] | [prev] | [next] | [standalone]
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Date | 2016-01-12 17:39 +0100 |
| Message-ID | <dfkoipFf136U1@mid.individual.net> |
| In reply to | #16214 |
On 01/12/2016 03:23 PM, James Wang wrote: > On Tuesday, 12 January 2016 14:04:57 UTC, Jerry Stuckle wrote: > >> Yes, and I gave you the link on how to build it. You use the PECL >> command to download and install the packages. You can use it to install >> any version of any package in the PECL library, i.e. >> >> pecl install pthreads-2.0.10 > > Thanks a lot indeed (though, i had: configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled) > > Update: I built php7 from source and installed pthreads using php7's pecl tool > > Thanks again > You need to enable ZTS when you configure PHP source before compiling. ./configure --enable-maintainer-zts ... -- //Aho
[toc] | [prev] | [next] | [standalone]
| From | James Wang <jwang25610@gmail.com> |
|---|---|
| Date | 2016-01-12 08:52 -0800 |
| Message-ID | <6ec06fa1-1dc2-46e8-960a-9f39c01dd5b5@googlegroups.com> |
| In reply to | #16219 |
On Tuesday, 12 January 2016 16:40:05 UTC, J.O. Aho wrote: > You need to enable ZTS when you configure PHP source before compiling. > > ./configure --enable-maintainer-zts ... > Indeed. I did that when I built php7 from source. The error was for already installed php (5.3.29) Thanks a lot
[toc] | [prev] | [next] | [standalone]
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Date | 2016-01-12 21:19 +0100 |
| Message-ID | <dfl5f6FidafU1@mid.individual.net> |
| In reply to | #16220 |
On 01/12/2016 05:52 PM, James Wang wrote: > On Tuesday, 12 January 2016 16:40:05 UTC, J.O. Aho wrote: > >> You need to enable ZTS when you configure PHP source before compiling. >> >> ./configure --enable-maintainer-zts ... >> > > > Indeed. I did that when I built php7 from source. > > The error was for already installed php (5.3.29) > > Thanks a lot > > You need to rebuild the php5 too if you want it to support pthreads. By default everything will try to build against your php5 unless you specifically tell it to build against php7. -- //Aho
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web