In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Brief introduction of Raspberry pie Compiler and installation of LANMP
My raspberry pie here is 3B version, CPU 4 core, 1G memory, system I use Ubuntu version 19.10. The image is mirrored by Ali. The source of the image is as follows:
Deb https://mirrors.aliyun.com/ubuntu-ports eoan main restricteddeb https://mirrors.aliyun.com/ubuntu-ports eoan-updates main restricteddeb https://mirrors.aliyun.com/ubuntu-ports eoan universedeb https://mirrors.aliyun.com/ubuntu-ports eoan-updates universedeb https://mirrors.aliyun.com/ubuntu-ports eoan multiversedeb https://mirrors.aliyun.com/ubuntu-ports eoan-updates multiversedeb https://mirrors.aliyun.com/ubuntu-ports eoan-backports main restricted universe multiversedeb https : / / mirrors.aliyun.com/ubuntu-ports eoan-security main restricteddeb https://mirrors.aliyun.com/ubuntu-ports eoan-security universedeb https://mirrors.aliyun.com/ubuntu-ports eoan-security multiverse
-question 1
The following error occurred while compiling and installing the apr-util-1.5 version
Libtool: error: 'crypto/crypt_blowfish.lo' is not a valid libtool object
In this case, it is possible that there is a cache at compile time before. Use make clean to clear it and compile and install it again.
-question 2
The following error occurred during HTTP compilation may be due to the high version of apr-util Try / usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_GetErrorCode'/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetEntityDeclHandler'/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_ParserCreate'/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetCharacterDataHandler'/usr/local/apr-util/lib/libaprutil-1 .so: undefined reference to `XML_ParserFree'/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_SetUserData'/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_StopParser'/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_Parse'/usr/local/apr-util/lib/libaprutil-1.so: undefined reference to `XML_ErrorString'/usr/local/apr-util/lib/libaprutil-1 .so: undefined reference to `XML_SetElementHandler'collect2: error: ld returned 1 exit statusmake [2]: * [htpasswd] Error 1make [2]: Leaving directory `/ usr/local/httpd-2.4.26/support'make [1]: * [all-recursive] Error 1make [1]: Leaving directory` / usr/local/httpd-2.4.26/support'make: * * [all-recursive] Error 1
-question 3
There is a problem with NGINX compilation
Src/http/ngx_http_script.c:698:18: error: cast between incompatible function types from 'size_t () (ngx_http_script_engine_t)'
{aka 'long unsigned int () (struct)'} to 'void () (ngx_http_script_engine_t)' {aka 'void () (struct)'}
[- Werror=cast-function-type]
This error removes the werror from the MakeFile file, then cleans up the compilation cache and recompiles make clean
-question 4
Appears when compiling and installing mariadb10.1.43: cc: fatal error: Killed signal terminated program cc1
This situation should be caused by insufficient memory. The method I saw on the Internet is to swap memory, but because raspberry pie is installed directly with TF card, swap is not set at first. Later, I set this error or reported this error-internal compilation error.
Later, my solution did not install the Mariadb database, but used MySQL5.6 instead, and the result was a successful compilation.
-question 5
Occurs when compiling PHP:
Make: * [Makefile:584: ext/openssl/openssl.lo] Error 1
Error: storage size of 'cipher_ctx' isn't known
4848 | EVP_CIPHER_CTX cipher_ctx
This situation is caused by the change of interface calls in the latest version of OpenSSL. Try changing PHP to a newer version or using an older version of OpenSSL.
PHP compilation installation configuration:
/ configure-- prefix=/usr/local/php5.3-- enable-mbstring-- enable-xml-- enable-fpm-- enable-sockets-- with-mysql=mysqlnd\-- with-pdo-mysql=mysqlnd-- with-mysqli=mysqlnd-- with-openssl-- with-freetype-dir-- with-jpeg-dir-- with-png-dir-- with-zlib\-- with-libxml-dir=/usr-- with-mcrypt-- with-config-file-path=/etc-- with-config-file-scan-dir= / etc/php.d-- with-bz2\-- with-mysql=/usr/local/mysql-- enable-pcntl-- enable-dba-- with-gd-- enable-gd-native-ttf-- enable-gd-jis-conv-- enable-ftp\-- enable-embedded-mysqli-- with-webp-dir-enable-debug-- enable-bcmath-- with-ldap-- with-gettext
one
NOTE raspberry pie is compiled and installed: onfigure: error: can not guess host type; you must specify one. In this case, in addition to adding-- build=arm-linux, there is also-- host=localhost.
Php7.1.33 version requires that OpenSSL must be greater than version 1.0.1:-- with-openssl [= DIR] Include OpenSSL support (requires OpenSSL > = 0.9.6)
Zlib is required to be greater than version 1.2.0.4-with-zlib [= DIR] Include ZLIB support (requires zlib > = 1.2.0.4)
two
Compile time: freetype-config not found error, it should be a higher version of libfreetype-dev, on Ubuntu19.10 is version 6. 0. You can download 2.8.1 to solve this problem.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.