-
-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
centos安装扩展失败 #134
Comments
zlib 依赖是否安装? |
这个安装过的。
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: viest <[email protected]>
发送时间: 2019年6月30日 15:25
收件人: viest/php-ext-excel-export <[email protected]>
抄送: needrunning <[email protected]>, Author <[email protected]>
主题: 回复:[viest/php-ext-excel-export] centos安装扩展失败 (#134)
zlib 依赖是否安装?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
On CentOS, don't build from sources, simply use https://rpms.remirepo.net/ |
看了链接 不太明白啊 那如何解决这个扩展安装失败问题? |
https://rpms.remirepo.net/wizard/ 选择你的系统版本、PHP版本、安装类型,下面会生成一个使用向导。 |
@needrunning 我将重新开启这个 issues ,待解决时关闭。 |
Would be nice to use english.... |
I will create a new issue to guide the user to use https://rpms.remirepo.net/ Pinned issue #137 |
Has your problem been solved? |
I'm working on something that hasn't been solved yet |
now I have two problems one: in order to install pxlswriter via pecl install pxlswriter, Do you need to reinstall PHP? two: I have runed pecl install pxlswriter in my server , lude/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/tmp/pear/install/xlswriter/library/include -I/tmp/pear/install/xlswriter -I/tmp/pear/install/xlswriter/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/install/xlswriter/library/third_party/minizip/zip.c -fPIC -DPIC -o library/third_party/minizip/.libs/zip.o |
There is 2 ways 1/ build everything from sources (php, libraries, extensions...) notice : "pecl install" is building from sources 2/ use the package manager and rely on a good packages provider How was installed you PHP ? Using "remi" is the most easy way (and the only provider for CentoOS 6, only 3rd party repo only provide new PHP versions for C7) Nothing need to be built from sources
|
@viest BTW, I confirm that building from sources xlswriter using bundled library doesn't work on old CentOS 6 with old compiler and old system tools / libraries. C6 is now terrible old (9 years), and will be EOL in a few months (Nov 2020). RPM packages build fine on C6, but only use the system library which is built separately, with another build system (cmake), which probably detect more needed compatibility options. |
@remicollet The serious backwardness of the CentOS version is indeed a problem. |
@remicollet I will post an emergency fix version |
|
@remicollet Thank you for your contribution 👍 |
编译最后一步
sudo make && make install
环境
PHP 7.2.13 (cli) (built: Dec 8 2018 12:27:01) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.7, Copyright (c) 1999-2018, by Zend Technologies
rinting-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.7 (Final)
Release: 6.7
Codename: Final
The text was updated successfully, but these errors were encountered: