install GDLIB on OsX server.

Posted on 2006-05-10
Last Modified: 2010-04-29
Hi there
I have an OS X server running on my Mac.
I need to install GDLIB so that I can have my php code generate .jpg images for me.
how would I do that please help.
Question by:eggster34
    LVL 3

    Accepted Solution

    you should install the excellent Entropy php installation package. it will install all that you need.

    you can download it from here

    have fun !

    Author Comment

    I already have everything installed other than the GD library.
    Is there any way to install GD only and keep the others?
    LVL 3

    Expert Comment

    this is the easiest way o know to install GDlibs.

    the Entropy php installation package will not change anything. if you did not change anything to the php config file (php.ini), you will never see a difference.

    but if you don't want to go with the Entropy php installation package, you will have to use the terminal to install them. i don't know of any installer for only the GDlibs.

    what os you want to install them on ?

    Author Comment

    Max Os X tiger.
    here's the problem.
    I install php with GDLIB support, here's my php info:
    as you can see, Jpeg support for GDLIB is seen as not installed.

    PHP Version 4.4.2

    System Darwin intranet 8.5.0 Darwin Kernel Version 8.5.0: Sun Jan 22
    10:38:46 PST 2006; root:xnu-792.6.61.obj~1/RELEASE_PPC Power Macintosh
    Build Date May 5 2006 18:19:58
    Configure Command './configure' '--prefix=/usr'
    '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-apxs'
    '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli'
    '--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml'
    '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex'
    '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr'
    '--with-curl=/usr' '--with-config-file-path=/etc'
    '--sysconfdir=/private/etc' '--with-mysql=/usr'
    '--with-mysql-sock=/var/mysql/mysql.sock' '--with-gd' '--with-libpng'
    Server API Apache
    Virtual Directory Support disabled
    Configuration File (php.ini) Path /etc
    PHP API 20020918
    PHP Extension 20020429
    Zend Extension 20050606
    Debug Build no
    Zend Memory Manager enabled
    Thread Safety disabled
    Registered PHP Streams php, http, ftp, compress.zlib

    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

    PHP Credits


    PHP Core

    Directive Local Value Master Value
    allow_call_time_pass_reference On On
    allow_url_fopen On On
    always_populate_raw_post_data Off Off
    arg_separator.input & &
    arg_separator.output & &
    asp_tags Off Off
    auto_append_file no value no value
    auto_prepend_file no value no value
    browscap no value no value
    default_charset no value no value
    default_mimetype text/html text/html
    define_syslog_variables Off Off
    disable_classes no value no value
    disable_functions no value no value
    display_errors On On
    display_startup_errors Off Off
    doc_root no value no value
    docref_ext no value no value
    docref_root no value no value
    enable_dl On On
    error_append_string no value no value
    error_log no value no value
    error_prepend_string no value no value
    error_reporting no value no value
    expose_php On On
    extension_dir /usr/lib/php/extensions/no-debug-non-zts-20020429 /usr/lib/php/extensions/no-debug-non-zts-20020429
    file_uploads On On
    gpc_order GPC GPC #FFFFFF #FFFFFF
    highlight.comment #FF8000 #FF8000
    highlight.default #0000BB #0000BB
    highlight.html #000000 #000000
    highlight.keyword #007700 #007700
    highlight.string #DD0000 #DD0000
    html_errors On On
    ignore_repeated_errors Off Off
    ignore_repeated_source Off Off
    ignore_user_abort Off Off
    implicit_flush Off Off
    include_path .:/usr/lib/php .:/usr/lib/php
    log_errors Off Off
    log_errors_max_len 1024 1024
    magic_quotes_gpc On On
    magic_quotes_runtime Off Off
    magic_quotes_sybase Off Off
    max_execution_time 30 30
    max_input_time -1 -1
    open_basedir no value no value
    output_buffering 0 0
    output_handler no value no value
    post_max_size 8M 8M
    precision 14 14
    register_argc_argv On On
    register_globals Off Off
    report_memleaks On On
    safe_mode Off Off
    safe_mode_exec_dir /usr/local/php/bin /usr/local/php/bin
    safe_mode_gid Off Off
    safe_mode_include_dir no value no value
    sendmail_from no value no value
    sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
    serialize_precision 100 100
    short_open_tag On On
    SMTP localhost localhost
    smtp_port 25 25
    sql.safe_mode Off Off
    track_errors Off Off
    unserialize_callback_func no value no value
    upload_max_filesize 2M 2M
    upload_tmp_dir no value no value
    user_dir no value no value
    variables_order no value no value
    xmlrpc_error_number 0 0
    xmlrpc_errors Off Off
    y2k_compliance On On


    APACHE_INCLUDE no value
    APACHE_TARGET no value
    Apache Version Apache/1.3.33 (Darwin) mod_ssl/2.8.24 OpenSSL/0.9.7i PHP/4.4.2
    Apache Release 10333100
    Apache API Version 19990320
    Hostname:Port default:16080
    User/Group www(70)/70
    Max Requests Per Child: 100000 - Keep Alive: off - Max Per Connection: 500
    Timeouts Connection: 300 - Keep-Alive: 15
    Server Root /usr
    Loaded Modules mod_WebObjects, mod_spnego_apple, mod_ssl,
    mod_digest_apple, mod_hfs_apple, mod_php4, mod_macbinary_apple,
    mod_setenvif, mod_so, mod_expires, mod_proxy, mod_auth_apple,
    mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions,
    mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include,
    mod_info, mod_status, mod_negotiation, mod_mime, mod_log_config,

    Directive Local Value Master Value
    child_terminate 0 0
    engine 1 1
    last_modified 0 0
    xbithack 0 0

    Apache Environment

    Variable Value
    DOCUMENT_ROOT /Library/WebServer/Documents/Users/admin/Sites
    HTTP_ACCEPT_ENCODING gzip, deflate
    HTTP_CONNECTION keep-alive
    HTTP_COOKIE PHPSESSID=76a15b34dafef264d7d3cbaebeb21835
    HTTP_IF_MODIFIED_SINCE Tue, 16 May 2006 10:00:09 GMT
    HTTP_USER_AGENT Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us)
    AppleWebKit/417.9 (KHTML, like Gecko) Safari/417.8
    PATH /usr/bin:/bin:/usr/sbin:/sbin
    REMOTE_PORT 57551
    SCRIPT_FILENAME /Library/WebServer/Documents/Users/admin/Sites/info.php
    SCRIPT_URL /info.php
    SERVER_PORT 16080
    SERVER_SIGNATURE <ADDRESS>Apache/1.3.33 Server at Port 16080</ADDRESS>
    SERVER_SOFTWARE Apache/1.3.33 (Darwin) mod_ssl/2.8.24 OpenSSL/0.9.7i PHP/4.4.2
    QUERY_STRING no value
    REQUEST_URI /info.php
    SCRIPT_NAME /info.php

    HTTP Headers Information

    HTTP Request Headers
    HTTP Request GET /info.php HTTP/1.1
    Accept */*
    Accept-Encoding gzip, deflate
    Accept-Language en-us
    Connection keep-alive
    Cookie PHPSESSID=76a15b34dafef264d7d3cbaebeb21835
    If-Modified-Since Tue, 16 May 2006 10:00:09 GMT
    User-Agent Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us)
    AppleWebKit/417.9 (KHTML, like Gecko) Safari/417.8
    HTTP Response Headers
    Cache-Control max-age=60
    Expires Tue, 16 May 2006 10:33:46 GMT
    X-Powered-By PHP/4.4.2
    Connection close
    Transfer-Encoding chunked
    Content-Type text/html


    ctype functions enabled


    CURL support enabled
    CURL Information libcurl/7.13.1 OpenSSL/0.9.7i zlib/1.2.3


    dbx support enabled
    dbx version 1.0.0
    supported databases MySQL ODBC PostgreSQL Microsoft SQL Server
    FrontBase Oracle 8 (oci8) Sybase-CT

    Directive Local Value Master Value
    dbx.colnames_case unchanged unchanged


    EXIF Support enabled
    EXIF Version 1.4 $Id: exif.c,v 2006/01/01 13:46:52 sniper Exp $
    Supported EXIF Version 0220
    Supported filetypes JPEG,TIFF


    FTP support enabled


    GD Support enabled
    GD Version bundled (2.0.28 compatible)
    GIF Read Support enabled
    GIF Create Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled


    LDAP Support enabled
    RCS Version $Id: ldap.c,v 2006/01/01 13:46:54 sniper Exp $
    Total Links 0/unlimited
    API Version 3001
    Vendor Name OpenLDAP
    Vendor Version 20219


    Multibyte Support enabled
    Japanese support enabled
    Simplified chinese support enabled
    Traditional chinese support enabled
    Korean support enabled
    Russian support enabled
    Multibyte (japanese) regex support enabled

    mbstring extension makes use of "streamable kanji code filter and
    converter", which is distributed under the GNU Lesser General Public
    License version 2.1.

    Directive Local Value Master Value
    mbstring.detect_order no value no value
    mbstring.encoding_translation Off Off
    mbstring.func_overload 0 0
    mbstring.http_input pass pass
    mbstring.http_output pass pass
    mbstring.internal_encoding no value no value
    mbstring.language neutral neutral
    mbstring.substitute_character no value no value


    MySQL Support enabled
    Active Persistent Links 0
    Active Links 0
    Client API version 4.1.13a
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient

    Directive Local Value Master Value
    mysql.allow_persistent On On
    mysql.connect_timeout 60 60
    mysql.default_host no value no value
    mysql.default_password no value no value
    mysql.default_port no value no value
    mysql.default_socket no value no value
    mysql.default_user no value no value
    mysql.max_links Unlimited Unlimited
    mysql.max_persistent Unlimited Unlimited
    mysql.trace_mode Off Off


    ODBC Support enabled
    Active Persistent Links 0
    Active Links 0
    ODBC library iodbc
    ODBC_INCLUDE -I/usr/include
    ODBC_LFLAGS -L/usr/lib
    ODBC_LIBS -liodbc

    Directive Local Value Master Value
    odbc.allow_persistent On On
    odbc.check_persistent On On
    odbc.default_db no value no value
    odbc.default_pw no value no value
    odbc.default_user no value no value
    odbc.defaultbinmode return as is return as is
    odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes
    odbc.max_links Unlimited Unlimited
    odbc.max_persistent Unlimited Unlimited


    User-Space Object Overloading Support enabled


    PCRE (Perl Compatible Regular Expressions) Support enabled
    PCRE Library Version 6.2 01-Aug-2005


    Revision $Revision: $


    Session Support enabled
    Registered save handlers files user

    Directive Local Value Master Value
    session.auto_start Off Off
    session.bug_compat_42 On On
    session.bug_compat_warn On On
    session.cache_expire 180 180
    session.cache_limiter nocache nocache
    session.cookie_domain no value no value
    session.cookie_lifetime 0 0
    session.cookie_path / /
    session.cookie_secure Off Off
    session.entropy_file no value no value
    session.entropy_length 0 0
    session.gc_divisor 100 100
    session.gc_maxlifetime 1440 1440
    session.gc_probability 1 1 PHPSESSID PHPSESSID
    session.referer_check no value no value
    session.save_handler files files
    session.save_path /tmp /tmp
    session.serialize_handler php php
    session.use_cookies On On
    session.use_only_cookies Off Off
    session.use_trans_sid Off Off


    Sockets Support enabled


    Regex Library Bundled library enabled
    Dynamic Library Support enabled
    Path to sendmail /usr/sbin/sendmail -t -i

    Directive Local Value Master Value 1 1
    assert.bail 0 0
    assert.callback no value no value
    assert.quiet_eval 0 0
    assert.warning 1 1
    auto_detect_line_endings 0 0
    default_socket_timeout 60 60
    safe_mode_allowed_env_vars PHP_ PHP_
    safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
    url_rewriter.tags a=href,area=href,frame=src,form=,fieldset= a=href,area=href,frame=src,form=,fieldset=
    user_agent no value no value


    Tokenizer Support enabled


    XML Support active
    XML Namespace Support active
    EXPAT Version 1.95.6


    ZLib Support enabled
    Compiled Version 1.2.3
    Linked Version 1.2.3

    Directive Local Value Master Value
    zlib.output_compression Off Off
    zlib.output_compression_level -1 -1
    zlib.output_handler no value no value

    Additional Modules

    Module Name


    Variable Value
    PATH /usr/bin:/bin:/usr/sbin:/sbin

    PHP Variables

    Variable Value
    _REQUEST["PHPSESSID"] 76a15b34dafef264d7d3cbaebeb21835
    _COOKIE["PHPSESSID"] 76a15b34dafef264d7d3cbaebeb21835
    _SERVER["DOCUMENT_ROOT"] /Library/WebServer/Documents/Users/admin/Sites
    _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
    _SERVER["HTTP_CONNECTION"] keep-alive
    _SERVER["HTTP_COOKIE"] PHPSESSID=76a15b34dafef264d7d3cbaebeb21835
    _SERVER["HTTP_IF_MODIFIED_SINCE"] Tue, 16 May 2006 10:00:09 GMT
    _SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Macintosh; U; PPC Mac OS X;
    en-us) AppleWebKit/417.9 (KHTML, like Gecko) Safari/417.8
    _SERVER["PATH"] /usr/bin:/bin:/usr/sbin:/sbin
    _SERVER["REMOTE_PORT"] 57551
    _SERVER["SCRIPT_FILENAME"] /Library/WebServer/Documents/Users/admin/Sites/info.php
    _SERVER["SCRIPT_URL"] /info.php
    _SERVER["SERVER_PORT"] 16080
    _SERVER["SERVER_SIGNATURE"] <ADDRESS>Apache/1.3.33 Server at
    Port 16080</ADDRESS>
    _SERVER["SERVER_SOFTWARE"] Apache/1.3.33 (Darwin) mod_ssl/2.8.24
    OpenSSL/0.9.7i PHP/4.4.2
    _SERVER["QUERY_STRING"] no value
    _SERVER["REQUEST_URI"] /info.php
    _SERVER["SCRIPT_NAME"] /info.php
    _SERVER["PATH_TRANSLATED"] /Library/WebServer/Documents/Users/admin/Sites/info.php
    _SERVER["PHP_SELF"] /info.php
    _SERVER["argc"] 0
    _ENV["PATH"] /usr/bin:/bin:/usr/sbin:/sbin

    PHP License

    This program is free software; you can redistribute it and/or modify
    it under the terms of the PHP License as published by the PHP Group
    and included in the distribution in the file: LICENSE

    This program is distributed in the hope that it will be useful, but
    WITHOUT ANY WARRANTY; without even the implied warranty of

    If you did not receive a copy of the PHP license, or have any
    questions about PHP licensing, please contact

    LVL 3

    Expert Comment


    did you installed the entropy php package ?

    strange that all the GDlibs are enable expect the jpeg and truetype ...

    here's what i have on my server ... (os X - 10.4.5)

    ------------------- gd -------------------

    GD Support      enabled
    GD Version      bundled (2.0.28 compatible)
    FreeType Support      enabled
    FreeType Linkage      with freetype
    FreeType Version      2.1.10
    T1Lib Support      enabled
    GIF Read Support      enabled
    GIF Create Support      enabled
    JPG Support      enabled
    PNG Support      enabled
    WBMP Support      enabled
    XBM Support      enabled

    in your case, they are not enable, there are just not there ...

    very strange ...

    Author Comment

    I did not do it through entropy.php but did it myself manually.
    how can I remove the one I installed or reinstall using the entropy package?
    LVL 3

    Expert Comment

    you don't have to ...

    i also try to install them manually at first and when i realize it did not work i just ran the entropy installer and it all worked super fine !

    hope you can get it to work

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    A lot of new and distinct gadgets are making their appearance every other day. The latest gadget that has wooed the attention of all gadget lovers and non gadget lovers alike is the Smartwatch. This tiny gadget is capable of offering live access to …
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    This video discusses moving either the default database or any database to a new volume.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now