成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

樹(shù)莓派3B編譯安裝Apache,nginx,mysql,php等遇到的問(wèn)題

樹(shù)莓派編譯安裝LANMP

  1. 簡(jiǎn)介

    我這里的樹(shù)莓派是3B版本,CPU4核,內(nèi)存1G,系統(tǒng)我用的是Ubuntu的19.10版。鏡像采用阿里的鏡像,鏡像源如下:

    我們提供的服務(wù)有:成都做網(wǎng)站、成都網(wǎng)站制作、微信公眾號(hào)開(kāi)發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、通江ssl等。為千余家企事業(yè)單位解決了網(wǎng)站和推廣的問(wèn)題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的通江網(wǎng)站制作公司

    deb https://mirrors.aliyun.com/ubuntu-ports eoan main restricted
    
    deb https://mirrors.aliyun.com/ubuntu-ports eoan-updates main restricted
    
    deb https://mirrors.aliyun.com/ubuntu-ports eoan universe
    deb https://mirrors.aliyun.com/ubuntu-ports eoan-updates universe
    
    deb https://mirrors.aliyun.com/ubuntu-ports eoan multiverse
    deb https://mirrors.aliyun.com/ubuntu-ports eoan-updates multiverse
    
    deb https://mirrors.aliyun.com/ubuntu-ports eoan-backports main restricted universe multiverse
    
    deb https://mirrors.aliyun.com/ubuntu-ports eoan-security main restricted
    deb https://mirrors.aliyun.com/ubuntu-ports eoan-security universe
    deb https://mirrors.aliyun.com/ubuntu-ports eoan-security multiverse

------------ 問(wèn)題1
編譯安裝apr-util-1.5版本時(shí)出現(xiàn)如下錯(cuò)誤
libtool: error: 'crypto/crypt_blowfish.lo' is not a valid libtool object
這種情況有可能是前面編譯時(shí)有緩存,用make clean清除一下再次編譯安裝

---------------問(wèn)題2

HTTP編譯時(shí)出現(xiàn)如下錯(cuò)誤可能是由于apr-util版本太高,換成1.5的版本試試
/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 status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/usr/local/httpd-2.4.26/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/httpd-2.4.26/support'
make: *** [all-recursive] Error 1

---------問(wèn)題3
NGINX編譯時(shí)出現(xiàn)問(wèn)題
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 <anonymous> )’} to ‘void ()(ngx_http_script_engine_t )’ {aka ‘void ()(struct <anonymous> )’}
[-Werror=cast-function-type]
這個(gè)錯(cuò)誤把MakeFile文件中的werror這個(gè)刪除調(diào),然后清理編譯緩存,make clean 重新編譯

---------------問(wèn)題4
在編譯安裝mariadb10.1.43時(shí)出現(xiàn):cc: fatal error: Killed signal terminated program cc1
這種情況應(yīng)該是內(nèi)存不足造成的,我從網(wǎng)上看到的方法是使用交換內(nèi)存,但是由于樹(shù)莓派是直接用TF卡安裝的,開(kāi)始沒(méi)有設(shè)置swap,后來(lái)我設(shè)置了還是報(bào)這個(gè)錯(cuò)誤----內(nèi)部編譯錯(cuò)誤
后來(lái)我的解決方法不安裝Mariadb數(shù)據(jù)庫(kù),改用MySQL5.6,結(jié)果是編譯成功了的。

--------------問(wèn)題5
編譯PHP時(shí)出現(xiàn):
make: *** [Makefile:584: ext/openssl/openssl.lo] Error 1
error: storage size of ‘cipher_ctx’ isn’t known
4848 | EVP_CIPHER_CTX cipher_ctx;
這種情況是OpenSSL最新版本接口調(diào)用變化所致,更換PHP為較新版本試一下或者使用OpenSSL較舊的版本


PHP編譯安裝配置:

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

1

NOTE樹(shù)莓派編譯安裝時(shí)出現(xiàn):onfigure: error: can not guess host type; you must specify one,這種情況除了要加--build=arm-linux,還有加上--host=localhost
Php7.1.33版本要求OpenSSL必須大于1.0.1版本:--with-openssl[=DIR] Include OpenSSL support (requires OpenSSL >= 0.9.6)
要求zlib大于1.2.0.4版本 --with-zlib[=DIR] Include ZLIB support (requires zlib >= 1.2.0.4)
2
編譯時(shí)出現(xiàn):freetype-config not found錯(cuò)誤時(shí),應(yīng)該是libfreetype-dev版本比較高,在Ubuntu19.10上是版本6.可以下載2.8.1解決這個(gè)問(wèn)題

網(wǎng)頁(yè)題目:樹(shù)莓派3B編譯安裝Apache,nginx,mysql,php等遇到的問(wèn)題
鏈接分享:http://jinyejixie.com/article14/gpicge.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營(yíng)銷(xiāo)型網(wǎng)站建設(shè)、小程序開(kāi)發(fā)網(wǎng)頁(yè)設(shè)計(jì)公司、建站公司App開(kāi)發(fā)、外貿(mào)網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

手機(jī)網(wǎng)站建設(shè)
许昌县| 葵青区| 怀安县| 康乐县| 漳州市| 万年县| 鄢陵县| 抚顺县| 勐海县| 通山县| 通辽市| 喜德县| 宿迁市| 凤庆县| 宜春市| 镇远县| 姜堰市| 柘城县| 德钦县| 买车| 蚌埠市| 牟定县| 屯留县| 玉溪市| 鄂伦春自治旗| 绥化市| 上犹县| 秭归县| 梧州市| 临泽县| 罗定市| 共和县| 大城县| 米泉市| 德庆县| 金乡县| 贺州市| 徐汇区| 论坛| 隆昌县| 余江县|