树莓派buster安装lnmp失败
安装php的时候失败,其他没问题日志
本帖最后由 qwe134133987 于 2019-7-22 13:27 编辑
make: *** 错误 1
/bin/bash /home/pi/lnmp1.6/src/php-5.6.40/libtool --silent --preserve-dup-deps --mode=compile g++ -I/usr/include-Wno-write-strings -Iext/intl/ -I/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/ -DPHP_ATOM_INC -I/home/pi/lnmp1.6/src/php-5.6.40/include -I/home/pi/lnmp1.6/src/php-5.6.40/main -I/home/pi/lnmp1.6/src/php-5.6.40 -I/home/pi/lnmp1.6/src/php-5.6.40/ext/date/lib -I/home/pi/lnmp1.6/src/php-5.6.40/ext/ereg/regex -I/usr/include/libxml2 -I/usr/local/openssl/include -I/usr/local/curl/include -I/usr/local/freetype/include/freetype2 -I/home/pi/lnmp1.6/src/php-5.6.40/ext/mbstring/oniguruma -I/home/pi/lnmp1.6/src/php-5.6.40/ext/mbstring/libmbfl -I/home/pi/lnmp1.6/src/php-5.6.40/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/home/pi/lnmp1.6/src/php-5.6.40/ext/sqlite3/libsqlite -I/home/pi/lnmp1.6/src/php-5.6.40/ext/zip/lib -I/home/pi/lnmp1.6/src/php-5.6.40/TSRM -I/home/pi/lnmp1.6/src/php-5.6.40/Zend -g -O2-c /home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp -o ext/intl/intl_convertcpp.lo
In file included from /home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:21:
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:28:25: error: ‘UnicodeString’ was not declared in this scope
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
^~~~~~~~~~~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:28:25: note: suggested alternative:
In file included from /home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:26,
from /home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:21:
/usr/include/unicode/unistr.h:289:20: note: ‘icu_63::UnicodeString’
class U_COMMON_API UnicodeString : public Replaceable
^~~~~~~~~~~~~
In file included from /home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:21:
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:28:40: error: ‘ret’ was not declared in this scope
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
^~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:28:40: note: suggested alternative: ‘getw’
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
^~~
getw
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:28:45: error: expected primary-expression before ‘char’
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
^~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:28:64: error: expected primary-expression before ‘str_len’
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
^~~~~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:28:84: error: expected primary-expression before ‘*’ token
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
^
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:28:85: error: ‘status’ was not declared in this scope
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
^~~~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:28:85: note: suggested alternative: ‘static’
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
^~~~~~
static
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:28:91: error: expression list treated as compound expression in initializer [-fpermissive]
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
^
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:30:31: error: ‘UnicodeString’ does not name a type; did you mean ‘gdImageString’?
int intl_charFromString(const UnicodeString &from, char **res, int *res_len, UErrorCode *status);
^~~~~~~~~~~~~
gdImageString
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:28:25: error: redefinition of ‘int intl_stringFromChar’
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
^~~~~~~~~~~~~
In file included from /home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:21:
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:28:5: note: ‘int intl_stringFromChar’ previously defined here
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
^~~~~~~~~~~~~~~~~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:28:25: error: ‘UnicodeString’ was not declared in this scope
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
^~~~~~~~~~~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:28:25: note: suggested alternative:
In file included from /home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.h:26,
from /home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:21:
/usr/include/unicode/unistr.h:289:20: note: ‘icu_63::UnicodeString’
class U_COMMON_API UnicodeString : public Replaceable
^~~~~~~~~~~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:28:40: error: ‘ret’ was not declared in this scope
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
^~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:28:40: note: suggested alternative: ‘recv’
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
^~~
recv
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:28:45: error: expected primary-expression before ‘char’
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
^~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:28:64: error: expected primary-expression before ‘str_len’
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
^~~~~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:28:84: error: expected primary-expression before ‘*’ token
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
^
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:28:85: error: ‘status’ was not declared in this scope
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
^~~~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:28:85: note: suggested alternative: ‘statx’
int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status)
^~~~~~
statx
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:54:31: error: ‘UnicodeString’ does not name a type; did you mean ‘OnUpdateString’?
int intl_charFromString(const UnicodeString &from, char **res, int *res_len, UErrorCode *status)
^~~~~~~~~~~~~
OnUpdateString
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp: In function ‘int intl_charFromString(const int&, char**, int*, UErrorCode*)’:
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:56:11: error: request for member ‘isBogus’ in ‘from’, which is of non-class type ‘const int’
if (from.isBogus()) {
^~~~~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:62:26: error: request for member ‘length’ in ‘from’, which is of non-class type ‘const int’
int32_t capacity = from.length() * 3 + 1;
^~~~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:64:11: error: request for member ‘isEmpty’ in ‘from’, which is of non-class type ‘const int’
if (from.isEmpty()) {
^~~~~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:74:31: error: request for member ‘getBuffer’ in ‘from’, which is of non-class type ‘const int’
const UChar *utf16buf = from.getBuffer();
^~~~~~~~~
/home/pi/lnmp1.6/src/php-5.6.40/ext/intl/intl_convertcpp.cpp:76:69: error: request for member ‘length’ in ‘from’, which is of non-class type ‘const int’
u_strToUTF8WithSub(*res, capacity - 1, &actual_len, utf16buf, from.length(),
^~~~~~
make: *** 错误 1
安装要求上有说明,请看最后一条
页:
[1]