Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Regular Coder harlequin2k5's Avatar
    Join Date
    Sep 2005
    Location
    Holiday, FL
    Posts
    635
    Thanks
    18
    Thanked 0 Times in 0 Posts

    --enable-calendar [solved]

    I'm using PHP Version 5.2.1-pl3-gentoo and I'm trying to use a calendar script that requires that I --enable-calendar - my phpinfo shows that calendar is disabled

    so I need to know how to --enable-calendar

    any help is greatly appreciated
    Last edited by harlequin2k5; 08-13-2007 at 02:38 PM.

  • #2
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,046
    Thanks
    19
    Thanked 42 Times in 42 Posts
    first google result
    To get these functions to work, you have to compile PHP with --enable-calendar . The windows version of PHP has built in support for this extension. ...
    www.php.net/calendar

  • #3
    Regular Coder harlequin2k5's Avatar
    Join Date
    Sep 2005
    Location
    Holiday, FL
    Posts
    635
    Thanks
    18
    Thanked 0 Times in 0 Posts
    hi rafiki

    I'm not using windows - I'm using gentoo linux...

    I've been reading through the gentoo forums and I still haven't found it

  • #4
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,046
    Thanks
    19
    Thanked 42 Times in 42 Posts
    ok, To get these functions to work, you have to compile PHP with --enable-calendar.
    im guessing that part was not aimmed at windows users, did you try compiling it yourself with --enable-calendar?

  • #5
    Regular Coder harlequin2k5's Avatar
    Join Date
    Sep 2005
    Location
    Holiday, FL
    Posts
    635
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by rafiki View Post
    ok, To get these functions to work, you have to compile PHP with --enable-calendar.
    im guessing that part was not aimmed at windows users, did you try compiling it yourself with --enable-calendar?
    lol I'm sorry - that's the part I don't know how to do

  • #6
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    First result from google http://www.phpbuilder.com/manual/en/...nix.gentoo.php

    Just add calendar to the bunch of other flags you want...

  • #7
    Regular Coder harlequin2k5's Avatar
    Join Date
    Sep 2005
    Location
    Holiday, FL
    Posts
    635
    Thanks
    18
    Thanked 0 Times in 0 Posts
    thanks nancyj - that gets me alot closer but either calendar isn't available or I'm still using the wrong command...

    if I type enable -n nothing displays - calendar does not display if I use enable -a

    if I try to use --enable-calendar I get a bash error - I also get a bash error if I try enable calendar

    either way - I have so little experience with this server I don't know how to use the command-line commands

  • #8
    Regular Coder harlequin2k5's Avatar
    Join Date
    Sep 2005
    Location
    Holiday, FL
    Posts
    635
    Thanks
    18
    Thanked 0 Times in 0 Posts
    I went straight into the package.use file and adjusted the line to include calendar

    PHP Code:
    net-ftp/proftpd softquota
    dev
    -lang/php gd pdo calendar
    net
    -print/cups jpeg png 
    I used the emerge command again and then I restarted apache and guess what??? calendar is finally enabled!!

  • #9
    Regular Coder harlequin2k5's Avatar
    Join Date
    Sep 2005
    Location
    Holiday, FL
    Posts
    635
    Thanks
    18
    Thanked 0 Times in 0 Posts
    rofl I go through all that trouble and I really don't like the way the calendar looks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •