473,699 Members | 2,386 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5884
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.3421 6$Rd4.18244@fed 1read07...
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.3421 6$Rd4.18244@fed 1read07...
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($wi dth, $height);
$white = ImageColorAlloc ate ($im, 255, 255, 255);
$black = ImageColorAlloc ate ($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($i m);
?>

and also <?php
var_dump(gd_inf o());
?>


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.3421 6$Rd4.18244@fed 1read07...
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($wi dth, $height);
$white = ImageColorAlloc ate ($im, 255, 255, 255);
$black = ImageColorAlloc ate ($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($i m);
?>

and also
<?php
var_dump(gd_inf o());
?>

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
2811
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 object, it is encoded in utf-8 automatically. It can be a problem when I'm building an interactive environment using "compile", with a different encoding from utf-8. IDLE itself has the same problem. ( '<a string with non-ascii-encoding>' is...
5
3328
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 rightType;
5
3814
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 ) Person.xsd includes Common-Naming.xsd ( anonimous schemas ) Common-Naming.xsd includes common.xsd ( both are anonimous schemas ) Compilation of Resident.xsd raise the following exception: "System.Xml.Schema.XmlSchemaException: The attribute 'oid'...
10
19717
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 have a struct that contains several different types of data. This struct is used throuout the program. Now, when I compile, I get 6 errors, all of them "Use of possibly unassigned field 'awayTime'" or "Use of possibly unassigned field 'intlTime'"....
6
2854
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 fine while the file was in the project directory. When the obsolete file was removed from the project directory, my application will no longer compile. Can someone please help with this issue? Thank in advance, Tom
15
4829
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
5419
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 first be know at runtime. But is there some strict definitions that defines runtime code and compile time code that can be used in general?
1
3078
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 Laptop, running WinXP, Python 2.5 and the latest version of Cheetah. I have two questions: 1. How and where do you compile Cheetah templates in Windows? The command in the docs is cheetah compile a, however, I believe that this
3
2300
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 to keep my extensions .c, but tell VSC++ (through an project option) to compile as C++98 code (as if it had .cpp extensions).
6
1946
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 non- comment Python statement, there is no error. Here's an example (using 2.5.1 on OS X) .... def foo(): .... print 'bar' """ <code object <moduleat 0x79608, file "", line 2>
0
9172
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8908
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7745
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4374
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.