GithubHelp home page GithubHelp logo

Comments (6)

markwu avatar markwu commented on July 2, 2024

Damn ... passed configuration, but compilation failed. :(

from phpbrew.

markwu avatar markwu commented on July 2, 2024

I try to ln the needed lib to /usr/lib, no luck.

$ sudo ln -fs /usr/lib/x86_64-linux-gnu/libgd.so /usr/lib/libgd.so
$ sudo ln -fs /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/libjpeg.so
$ sudo ln -fs /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/libpng.so

Here the comes error messages: (the same error message as above)

In file included from /home/devel/.phpbrew/build/php-5.4.10/ext/gd/gd.c:103:0:
/home/devel/.phpbrew/build/php-5.4.10/ext/gd/gd_ctx.c: In function 「_php_image_stream_putc」:
/home/devel/.phpbrew/build/php-5.4.10/ext/gd/gd_ctx.c:51:41: 錯誤: 「struct gdIOCtx」 沒具名為 「data」 的成員
/home/devel/.phpbrew/build/php-5.4.10/ext/gd/gd_ctx.c: In function 「_php_image_stream_putbuf」:
/home/devel/.phpbrew/build/php-5.4.10/ext/gd/gd_ctx.c:58:41: 錯誤: 「struct gdIOCtx」 沒具名為 「data」 的成員
/home/devel/.phpbrew/build/php-5.4.10/ext/gd/gd_ctx.c: In function 「_php_image_stream_ctxfree」:
/home/devel/.phpbrew/build/php-5.4.10/ext/gd/gd_ctx.c:67:8: 錯誤: 「struct gdIOCtx」 沒具名為 「data」 的成員
/home/devel/.phpbrew/build/php-5.4.10/ext/gd/gd_ctx.c:68:3: 錯誤: 「struct gdIOCtx」 沒具名為 「data」 的成員
/home/devel/.phpbrew/build/php-5.4.10/ext/gd/gd_ctx.c:69:6: 錯誤: 「struct gdIOCtx」 沒具名為 「data」 的成員
In file included from /home/devel/.phpbrew/build/php-5.4.10/ext/gd/gd.c:103:0:
/home/devel/.phpbrew/build/php-5.4.10/ext/gd/gd_ctx.c: In function 「_php_image_output_ctx」:
/home/devel/.phpbrew/build/php-5.4.10/ext/gd/gd_ctx.c:153:6: 錯誤: 「gdIOCtx」 沒具名為 「data」 的成員

from phpbrew.

markwu avatar markwu commented on July 2, 2024

It seems I can not use the system gd, I have to use php gd bundle.

Here comes a working command under ubuntu 12.10 (x86_64)

phpbrew install php-5.4.10 +default +mysql +intl +gettext +apxs2=/usr/bin/apxs2 -- --with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png-dir=/usr

Mark

from phpbrew.

markwu avatar markwu commented on July 2, 2024

Okay, final version. I can use the following command without symbolic link related libs.

phpbrew install php-5.4.10 +default +mysql +intl +gettext +apxs2=/usr/bin/apxs2 -- --with-libdir=lib/x86_64-linux-gnu --with-gd=shared --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png-dir=/usr

from phpbrew.

c9s avatar c9s commented on July 2, 2024

Cool, Thanks for your testing,

I've updated the README with your report.

from phpbrew.

c9s avatar c9s commented on July 2, 2024

phpbrew 1.11 let you do the things automatically, if you use homebrew:

 phpbrew lookup-prefix homebrew
 phpbrew lookup-prefix macports    # if you use macports
 phpbrew lookup-prefix linux           # if you use linux
 phpbrew install 5.4.4 +gd

This will expand the options, e.g. the options for homebrew will be something like this:

--with-gd=/usr/local/Cellar \
    --with-png-dir=/usr/local/Cellar \
    --with-jpeg-dir=/usr/local/Cellar \
    --with-freetype-dir=/usr/local/Cellar  \
    --enable-gd-native-ttf

The --libdir option will be added automatically also.

from phpbrew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.