Hello,
I have installed multiple php on the server running DirectAdmin. But I got an error when installing php5.6.
Log displays as follows:
I installed according to the following instructions:
My server information:
CentOS Linux release 7.9.2009 (Core)
DirectAdmin v.1.656
Custombuild 2.0.0
Please help me reinstall php5.6. Thanks.
I have installed multiple php on the server running DirectAdmin. But I got an error when installing php5.6.
Log displays as follows:
/usr/local/directadmin/custombuild/tmp/tmp.2owsYaOBHt.php-5.6.40.tar.gz/ext/intl/intl_convertcpp.cpp: In function 'int intl_stringFromChar(icu_66::UnicodeString&, char*, int32_t, UErrorCode*)':
/usr/local/directadmin/custombuild/tmp/tmp.2owsYaOBHt.php-5.6.40.tar.gz/ext/intl/intl_convertcpp.cpp:35:2: error: 'UChar' was not declared in this scope
UChar *utf16 = ret.getBuffer(capacity);
^
/usr/local/directadmin/custombuild/tmp/tmp.2owsYaOBHt.php-5.6.40.tar.gz/ext/intl/intl_convertcpp.cpp:35:9: error: 'utf16' was not declared in this scope
UChar *utf16 = ret.getBuffer(capacity);
^
/usr/local/directadmin/custombuild/tmp/tmp.2owsYaOBHt.php-5.6.40.tar.gz/ext/intl/intl_convertcpp.cpp:35:21: error: 'class icu_66::UnicodeString' has no member named 'getBuffer'
UChar *utf16 = ret.getBuffer(capacity);
^
/usr/local/directadmin/custombuild/tmp/tmp.2owsYaOBHt.php-5.6.40.tar.gz/ext/intl/intl_convertcpp.cpp:40:9: error: 'u_strFromUTF8WithSub_66' was not declared in this scope
status);
^
/usr/local/directadmin/custombuild/tmp/tmp.2owsYaOBHt.php-5.6.40.tar.gz/ext/intl/intl_convertcpp.cpp: In function 'int intl_charFromString(const icu_66::UnicodeString&, char**, int*, UErrorCode*)':
/usr/local/directadmin/custombuild/tmp/tmp.2owsYaOBHt.php-5.6.40.tar.gz/ext/intl/intl_convertcpp.cpp:74:8: error: 'UChar' does not name a type
const UChar *utf16buf = from.getBuffer();
^
/usr/local/directadmin/custombuild/tmp/tmp.2owsYaOBHt.php-5.6.40.tar.gz/ext/intl/intl_convertcpp.cpp:76:54: error: 'utf16buf' was not declared in this scope
u_strToUTF8WithSub(*res, capacity - 1, &actual_len, utf16buf, from.length(),
^
make: *** [ext/intl/intl_convertcpp.lo] Error 1
make: *** Waiting for unfinished jobs....
*** The make has failed. Exiting...
I installed according to the following instructions:
cd /usr/local/directadmin/custombuild
./build update
./build set php1_release 7.4
./build set php2_release 7.3
./build set php3_release 7.2
./build set php4_release 5.6
cd /usr/local/directadmin/custombuild
./build php n
My server information:
CentOS Linux release 7.9.2009 (Core)
DirectAdmin v.1.656
Custombuild 2.0.0
Please help me reinstall php5.6. Thanks.