473,387 Members | 1,455 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,387 software developers and data experts.

compile php 4.3.3 with gd

I tried to compile php 4.3.3 with gd but it doesn't work, it wasnt show
in phpinfo(). My system is redhat 9 and apache 2.0.47 webserver.

Jul 17 '05 #1
7 5871
kecebong wrote:
I tried to compile php 4.3.3 with gd but it doesn't work, it wasnt show
in phpinfo(). My system is redhat 9 and apache 2.0.47 webserver.

From PHP 4.3.0 GD2 is built in and I believe on by default so try
compiling without worrying about GD and it may not show up but try to
use functions and they will probably work.

--
John Downey
http://delusive.dyn.ee
http://sage.dev.box.sk
http://blacksun.box.sk

Jul 17 '05 #2
John Downey wrote:
kecebong wrote:
I tried to compile php 4.3.3 with gd but it doesn't work, it wasnt
show in phpinfo(). My system is redhat 9 and apache 2.0.47 webserver.

From PHP 4.3.0 GD2 is built in and I believe on by default so try
compiling without worrying about GD and it may not show up but try to
use functions and they will probably work.

it still does not work, I used gd_info() function and nothing came up.
and then I tried to change my php.ini (overwrite it)and now there's an
error message, how can I restore my php.ini?

Jul 17 '05 #3
kecebong wrote:
it still does not work, I used gd_info() function and nothing came up.
and then I tried to change my php.ini (overwrite it)and now there's an
error message, how can I restore my php.ini?

PHP has its php.ini-dist and php.ini-recommended in the folder you
uncompressed it to. As for the compilation try configuring using
--with-gd2 and don't specify a path that should use the bundled version.

--
John Downey
http://delusive.dyn.ee
http://sage.dev.box.sk
http://blacksun.box.sk

Jul 17 '05 #4

"kecebong" <ce****@plungky.com> wrote in message
news:avsmb.34216$Rd4.18244@fed1read07...
I tried to compile php 4.3.3 with gd but it doesn't work, it wasnt show
in phpinfo(). My system is redhat 9 and apache 2.0.47 webserver.


What are your "configure" arguements?

I have PHP configured on Apache 1.3.28 - When I compiled PHP I used the
following:

../configure --with-mysql \
--with-apache=$src/apache \
--with-mcrypt \
--with-jpeg-dir \
--enable-exif \
--with-zlib-dir \
--with-gd \
--with-ttf \
--enable-gd-native-ttf \
--with-freetype-dir \
--with-mime-magic \
--disable-session \
--disable-cgi

Jul 17 '05 #5
Randell D. wrote:
"kecebong" <ce****@plungky.com> wrote in message
news:avsmb.34216$Rd4.18244@fed1read07...
I tried to compile php 4.3.3 with gd but it doesn't work, it wasnt show
in phpinfo(). My system is redhat 9 and apache 2.0.47 webserver.
What are your "configure" arguements?

I have PHP configured on Apache 1.3.28 - When I compiled PHP I used the
following:

./configure --with-mysql \
--with-apache=$src/apache \
--with-mcrypt \
--with-jpeg-dir \
--enable-exif \
--with-zlib-dir \
--with-gd \
--with-ttf \
--enable-gd-native-ttf \
--with-freetype-dir \
--with-mime-magic \
--disable-session \
--disable-cgi

../configure --with-gd2 --with-zlib-dir --with-openssl --disable-cli
--with-apxs2=/usr/local/apache2/bin/apxs --with-jpeg-dir --with-ttf
--enable-gd2-native-ttf --disable-cgi
I followed some of your configuration, but it still doesnt show any
graphics, I wonder what I did wrong?

I use this script as to display graphic

<?php
// set up image
$height = 200;
$width = 200;
$im = ImageCreate($width, $height);
$white = ImageColorAllocate ($im, 255, 255, 255);
$black = ImageColorAllocate ($im, 0, 0, 0);
// draw on image
ImageFill($im, 0, 0, $black);
ImageLine($im, 0, 0, $width, $height, $white);
ImageString($im, 4, 50, 150, 'Sales', $white);
// output image
Header ('Content-type: image/png');
ImagePng ($im);
// clean up
ImageDestroy($im);
?>

and also <?php
var_dump(gd_info());
?>


to get information about my gd setup. but it displayed just blank white
page.

Jul 17 '05 #6
John Downey wrote:
kecebong wrote:
it still does not work, I used gd_info() function and nothing came up.
and then I tried to change my php.ini (overwrite it)and now there's an
error message, how can I restore my php.ini?

PHP has its php.ini-dist and php.ini-recommended in the folder you
uncompressed it to. As for the compilation try configuring using
--with-gd2 and don't specify a path that should use the bundled version.

thanks for the info how to restoring php.ini, it works.

Jul 17 '05 #7
kecebong wrote:
Randell D. wrote:
"kecebong" <ce****@plungky.com> wrote in message
news:avsmb.34216$Rd4.18244@fed1read07...
I tried to compile php 4.3.3 with gd but it doesn't work, it wasnt show
in phpinfo(). My system is redhat 9 and apache 2.0.47 webserver.

What are your "configure" arguements?

I have PHP configured on Apache 1.3.28 - When I compiled PHP I used the
following:

./configure --with-mysql \
--with-apache=$src/apache \
--with-mcrypt \
--with-jpeg-dir \
--enable-exif \
--with-zlib-dir \
--with-gd \
--with-ttf \
--enable-gd-native-ttf \
--with-freetype-dir \
--with-mime-magic \
--disable-session \
--disable-cgi

./configure --with-gd2 --with-zlib-dir --with-openssl --disable-cli
--with-apxs2=/usr/local/apache2/bin/apxs --with-jpeg-dir --with-ttf
--enable-gd2-native-ttf --disable-cgi
I followed some of your configuration, but it still doesnt show any
graphics, I wonder what I did wrong?

I use this script as to display graphic

<?php
// set up image
$height = 200;
$width = 200;
$im = ImageCreate($width, $height);
$white = ImageColorAllocate ($im, 255, 255, 255);
$black = ImageColorAllocate ($im, 0, 0, 0);
// draw on image
ImageFill($im, 0, 0, $black);
ImageLine($im, 0, 0, $width, $height, $white);
ImageString($im, 4, 50, 150, 'Sales', $white);
// output image
Header ('Content-type: image/png');
ImagePng ($im);
// clean up
ImageDestroy($im);
?>

and also
<?php
var_dump(gd_info());
?>

to get information about my gd setup. but it displayed just blank white
page.

well I finally got gd enabled by doing $ make clean and $ rm
config.cache before $ ./configure new param. Thanks for all of the
response. I got my answer from:
http://www.php.net/manual/en/install.linux.php
Jul 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: janeaustine50 | last post by:
Python's InteractiveInterpreter uses the built-in compile function. According to the ref. manual, it doesn't seem to concern about the encoding of the source string. When I hand in an unicode...
5
by: Carmine Cairo | last post by:
Hi, I'm working on a project and today I've note a little problem during the compile fase. Here a little piece of code: // 1st version welldone = 0; size = p->getSize(); backbone = new...
5
by: Brice Prunier | last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...) The context is the following : Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema: no TargetNamespace )...
10
by: Chris LaJoie | last post by:
Our company has been developing a program in C# for some time now, and we haven't had any problems with it, but just last night something cropped up that has me, and everyone else, stumped. I...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
15
by: steve yee | last post by:
i want to detect if the compile is 32 bits or 64 bits in the source code itself. so different code are compiled respectively. how to do this?
16
by: desktop | last post by:
I have read that using templates makes types know at compile time and using inheritance the types are first decided at runtime. The use of pointers and casts also indicates that the types will...
1
by: brianrpsgt1 | last post by:
Newbie here.... I have been able to successful pull info from a MySQL DB, get the results and output them in an HTML format using Cheetah to the screen using IDLE. I am doing this on a Windows...
3
by: NvrBst | last post by:
Right now I have C99 code in .c extensions. I compile it in VSC++ and it complains about a lot of errors. I change the extensions to .cpp and compile in VSC++ and it succeeds. Is there a way...
6
by: Ed Leafe | last post by:
I've noticed an odd behavior with compile() and code that does not contain a trailing newline: if the last line is a comment inside of any block, a syntax error is thrown, but if the last line is a...
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$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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.