hwanginsitein 发表于 2019-6-10 22:55:45

安装最新的lnmp1.6的php失败,跪求大神解惑

collect2: error: ld returned 1 exit status
Makefile:293: recipe for target 'sapi/cli/php' failed
make: *** Error 1

licess 发表于 2019-6-11 09:12:40

/home/hwanginsitein/lnmp1.6/src/php-7.2.19/ext/intl/breakiterator/codepointiterator_internal.cpp:46: undefined reference to `icu_63::BreakIterator::~BreakIterator()'
ext/intl/breakiterator/.libs/codepointiterator_internal.o: In function `PHP::CodePointBreakIterator::clone() const':
/home/hwanginsitein/lnmp1.6/src/php-7.2.19/ext/intl/breakiterator/codepointiterator_internal.cpp:95: undefined reference to `icu_63::UMemory::operator new(unsigned long)'
/home/hwanginsitein/lnmp1.6/src/php-7.2.19/ext/intl/breakiterator/codepointiterator_internal.cpp:95: undefined reference to `icu_63::UMemory::operator delete(void*)'
ext/intl/breakiterator/.libs/codepointiterator_internal.o: In function `PHP::CodePointBreakIterator::createBufferClone(void*, int&, UErrorCode&)':
/home/hwanginsitein/lnmp1.6/src/php-7.2.19/ext/intl/breakiterator/codepointiterator_internal.cpp:257: undefined reference to `icu_63::UMemory::operator new(unsigned long)'
/home/hwanginsitein/lnmp1.6/src/php-7.2.19/ext/intl/breakiterator/codepointiterator_internal.cpp:257: undefined reference to `icu_63::UMemory::operator delete(void*)'
ext/intl/breakiterator/.libs/codepointiterator_internal.o: In function `PHP::CodePointBreakIterator::getUText(UText*, UErrorCode&) const':
/home/hwanginsitein/lnmp1.6/src/php-7.2.19/ext/intl/breakiterator/codepointiterator_internal.cpp:111: undefined reference to `utext_clone_63'
ext/intl/breakiterator/.libs/codepointiterator_internal.o: In function `PHP::CodePointBreakIterator::~CodePointBreakIterator()':
/home/hwanginsitein/lnmp1.6/src/php-7.2.19/ext/intl/breakiterator/codepointiterator_internal.cpp:69: undefined reference to `icu_63::BreakIterator::~BreakIterator()'
ext/intl/breakiterator/.libs/codepointiterator_internal.o: In function `PHP::CodePointBreakIterator::~CodePointBreakIterator()':
/home/hwanginsitein/lnmp1.6/src/php-7.2.19/ext/intl/breakiterator/codepointiterator_internal.cpp:75: undefined reference to `icu_63::UMemory::operator delete(void*)'
ext/intl/breakiterator/.libs/codepointiterator_internal.o:(.data.rel.ro._ZTIN3PHP22CodePointBreakIteratorE+0x10): undefined reference to `typeinfo for icu_63::BreakIterator'
ext/intl/breakiterator/.libs/codepointiterator_internal.o:(.data.rel.ro._ZTVN3PHP22CodePointBreakIteratorE+0xa8): undefined reference to `icu_63::BreakIterator::getRuleStatus() const'
ext/intl/breakiterator/.libs/codepointiterator_internal.o:(.data.rel.ro._ZTVN3PHP22CodePointBreakIteratorE+0xb0): undefined reference to `icu_63::BreakIterator::getRuleStatusVec(int*, int, UErrorCode&)'
ext/xmlrpc/libxmlrpc/.libs/encodings.o: In function `convert':
/home/hwanginsitein/lnmp1.6/src/php-7.2.19/ext/xmlrpc/libxmlrpc/encodings.c:65: undefined reference to `libiconv_open'
/home/hwanginsitein/lnmp1.6/src/php-7.2.19/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv'
/home/hwanginsitein/lnmp1.6/src/php-7.2.19/ext/xmlrpc/libxmlrpc/encodings.c:93: undefined reference to `libiconv_close'
/home/hwanginsitein/lnmp1.6/src/php-7.2.19/ext/xmlrpc/libxmlrpc/encodings.c:93: undefined reference to `libiconv_close'
/home/hwanginsitein/lnmp1.6/src/php-7.2.19/ext/xmlrpc/libxmlrpc/encodings.c:93: undefined reference to `libiconv_close'
这个问题本身安装脚本就有对这个适配,还是报错的话就没办法了,换个php版本或者ubuntu的版本试试

hwanginsitein 发表于 2019-6-11 09:31:28

我前段时间安装php7.3.6成功了,但是发现php7.3.6有bug,然后打算退回别的版本,结果就是这个样子

hwanginsitein 发表于 2019-6-13 23:34:45

configure 的时候 去掉 --enable-intl就安装成功了,请问下军哥为什么吗?

licess 发表于 2019-6-14 13:36:12

hwanginsitein 发表于 2019-6-13 23:34
configure 的时候 去掉 --enable-intl就安装成功了,请问下军哥为什么吗?

不需要icu的话可以去掉,有可能你系统上的icu版本与php有兼容问题
你的是什么linux发行版,什么版本的?

hwanginsitein 发表于 2019-8-8 10:19:00

licess 发表于 2019-6-14 13:36
不需要icu的话可以去掉,有可能你系统上的icu版本与php有兼容问题
你的是什么linux发行版,什么版本的? ...

我的是ubuntu18.04
页: [1]
查看完整版本: 安装最新的lnmp1.6的php失败,跪求大神解惑