473,385 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Compiling PHP with GD support.

18
ok, the problem is :

i have php 4.3 on fedora 3 (linux) and i have downloaded a code for GD library and it is working on on local server of PHP 5.2 , and apache 2.2 , the problem is that i don't know how to activate the GD library on linux coz i think it need some additional libraries so plz if someone have any idea about this help me plz coz i am running out of time.
Jul 20 '07 #1
3 2275
pbmods
5,821 Expert 4TB
Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as, 'urgent problem plz help' actually get FEWER responses?).

Heya, Akkad.

Actually, PHP comes with a bundled version of GD that is supposed to be more compatible with PHP than the standard GD. When you are configuring PHP, add the '--with-gd' option, and the configure script will take care of the rest.

You may want to install Freetype, libjpeg and libpng, though.
Jul 21 '07 #2
kovik
1,044 Expert 1GB
On old PHP versions, you may need to download DLL files from the GD website. Also, I believe that even after compiling PHP with GD (which is automatic now that GD is the best library available), you must activate the extension in your php.ini file.
Jul 21 '07 #3
Akkad
18
Hi, thanx for the advice

what u meant by when configuring PHP i should add '--with-gd' , i think u meant when i will install the PHP on my server, but as u know that fedora come with php and apache installed in it as another versions of linux so related to this i had these problems:

1. how to uninstall installed version of php and download PHP 5.0 which i think will solve the problem.
2. when i tried to install PHP 5.0 and overwrite the old versions problems arised :
after typing ./configure it gives alot of yes and no and this message

Generating files
./configure: line 115307: ./build/shtool: Permission denied
./configure: line 115328: ./build/shtool: Permission denied
./configure: line 115329: ./build/shtool: Permission denied
./configure: line 115330: ./build/shtool: Permission denied

after the second time installation i have also this message when typing the command Make
make
/bin/sh /root/php-5.2.3/php-5.2.3/libtool --silent --preserve-dup-deps --mode=compile gcc -I/root/php-5.2.3/php-5.2.3/ext/pdo_sqlite/sqlite/src -DPDO_SQLITE_BUNDLED=1 -DSQLITE_OMIT_CURSOR -DTHREADSAFE=0 -I/root/php-5.2.3/php-5.2.3/ext -Iext/pdo_sqlite/ -I/root/php-5.2.3/php-5.2.3/ext/pdo_sqlite/ -DPHP_ATOM_INC -I/root/php-5.2.3/php-5.2.3/include -I/root/php-5.2.3/php-5.2.3/main -I/root/php-5.2.3/php-5.2.3 -I/usr/include/libxml2 -I/root/php-5.2.3/php-5.2.3/ext/date/lib -I/root/php-5.2.3/php-5.2.3/TSRM -I/root/php-5.2.3/php-5.2.3/Zend -I/usr/include -g -O2 -c /root/php-5.2.3/php-5.2.3/ext/pdo_sqlite/sqlite/src/parse.c -o ext/pdo_sqlite/sqlite/src/parse.lo
make: *** No rule to make target `ext/standard/../../main/build-defs.h', needed by `ext/standard/info.lo'. Stop.
[root@traffic php-5.2.3]# make test
make: *** No rule to make target `ext/standard/../../main/build-defs.h', needed by `ext/standard/info.lo'. Stop.

after typing make install i am having the following messages:

make: *** No rule to make target `ext/standard/../../main/build-defs.h', needed by `ext/standard/info.lo'. Stop.


so plz tell me what should i do and if its better to keep the old version of PHP 4.3 or installing the new PHP 5.2 and how to deal with this problems
Jul 23 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Luca | last post by:
Hi all. I've a problem compiling PHP (both 4.3.6 and 5 rc2) with ldap support (--with-ldap). "configure" doesn't return any error, but when I launch "make" it returns: grep:...
0
by: yzzzzz | last post by:
Hi, I am compiling PHP 5.0.2 myself with MySQL support. I did a ./configure --with-mysqli=/usr/local/mysql/bin/mysql_config (see end of post for complete configure) Note: I also have...
0
by: Martin Bless | last post by:
I need to access a MSSQL database (MS-Sql, not MySQL!)and would very much like to use mssql-0.09.tar.gz which is available from http://www.object-craft.com.au/projects/mssql/download.html ...
0
by: pruebauno | last post by:
Hello all, I am having issues compiling Python with large file support. I tried forcing the configure script to add it but then it bombs in the make process. Any help will be appreciated. ...
0
by: mmarkzon | last post by:
I have been struggling compiling linkchecker from http://linkchecker.sourceforge.net/. The last thing I get is "error: command 'gcc' failed with exit status 1" which is not very helpful. This is...
3
by: Alex | last post by:
Hi, The following article describes how to compile CSharp code programmatically http://support.microsoft.com/default.aspx? scid=http://support.microsoft.com:80/support/kb/articles/Q3...
4
by: Aaron Queenan | last post by:
When I build a C++ library to .NET using the managed C++ compiler, I get the following error message: Linking... LINK : error LNK2020: unresolved token (0A000005) _CrtDbgReport LINK : error...
12
by: Markus Ewald | last post by:
I'm just experimenting around with the VisualC++ 2005 Express Edition Beta and found some strange behavior for which I can't seem to find a workaround. What I've done is set up two static library...
1
by: Otacon22 | last post by:
Hi all, I want to create a robot with a router board based on processor atheros 2.6, called "fonera". I have installed a version of linux, Openwrt and python and i want to use it for some...
13
by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post by:
When I'm writing my own code, compiling it and testing it out as I go along, I usually compile as follows: gcc *.c -ansi -pedantic -Wall -o executable If I'm using 3rd-party libraries, I'll...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.