[PHP] image generation Problems (jpeg)

2002-04-29 Thread Peter Revill

=
PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED]
==


hi, im having a few problems installing GD, ill start from the top:

I need Jpeg support in my PHP installation, and unfortunatly, GD (the 
verison i have) does not support them, so i figure, ill install it, 
installing the libary jpeg-6b works easily
however, i attempt to compile from there GD, but the following error is 
produced:

[root gd-1.8.4]# make
gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 
-I/usr/X11R6/include/X11 -I/usr/local/include -c -o gd_gd2.o gd_gd2.c
In file included from /usr/include/errno.h:36,
   from gd_gd2.c:14:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make: *** [gd_gd2.o] Error 1

I also tried recompiling PHP and got a similar error, which is very 
worrying, i think i might be missing some files


Basically, waht i would really like, is a way to modify my CURRENT php 
config or my CURRENT gd config to take advantage of my shiny new jpeg 
libary, is there any method u can recommend to accomplish this?

Thanks
Peter
=
PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED]
==


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread heinisch

At 29.04.2002  20:02, you wrote:
=
PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED]
=

hi, im having a few problems installing GD, ill start from the top:
I need Jpeg support in my PHP installation, and unfortunatly, GD (the 
verison i have) does not support them, so i figure, ill install it, 
installing the libary jpeg-6b works easily
however, i attempt to compile from there GD, but the following error is 
produced:
[root gd-1.8.4]# make
gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 
-I/usr/X11R6/include/X11 -I/usr/local/include -c -o gd_gd2.o gd_gd2.c
In file included from /usr/include/errno.h:36,
   from gd_gd2.c:14:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make: *** [gd_gd2.o] Error 1
I also tried recompiling PHP and got a similar error, which is very 
worrying, i think i might be missing some files
Basically, waht i would really like, is a way to modify my CURRENT php 
config or my CURRENT gd config to take advantage of my shiny new jpeg 
libary, is there any method u can recommend to accomplish this?

Thanks
Peter
=
PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED]
==
Check out the config file for gd, the path to the jpeg-6b must be included.
There´s some problem of the order of the files, but there are more info in 
the config file.
Also the path where the jpg libs are installed, is sometimes different, so 
you have to check
them too.
HTH Oliver


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Jason Wong

On Monday 29 April 2002 20:02, Peter Revill wrote:

 hi, im having a few problems installing GD, ill start from the top:

 I need Jpeg support in my PHP installation, and unfortunatly, GD (the
 verison i have) does not support them, so i figure, ill install it,
 installing the libary jpeg-6b works easily
 however, i attempt to compile from there GD, but the following error is
 produced:

It's usually a good idea to state what kind of setup you have (OS, version 
etc).

 [root gd-1.8.4]# make
 gcc -I. -I/usr/include/freetype2 -I/usr/include/X11
 -I/usr/X11R6/include/X11 -I/usr/local/include -c -o gd_gd2.o gd_gd2.c
 In file included from /usr/include/errno.h:36,
from gd_gd2.c:14:
 /usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
 make: *** [gd_gd2.o] Error 1

Have you checked that you have the file linux/errno.h anywhere in your 
system?

On my RH7.1 system, 

  /usr/include/linux/errno.h

is provided by kernel-headers, so if don't have it and you're using RH, 
install kernel-headers. If you're using something else check with your distro 
vendor.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
That unit is a woman.
A mass of conflicting impulses.
-- Spock and Nomad, The Changeling, stardate 3541.9
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Peter Revill

Jason Wong wrote:

On Monday 29 April 2002 20:02, Peter Revill wrote:

  

hi, im having a few problems installing GD, ill start from the top:

I need Jpeg support in my PHP installation, and unfortunatly, GD (the
verison i have) does not support them, so i figure, ill install it,
installing the libary jpeg-6b works easily
however, i attempt to compile from there GD, but the following error is
produced:



It's usually a good idea to state what kind of setup you have (OS, version 
etc).
  

Im not even sure myself, linux on 2.2.14 on what should be a redhat box
i know theres a command something like dsmod to get the info, hmm..

  

oot gd-1.8.4]# make
gcc -I. -I/usr/include/freetype2 -I/usr/include/X11
-I/usr/X11R6/include/X11 -I/usr/local/include -c -o gd_gd2.o gd_gd2.c
In file included from /usr/include/errno.h:36,
   from gd_gd2.c:14:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make: *** [gd_gd2.o] Error 1



Have you checked that you have the file linux/errno.h anywhere in your 
system?
  


yes, but it wasnt around, errno.h was, but not errno.h like that


On my RH7.1 system, 

  /usr/include/linux/errno.h

is provided by kernel-headers, so if don't have it and you're using RH, 
install kernel-headers. If you're using something else check with your distro 
vendor.
  

i found the kernel-headers package, but it msut be damaged or something 
(rpm --query says it exists, but i have my doubts as to the files still 
existing)
is it OK to install kernel headers of a diffirent kernel number?
i.e. if i install kernel-headers 2.4.1 or wahtever is that ok? or will 
that cause problems?
(im betting money on it will cause problems)






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Jason Wong

On Monday 29 April 2002 21:40, Peter Revill wrote:

 Im not even sure myself, linux on 2.2.14 on what should be a redhat box
 i know theres a command something like dsmod to get the info, hmm..

Never mind, as long as you're reasonably sure it's a RH system you're running 
on .

 Have you checked that you have the file linux/errno.h anywhere in your
 system?

 yes, but it wasnt around, errno.h was, but not errno.h like that

So there's your problem :)

 i found the kernel-headers package, but it msut be damaged or something
 (rpm --query says it exists, but i have my doubts as to the files still
 existing)

  rpm -ql kernel-headers

Would show you what files kernel-headers had installed.

 is it OK to install kernel headers of a diffirent kernel number?

I don't know. But if you do try it, let us know what happens :)

 i.e. if i install kernel-headers 2.4.1 or wahtever is that ok? or will
 that cause problems?
 (im betting money on it will cause problems)

If there aren't any special reasons, I would just use the corresponding 
headers for your kernel.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Silence is the only virtue you have left.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Peter Revill

Jason Wong wrote:

On Monday 29 April 2002 21:40, Peter Revill wrote:

  

Im not even sure myself, linux on 2.2.14 on what should be a redhat box
i know theres a command something like dsmod to get the info, hmm..



Never mind, as long as you're reasonably sure it's a RH system you're running 
on .
  

Its a colbat cube running some sort of modified linux, i think based on 
Redhat
i doint know what kind of colbat cube



  

Have you checked that you have the file linux/errno.h anywhere in your
system?
  

yes, but it wasnt around, errno.h was, but not errno.h like that



So there's your problem :)

Yer, i think that must be it




  

i found the kernel-headers package, but it msut be damaged or something
(rpm --query says it exists, but i have my doubts as to the files still
existing)



  rpm -ql kernel-headers

yep, returns kernel-headers-2.2.14C11-1



If there aren't any special reasons, I would just use the corresponding 
headers for your kernel.

  


There is a special reason, namely: i cant find:
kernel-headers-2.2.14C11-1.rpm
anywhere :~(







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread heinisch

At 29.04.2002  15:24, you wrote:
At 29.04.2002  20:02, you wrote:
=
PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED]
=

hi, im having a few problems installing GD, ill start from the top:
I need Jpeg support in my PHP installation, and unfortunatly, GD (the 
verison i have) does not support them, so i figure, ill install it, 
installing the libary jpeg-6b works easily
however, i attempt to compile from there GD, but the following error is 
produced:
[root gd-1.8.4]# make
gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 
-I/usr/X11R6/include/X11 -I/usr/local/include -c -o gd_gd2.o gd_gd2.c
In file included from /usr/include/errno.h:36,
   from gd_gd2.c:14:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make: *** [gd_gd2.o] Error 1
I also tried recompiling PHP and got a similar error, which is very 
worrying, i think i might be missing some files
Basically, waht i would really like, is a way to modify my CURRENT php 
config or my CURRENT gd config to take advantage of my shiny new jpeg 
libary, is there any method u can recommend to accomplish this?

Thanks
Peter
=
PLEASE CC ALL AWNSERS TO [EMAIL PROTECTED]
==
Check out the config file for gd, the path to the jpeg-6b must be included.
There´s some problem of the order of the files, but there are more info in 
the config file.
Also the path where the jpg libs are installed, is sometimes different, so 
you have to check
them too.
HTH Oliver

TYPO
Oops I meant makefile for gd instead of config file


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Jason Wong

On Monday 29 April 2002 21:55, Peter Revill wrote:

 Its a colbat cube running some sort of modified linux, i think based on
 Redhat
 i doint know what kind of colbat cube

I presume you mean Colbalt ;-) in which case you cannot use the RH rpms.

 If there aren't any special reasons, I would just use the corresponding
 headers for your kernel.

 There is a special reason, namely: i cant find:
 kernel-headers-2.2.14C11-1.rpm
 anywhere :~(

Well, you can try installing a newer kernel-headers, I don't know what effect 
it will have.

Or your better bet is to upgrade the kernel as well.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Wouldn't this be a great world if being insecure and desperate were a turn-on?
-- Broadcast News
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php