• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1630
  • Last Modified:

install GDLIB on OsX server.

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.
0
eggster34
Asked:
eggster34
  • 4
  • 3
1 Solution
 
stakaboCommented:
you should install the excellent Entropy php installation package. it will install all that you need.

you can download it from here
http://www.entropy.ch/software/macosx/php/

have fun !
0
 
eggster34Author Commented:
I already have everything installed other than the GD library.
Is there any way to install GD only and keep the others?
0
 
stakaboCommented:
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 ?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
eggster34Author Commented:
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'
'--with-libjpeg'
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

Configuration

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
highlight.bg #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

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,
http_core

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 */*
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE en-us
HTTP_CONNECTION keep-alive
HTTP_COOKIE PHPSESSID=76a15b34dafef264d7d3cbaebeb21835
HTTP_HOST 10.1.1.61
HTTP_IF_MODIFIED_SINCE Tue, 16 May 2006 10:00:09 GMT
HTTP_PC_REMOTE_ADDR 10.1.1.61
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_ADDR 10.1.1.61
REMOTE_PORT 57551
SCRIPT_FILENAME /Library/WebServer/Documents/Users/admin/Sites/info.php
SCRIPT_URI http://10.1.1.61:16080/info.php
SCRIPT_URL /info.php
SERVER_ADDR 10.1.1.61
SERVER_ADMIN admin@example.com
SERVER_NAME 10.1.1.61
SERVER_PORT 16080
SERVER_SIGNATURE <ADDRESS>Apache/1.3.33 Server at 10.1.1.61 Port 16080</ADDRESS>
SERVER_SOFTWARE Apache/1.3.33 (Darwin) mod_ssl/2.8.24 OpenSSL/0.9.7i PHP/4.4.2
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
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
Host 10.1.1.61
If-Modified-Since Tue, 16 May 2006 10:00:09 GMT
PC-Remote-Addr 10.1.1.61
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

ctype functions enabled

curl

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

dbx

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

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

ftp

FTP support enabled

gd

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

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

mbstring

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

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

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

overload

User-Space Object Overloading Support enabled

pcre

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

posix

Revision $Revision: 1.51.2.4.2.1 $

session

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
session.name 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

Sockets Support enabled

standard

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

Directive Local Value Master Value
assert.active 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

Tokenizer Support enabled

xml

XML Support active
XML Namespace Support active
EXPAT Version 1.95.6

zlib

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

Environment

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"] */*
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_COOKIE"] PHPSESSID=76a15b34dafef264d7d3cbaebeb21835
_SERVER["HTTP_HOST"] 10.1.1.61
_SERVER["HTTP_IF_MODIFIED_SINCE"] Tue, 16 May 2006 10:00:09 GMT
_SERVER["HTTP_PC_REMOTE_ADDR"] 10.1.1.61
_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_ADDR"] 10.1.1.61
_SERVER["REMOTE_PORT"] 57551
_SERVER["SCRIPT_FILENAME"] /Library/WebServer/Documents/Users/admin/Sites/info.php
_SERVER["SCRIPT_URI"] http://10.1.1.61:16080/info.php
_SERVER["SCRIPT_URL"] /info.php
_SERVER["SERVER_ADDR"] 10.1.1.61
_SERVER["SERVER_ADMIN"] admin@example.com
_SERVER["SERVER_NAME"] 10.1.1.61
_SERVER["SERVER_PORT"] 16080
_SERVER["SERVER_SIGNATURE"] <ADDRESS>Apache/1.3.33 Server at 10.1.1.61
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["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_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["argv"]
Array
(
)
_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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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

0
 
stakaboCommented:
hi,

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 ...
0
 
eggster34Author Commented:
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?
0
 
stakaboCommented:
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
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now