#1
  1. o0o.o0o
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    m00n
    Posts
    194
    Rep Power
    102

    help with php port ..


    Ok, I am attempting to install mod_php4, and this is what I get after the 'make'

    Code:
    ===>  Patching for mod_php4-4.0.6_4
    ===>  Applying distribution patches for mod_php4-4.0.6_4
    *** Error code 9
    
    Stop in /usr/ports/www/mod_php4.
    *** Error code 1
    
    Stop in /usr/ports/www/mod_php4.
    *** Error code 1
    
    Stop in /usr/ports/www/mod_php4.
    *** Error code 1
    
    Stop in /usr/ports/www/mod_php4.
    *** Error code 1
    
    Stop in /usr/ports/www/mod_php4.
    any thoughts?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    5
    Rep Power
    0
    1) What OS and uname -r?
    2) What make options?
    3) What last-modified date on /usr/ports/www/mod_php4/Makefile?
    4) Do you have Apache installed prior to installing mod_php4?
  4. #3
  5. o0o.o0o
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    m00n
    Posts
    194
    Rep Power
    102
    Originally posted by freebsd
    1) What OS and uname -r?


    -- FreeBSD, root

    2) What make options?
    -- I just typed 'make' in the mod_php4 directory

    3) What last-modified date on /usr/ports/www/mod_php4/Makefile?
    -- August 26th, 2001

    4) Do you have Apache installed prior to installing mod_php4?
    -- yes



    is there a site with step by step instructions?
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Location
    St. George, Utah
    Posts
    63
    Rep Power
    37
    Do you have the newest version of this port?

    If not, get it from http://www.freebsd.org/ports and try again
    Lucas Marshall
  8. #5
  9. o0o.o0o
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    m00n
    Posts
    194
    Rep Power
    102
    Yes, Installed FreeBSD + port collection last week. It is also the latest version of PHP from php.net.

    Brett
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    5
    Rep Power
    0
    >> FreeBSD, root

    uname -r gives you the version and branch, not root. I still need to know that.

    >> I just typed 'make' in the mod_php4 directory

    You should see a dialog prompt asking for configure options, like with mysql, pgsql or so.

    >> August 26th, 2001

    That's the latest. Have you ever cvsup'ed your ports tree on your system?

    >> is there a site with step by step instructions?

    Unlike Linux, in *BSDs, you just need to run make install clean in most case. mod_php4, however, is very configurable. You can enable/disable whatever options as you wish once you run make. To answer your question, if you accept the defaults, it's as simple as make install clean and select whatever options.
  12. #7
  13. o0o.o0o
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    m00n
    Posts
    194
    Rep Power
    102
    uname -r: 4.4-RELEASE

    That's the latest. Have you ever cvsup'ed your ports tree on your system?
    -- No

    I tried the make install clean, selected the default options, and I still got the errors.

    Here is the make install clean output:

    Code:
    ===>  Building for mod_php4-4.0.6_4
    Making all in Zend
    Making all in main
    Making all in ext
    Making all in zlib
    Making all in mysql
    Making all in pcre
    Making all in pcrelib
    Making all in posix
    Making all in session
    Making all in standard
    Making all in xml
    Making all in expat
    Making all in xmltok
    Making all in xmlparse
    Making all in sapi
    Making all in apache
    /bin/sh /usr/ports/www/mod_php4/work/php-4.0.6/libtool --silent --mode=compile cc  -I. -I/usr/ports/www/mod_php4/work/php-4.0.6/sapi/apache -I/usr/ports/www/mod_php4/work/php-4.0.6/main -I/usr/ports/www/mod_php4/work/php-4.0.6 -I/usr/local/include/apache -I/usr/ports/www/mod_php4/work/php-4.0.6/Zend -I/usr/local/include/mysql -I/usr/ports/www/mod_php4/work/php-4.0.6/ext/xml/expat/xmltok -I/usr/ports/www/mod_php4/work/php-4.0.6/ext/xml/expat/xmlparse -I/usr/ports/www/mod_php4/work/php-4.0.6/TSRM  -DNO_DBM_REWRITEMAP -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -O -pipe  -c sapi_apache.c
    *** Error code 1
    
    Stop in /usr/ports/www/mod_php4/work/php-4.0.6/sapi/apache.
    *** Error code 1
    
    Stop in /usr/ports/www/mod_php4/work/php-4.0.6/sapi/apache.
    *** Error code 1
    
    Stop in /usr/ports/www/mod_php4/work/php-4.0.6/sapi.
    *** Error code 1
    
    Stop in /usr/ports/www/mod_php4/work/php-4.0.6.
    *** Error code 1
    
    Stop in /usr/ports/www/mod_php4.
    *** Error code 1
    
    Stop in /usr/ports/www/mod_php4.
    *** Error code 1
    
    Stop in /usr/ports/www/mod_php4.
    *** Error code 1
    
    Stop in /usr/ports/www/mod_php4.
    Brett
    Last edited by estrabd; October 10th, 2001 at 12:45 AM.
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    5
    Rep Power
    0
    Try make extract, then touch /usr/ports/www/mod_php4/work/.patch_done
    , then make install clean.
    If this doesn't help, contact the port maintainer. The ports system is very reliable and usually it fails only when it's a relatively new port or your system has some problem (the fix for this is to cvsup to -STABLE).

IMN logo majestic logo threadwatch logo seochat tools logo