Giter Club home page Giter Club logo

Comments (18)

viest avatar viest commented on May 29, 2024

zlib 依赖是否安装?

from php-ext-xlswriter.

needrunning avatar needrunning commented on May 29, 2024

from php-ext-xlswriter.

remicollet avatar remicollet commented on May 29, 2024

On CentOS, don't build from sources, simply use https://rpms.remirepo.net/
Which have nearly all extensions available, including this one, for all PHP versions (5.4 to 7.4)

from php-ext-xlswriter.

viest avatar viest commented on May 29, 2024

@remicollet 👍

from php-ext-xlswriter.

needrunning avatar needrunning commented on May 29, 2024

@remicollet 👍

看了链接 不太明白啊 那如何解决这个扩展安装失败问题?

from php-ext-xlswriter.

viest avatar viest commented on May 29, 2024

@needrunning

https://rpms.remirepo.net/wizard/

选择你的系统版本、PHP版本、安装类型,下面会生成一个使用向导。

from php-ext-xlswriter.

viest avatar viest commented on May 29, 2024

@needrunning 我将重新开启这个 issues ,待解决时关闭。

from php-ext-xlswriter.

remicollet avatar remicollet commented on May 29, 2024

Would be nice to use english....

from php-ext-xlswriter.

viest avatar viest commented on May 29, 2024

@remicollet

I will create a new issue to guide the user to use https://rpms.remirepo.net/

Pinned issue #137

from php-ext-xlswriter.

viest avatar viest commented on May 29, 2024

@needrunning

Has your problem been solved?

from php-ext-xlswriter.

needrunning avatar needrunning commented on May 29, 2024

@needrunning

Has your problem been solved?

I'm working on something that hasn't been solved yet

from php-ext-xlswriter.

needrunning avatar needrunning commented on May 29, 2024

@needrunning

Has your problem been solved?

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 ,
As shown below

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
/tmp/pear/install/xlswriter/library/third_party/minizip/zip.c:160: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘attribute’ before ‘’ token
In file included from /tmp/pear/install/xlswriter/library/third_party/minizip/zip.c:186:
/tmp/pear/install/xlswriter/library/third_party/minizip/crypt.h:35: error: expected ‘;’, ‘,’ or ‘)’ before ‘
’ token
/tmp/pear/install/xlswriter/library/third_party/minizip/crypt.h:48: error: expected ‘;’, ‘,’ or ‘)’ before ‘’ token
/tmp/pear/install/xlswriter/library/third_party/minizip/crypt.h:65: error: expected ‘;’, ‘,’ or ‘)’ before ‘
’ token
/tmp/pear/install/xlswriter/library/third_party/minizip/crypt.h:94: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/tmp/pear/install/xlswriter/library/third_party/minizip/zip.c: In function ‘zipOpenNewFileInZip4_64’:
/tmp/pear/install/xlswriter/library/third_party/minizip/zip.c:1245: error: ‘curfile64_info’ has no member named ‘crypt_header_size’
/tmp/pear/install/xlswriter/library/third_party/minizip/zip.c:1251: error: ‘curfile64_info’ has no member named ‘pcrc_32_tab’
/tmp/pear/install/xlswriter/library/third_party/minizip/zip.c:1254: error: ‘curfile64_info’ has no member named ‘pcrc_32_tab’
/tmp/pear/install/xlswriter/library/third_party/minizip/zip.c:1255: error: ‘curfile64_info’ has no member named ‘crypt_header_size’
/tmp/pear/install/xlswriter/library/third_party/minizip/zip.c: In function ‘zip64FlushWriteBuffer’:
/tmp/pear/install/xlswriter/library/third_party/minizip/zip.c:1375: error: ‘curfile64_info’ has no member named ‘pcrc_32_tab’
/tmp/pear/install/xlswriter/library/third_party/minizip/zip.c:1375: error: ‘curfile64_info’ has no member named ‘pcrc_32_tab’
/tmp/pear/install/xlswriter/library/third_party/minizip/zip.c: In function ‘zipCloseFileInZipRaw64’:
/tmp/pear/install/xlswriter/library/third_party/minizip/zip.c:1610: error: ‘curfile64_info’ has no member named ‘crypt_header_size’
make: *** [library/third_party/minizip/zip.lo] Error 1

from php-ext-xlswriter.

remicollet avatar remicollet commented on May 29, 2024

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

yum install php-pecl-xlswriter

from php-ext-xlswriter.

remicollet avatar remicollet commented on May 29, 2024

@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.

from php-ext-xlswriter.

viest avatar viest commented on May 29, 2024

@remicollet The serious backwardness of the CentOS version is indeed a problem.

from php-ext-xlswriter.

viest avatar viest commented on May 29, 2024

@remicollet I will post an emergency fix version 1.2.6

from php-ext-xlswriter.

remicollet avatar remicollet commented on May 29, 2024

The serious backwardness of the CentOS version is indeed a problem.

https://twitter.com/RemiCollet/status/903155214441738240 ;)

from php-ext-xlswriter.

viest avatar viest commented on May 29, 2024

@remicollet Thank you for your contribution 👍

from php-ext-xlswriter.

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.