Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

libjpeg problem (gd - php)

Discussion in 'General Discussion' started by ant.eater, May 16, 2006.

  1. ant.eater

    ant.eater Registered

    Joined:
    May 16, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    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] =>

    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.
     
  2. ant.eater

    ant.eater Registered

    Joined:
    May 16, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    Problem solved. For further reference:

    Removing the --prefix=/usr from the configure line 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.
     
  3. SeanHogan

    SeanHogan Member

    Joined:
    Jan 16, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    151
    configure php

    where do you configure php when you want to add in libjpeg?
     
  4. donneo

    donneo Registered

    Joined:
    Feb 25, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    is there any fix for this
     
  5. ant.eater

    ant.eater Registered

    Joined:
    May 16, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    It's been a while but i guess removing the --prefix option from ./configure solved the problem for me.

    So if you do:

    # ./configure --prefix=/usr --enable-shared

    libjpeg will be installed in /usr/local/lib and you can then use --with-jpeg-dir=/usr/local/lib in the php configure switch to get it working with php.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice