23060
![]() |
|
|
|
|
|||||||
| Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software). |
![]() |
|
|
Thread Tools | Display Modes |
|
#51
|
|||
|
|||
|
As far as I know, the port has not been updated yet.
__________________
... |
|
#52
|
|||
|
|||
|
Looks like something to try out: http://lists.freebsd.org/pipermail/f...er/058016.html
__________________
... |
|
#53
|
|||
|
|||
|
Quote:
Code:
cd /usr/ports && patch -p0 -E ~/php53.diff Code:
cd /usr/ports && patch -p0 -E < ~/php53.diff |
|
#54
|
|||
|
|||
|
Success. I am now running PHP 5.3.1 with all the extensions (php5-extensions) working using ports. Thank you Alex Dupre.
|
|
#55
|
|||
|
|||
|
and that to type then after this command "cd /usr/ports && patch -p0 -E < ~/php53.diff" show: FILE to Patch: ???? That i have here write? Sorry im new, 3 day with freebsd
|
|
#56
|
|||
|
|||
|
Save the file in your home directory.
Example: Code:
wget http://www.alexdupre.com/php53.diff mv php53.diff ~/ cd /usr/ports patch -p0 -E < ~/php53.diff |
|
#57
|
|||
|
|||
|
Quote:
Code:
fetch http://www.alexdupre.com/php53.diff mv php53.diff ~/ cd /usr/ports patch -p0 -E < ~/php53.diff |
|
#58
|
|||
|
|||
|
Yes. My bad. fetch would be better. I'm just used to using wget.
|
|
#59
|
||||
|
||||
|
Wow, about time; Better late than never, I guess. I'll wait for it to be committed to the ports tree though.
__________________
Proud FreeBSD 8-RELEASE user. CodeBlock on irc.freenode.net and irc.eighthbit.net. |
|
#60
|
|||
|
|||
|
Tried it on my test server successfully, but would still wait for the official port version for my production boxes.
|
|
#61
|
|||
|
|||
|
Any news on when 5.3.* will be added to the ports system? Just tried the patch on a brand new 8.0 system, and it gives me the following errors building mysqli:
Code:
/usr/ports/databases/php5-mysqli/work/php-5.3.1/ext/mysqli/mysqli.c:35:45: error: ext/mysqlnd/mysqlnd_portability.h: No such file or directory /usr/ports/databases/php5-mysqli/work/php-5.3.1/ext/mysqli/mysqli_api.c:34:45: error: ext/mysqlnd/mysqlnd_portability.h: No such file or directory |
|
#62
|
|||
|
|||
|
Code:
/usr/ports/databases/php5-mysqli/work/php-5.3.1/ext/mysqli/mysqli.c:35:45: error: ext/mysqlnd/mysqlnd_portability.h: No such file or directory /usr/ports/databases/php5-mysqli/work/php-5.3.1/ext/mysqli/mysqli_api.c:34:45: error: ext/mysqlnd/mysqlnd_portability.h: No such file or directory |
|
#63
|
|||
|
|||
|
Code:
usr/ports/databases/php5-mysqli/work/php-5.3.1/ext/mysqli/mysqli.c:35:45: error: ext/mysqlnd/mysqlnd_portability.h: No such file or directory /usr/ports/databases/php5-mysqli/work/php-5.3.1/ext/mysqli/mysqli_api.c:34:45: error: ext/mysqlnd/mysqlnd_portability.h: No such file or directory Code:
PORTNAME= php5
PORTVERSION= 5.3.1
PORTREVISION?= 0
CATEGORIES?= lang devel www
MASTER_SITES= ${MASTER_SITE_PHP}
MASTER_SITE_SUBDIR= distributions
DISTNAME= php-${PORTVERSION}
MAINTAINER= ale@FreeBSD.org
COMMENT= PHP Scripting Language
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
USE_BZIP2= yes
MAKE_JOBS_SAFE= yes
.if !defined(PKGNAMESUFFIX)
USE_AUTOTOOLS= autoconf:262
CONFIGURE_ARGS= \
--with-layout=GNU \
--with-config-file-scan-dir=${PREFIX}/etc/php \
--disable-all \
--enable-libxml \
--with-libxml-dir=${LOCALBASE} \
--with-mysqli=shared,mysqlnd \
--program-prefix=""
....
Code:
cd /usr/ports/lang/php5 && make clean /usr/local/etc/rc.d/apache22 stop [/usr/ports/lang/php5] make deinstall [/usr/ports/lang/php5] make [/usr/ports/lang/php5] make install Code:
ls /usr/local/lib/php/20090626-zts/ |grep mysql mysql.so mysqli.so start apache and check phpinfo() it works on my machine (7.2-RELEASE FreeBSD i386) have fun
Last edited by DutchDaemon; December 24th, 2009 at 03:48. |
|
#64
|
|||
|
|||
|
Has the update occurred yet?
A couple of weeks ago, I was doing a fresh install of php5-5.2.11_1 (apparently the latest in the ports). It failed, complaining of a vulnerability. So I have no php on my system and had to bring my whole system down. Still, waiting for either an upgrade to the php5-5.2.11_1 or to 5.3 but not hearing anything, I don't quite know what to do. Was advised against downloading source and compiling to avoid problems down in the future. |
|
#65
|
|||
|
|||
|
Guest2
Did the manual fix as recommended and got a Code:
/usr/ports/lang/php5 "Makefile", line 37: Unassociated shell command "--program-prefix=""" make: fatal errors encountered -- cannot continue Last edited by DutchDaemon; December 29th, 2009 at 21:44. Reason: use [code] tags! |
|
#66
|
|||
|
|||
|
Missing \ at the end of previous line?
|
|
#67
|
|||
|
|||
|
just ran portsnap. looks like it's been updated to 5.2.12
__________________
http://www.reasonproject.org/ |
|
#68
|
|||
|
|||
|
??
Code:
sed -n 35,40p Makefile
--enable-reflection \
--with-mysqli=shared,mysqlnd \
--program-prefix=""
USE_GNOME= libxml2
Last edited by DutchDaemon; December 30th, 2009 at 05:03. |
|
#69
|
|||
|
|||
|
Has anyone heard anything about an updated ETA?
|
|
#70
|
|||
|
|||
|
It should come out with 5.3.2 release. See this mail by the maintainer:
http://docs.freebsd.org/cgi/getmsg.c....freebsd-ports |
|
#71
|
|||
|
|||
|
Quote:
|
|
#72
|
|||
|
|||
|
"Oh cool, hopefully 5.3.2 isn't too far away. Thanks! "
As far as i can see this is: 2010-05-01 that is far away , see this website: http://en.wikipedia.org/wiki/PHP there is the release date: 5.3.2 2010-05-01 |
|
#73
|
|||
|
|||
|
guys you all realise right 5.2.x is not EOL.
from a productivity point of view 5.3 is essentially beta, it has no zend support and I am not sure about ioncube support, the configuration has major changes and various apps break. If we are to get php-5.3 in ports I hope it appears as a new port eg. lang/php5-testing as 5.2.x still has development and is the mature version. |
|
#74
|
|||
|
|||
|
Quote:
As for separate ports, Alex (PHP port maintainer) has clearly said that he won't be maintaining two different ports of PHP. So unless someone forks a new port, it would be a one way upgrade. With regards Amitabh Kant |
|
#75
|
|||
|
|||
|
Quote:
Quote:
|
![]() |
| Tags |
| patches, pear, php5, php5.3 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP Error | dpalme | Web & Network Services | 11 | December 20th, 2010 02:28 |
| non-PHP CMS | dougy | Installation and Maintenance of FreeBSD Ports or Packages | 3 | January 20th, 2010 17:05 |
| help! php won't build | wonslung | Installation and Maintenance of FreeBSD Ports or Packages | 6 | June 4th, 2009 12:40 |
| [PHP][solved][/PHP] General question | sossego | General | 0 | April 9th, 2009 23:36 |
| Php 5.2.9 | MissileSilo | Installation and Maintenance of FreeBSD Ports or Packages | 8 | March 8th, 2009 14:39 |