Re: JPG Not supported on my server, but GDlib enabled?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



afan@xxxxxxxx wrote:
> There is something I didn't know from begining (sorry for maybe leading
> you to wrong direction): I though to enable peg/gif/png is part of the
> php.ini. 

I can't imagine why you though that - if you look through the ini files that come
with php as standard you'll see no reference to enabling jpeg or anything like that.

to confuse matter, I believe, you mentioned that you had some experience in
compiling php.

> Actually, this is what has to be done while compiling GDlib?
> 
> Does GDlib has to be re-compiled to enable jpeg support? Or there is other
> way?

you have to recompile php. something like:

./configure '--with-apxs2=/etc/apache2/bin/apxs' '--with-mysql' '--with-gd' '--with-zlib-dir=/usr/local/lib'
'--with-jpeg-dir'

and if that fails (errors out because it can't find libjpeg) then try this:


'./configure' '--with-apxs2=/etc/apache2/bin/apxs' '--with-mysql' '--with-gd' '--with-zlib-dir=/usr/local/lib'
'--with-jpeg-dir=/usr/local/lib'

and if that doesn't work then you'll have to figure out where libjpeg lives on your system
if it does work you have run the following commands:

make
make install

but before you do any of that *READ* the help output of the configure command
(as I mentioned in a previous mail)

if you know what your doing (including configuring where php will be installed on your system)
this should take no longer than five minutes - I guess I should be in the hosting game because
250 dollars for 5 minutes work sounds like good money :-P

> 
> -afan
> 
> 
>> afan@xxxxxxxx wrote:
>>>> can somebody point me to the right direction?
>>>>
>>>> google?
>>> very funny...
>>> already was searching google but didn't find anything.
>>>
>>> yes, I can spend enxt 12 hours searching on google, but isn't easier to
>>> ask here after SOME research?
>> run configure with the help option, it give you lots of info:
>>
>> 	./configure --help
>>
>> the specific option you need is:
>>
>> 	--with-jpeg-dir[=DIR]     GD: Set the path to libjpeg install prefix
>>
>> you may need to actually install libjpeg - if so you'll have to find out
>> how to
>> install stuff in your distro, I prefer debian where the command would be
>> (off the top of my head)
>>
>> 	apt-get install libjpeg
>>
>> btw stop moaning - the GD manual page clearly contains info about how to
>> configure
>> GD with jpeg support:
>>
>> 	http://php.net/gd
>>
>>>
>>>> --
>>>> PHP General Mailing List (http://www.php.net/)
>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> 

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux