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

libjpeg problem (gd - php)

hi,

i have been trying to get libjpeg working with gd & php on centos. php
is compiled from source (with gd option) and when i try compiling
libjpeg this happens:

[root@moo jpeg-6b]# ./configure --prefix=/usr --enable-shared
.....
.....
-no errors

[root@moo jpeg-6b]# make
.....
-no errors

[root@moo jpeg-6b]# make install
/usr/bin/install -c -m 644 ./cjpeg.1 /usr/man/man1/cjpeg.1
/usr/bin/install: cannot create regular file `/usr/man/man1/cjpeg.1':
No such file or directory
make: *** [install] Error 1


as i can not finish installing libjpeg, i can not specify the
--with-jpeg-dir parameter when i configure php, so i cannot use gd's
jpeg functions.
gdinfo() returns:
============
[GD Version] => bundled (2.0.28 compatible)
[FreeType Support] =>
[T1Lib Support] =>
[GIF Read Support] => 1
[GIF Create Support] => 1
[JPG Support] =>
[PNG Support] => 1
[WBMP Support] => 1
[XPM Support] =>
[XBM Support] => 1
[JIS-mapped Japanese Font Support] =>
============

so i cannot use imagecreatefromjpeg()
i also tried doing yum install libjpeg-devel, didn't help
i would appreciate if someone can give some pointers as i am totally
lost.

thanks.

May 16 '06 #1
3 5406
be******@googlemail.com wrote:
hi,

i have been trying to get libjpeg working with gd & php on centos. php
is compiled from source (with gd option) and when i try compiling
libjpeg this happens:

[root@moo jpeg-6b]# ./configure --prefix=/usr --enable-shared
....
....
-no errors

[root@moo jpeg-6b]# make
....
-no errors

[root@moo jpeg-6b]# make install
/usr/bin/install -c -m 644 ./cjpeg.1 /usr/man/man1/cjpeg.1
/usr/bin/install: cannot create regular file `/usr/man/man1/cjpeg.1':
No such file or directory
make: *** [install] Error 1


Judging by the path, that is just a man-page-entry that screws up.

If you are in a huury I suggest you try:
1) create a directory named /usr/man/man1
2) chmod 777
3) make it again.

4) optional: delete the directory.

Not sure, but you could try.
If PHP keeps complaining, dive into man(ual) pages setup for the
compileoptions. (Not my expertise).
Maybe you can give it somewhere the path were you store your manpages.

Good luck,
Regards,
Erwin Moller


as i can not finish installing libjpeg, i can not specify the
--with-jpeg-dir parameter when i configure php, so i cannot use gd's
jpeg functions.


May 16 '06 #2
Hi,

Thanks for your suggestion. Unfortunately for some reason mkdir fails
when trying to create /usr/man/man1

I have tried removing the --prefix=/usr from the configure line just to
see if it would do anything, and it actually solved the problem :)
libjpeg got installed in /usr/local/lib and i used
--with-jpeg-dir=/usr/local/lib in the php configure switch to get it
working.
Thanks

May 16 '06 #3
be******@googlemail.com wrote:
Hi,
Hi,

Thanks for your suggestion. Unfortunately for some reason mkdir fails
when trying to create /usr/man/man1
WHo owns the directory? You need to be in the same group, or be that user to
have permissions to create a dir.
(If unsure, try root if you own the machine.)

I have tried removing the --prefix=/usr from the configure line just to
see if it would do anything, and it actually solved the problem :)
libjpeg got installed in /usr/local/lib and i used
--with-jpeg-dir=/usr/local/lib in the php configure switch to get it
working.
Good!
Glad you fixed that, and glad to be of help.
The configoptions can be really too-much and are not always documented in a
human readable way. ;-)

Good luck.

Reagrds,
Erwin Moller


Thanks


May 17 '06 #4

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

Similar topics

0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
0
by: Slavik | last post by:
All libraries were installed (precompiled) This is FreeBSD 5.1 installed zlib, installed jpeg and png libraries (in default directories) GD 2.0.11 source is in /usr/gd-2.0.11 (compiled and...
2
by: Patrick Saunders | last post by:
I have been trying to GD working on HPUX for about, oh 2 months now, and have come across something that was interesting. I have this configuration: HPUX 11 Bundled Apache 2.0/PHP 4.3.4 ...
0
by: Phil | last post by:
I realize this is the php group, but I have a question that recurses back to my php install. My objective is a pure 64 bit shared object installation of php 5.0 on UltraSparc Solaris 9 compiled...
6
by: Encapsulin | last post by:
Hello there, I am tryin to compile PHP with GD support: # cd php-4.3.11 # ./configure \ --with-gd=/usr/local/src/gd-2.0.33/ \ --with-png-dir=/usr/local/src/libpng-1.2.8/ \...
1
by: awaegel | last post by:
Hello, I've been running php/apache/etc locally on my powerbook for a long time, but am having problems activating freetype with a new version of php. I'm using: php 4.4.0 freetype 2.1.10...
3
by: one2001boy | last post by:
Hello, I can build php 5.04 with apache 1.33 statically with the apache configuration option: --activate-module=src/modules/php5 How can I build php 5.04 with apache 2.0.54 statically? It...
0
by: mikko.koivunen | last post by:
Hello all, I am installing the Python Imaging Library (1.1.5). Following the README that came with PIL sources, I ran "path/to/python setup.py build_ext -i" which informed me that JPEG support...
0
by: markvr | last post by:
Not sure if this is the best place to ask this, if not please can someone point in the right direction. I am trying to compile PHP 5.2 on a Solaris 9 system. I need Oracle DB support so can't...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.