Comments (6)
Damn ... passed configuration, but compilation failed. :(
from phpbrew.
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.
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.
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.
Cool, Thanks for your testing,
I've updated the README with your report.
from phpbrew.
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)
- PHP Deprecated messages running v2.0.0 with PHP 8.1.15 HOT 13
- phpbrew install php 7.4.33 fail HOT 1
- Can't install php anywhere version with openssl on MacOS Mojave HOT 5
- Failing on every install HOT 6
- php deprecated creation of dynamic property warning HOT 11
- I cannot compile with +fpm argument on Ubuntu 22.04 with 2.1.0 HOT 2
- No package 'libsystemd' found HOT 2
- Unable to install intl extension on ubuntu 22.0.4 with php 7.2 compiled from phpbrew HOT 16
- installing/enabling imagick leads to segmentation fault on Kubuntu 23.04 HOT 5
- Can't install on php 8.2.4 HOT 4
- Php 8.2 not supported? HOT 9
- PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array HOT 5
- When will PHP 8.2 be supported? HOT 6
- Centos8 install php 8 error
- Cannot switch to PHP v8.2.8 HOT 1
- PHP 8.1.11 (or 12) pgsql pg_config... not found … Cannot find libpq-fe.h HOT 2
- "patch for fix readline detection" is broken HOT 3
- Release workflow may have some problems
- Problems with 2.2.0 HOT 6
- Was 2.2.0 retagged? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpbrew.