湖濱散記部落格的樹心幽徑[login][主頁]
593:20200525在90.2Fedora LINUX機器昇級PHP

(1) 裝 MediaWiki 1.34 requires at least PHP version 7.2.9, you are using PHP 5.4.5.

 

(2)要先安裝並昇級gcc編譯器,安裝過程請參考20200529在LINUX安裝GCC10.1 »

[root@www cmake-3.17.2]#  export export PATH=/usr/local/gcc-10.1.0/bin:$PATH
[root@www cmake-3.17.2]#  export LD_LIBRARY_PATH=/usr/local/gcc-10.1.0/lib64:$LD_LIBRARY_PATH

 

(3)下載並安裝 libzip-1.6.1.tar.gz

 

(4)下載php-7.4.6.tar.gz (sig) [16,115Kb] 14 May 2020 並拷到 ~webadm/lnx下。

# stat php-7.4.6.tar.gz
  File: ‘php-7.4.6.tar.gz’
  Size: 16501931        Blocks: 32232      IO Block: 4096   普通檔案
Device: fd02h/64770d    Inode: 4980935     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/  webadm)   Gid: ( 1000/  webadm)
Access: 2020-05-25 13:55:40.436087363 +0800
:

(3)解開如下:

# tar xvzf php-7.4.6.tar.gz

(4)

#cd php-7.4.6/
[root@www php-7.4.6]# ls
appveyor             configure.ac     pear                 tests
azure                CONTRIBUTING.md  php.ini-development  travis
azure-pipelines.yml  docs             php.ini-production   TSRM
build                ext              README.md            UPGRADING
buildconf            EXTENSIONS       README.REDIST.BINS   UPGRADING.INTERNALS
buildconf.bat        LICENSE          run-tests.php        win32
CODING_STANDARDS.md  main             sapi                 Zend
configure            NEWS             scripts
[root@www php-7.4.6]# cat README.md

:

[installation chapter](https://php.net/install).

:

(5)裝CMAKE3

(5-1)下載Unix/Linux Source (has \n line feeds) cmake-3.17.2.tar.gz

 

(5-2)察看目前版本

# cmake -version
cmake version 2.8.9

 

(5-3)解開

# tar xvzf cmake-3.17.2.tar.gz


(5-4)

# cd cmake-3.17.2/
# ./bootstrap

:

g++ does not have environ in stdlib.h

 

gmake: *** [cmAddCustomCommandCommand.o] Error 1
---------------------------------------------
Error when bootstrapping CMake:
Problem while running gmake
---------------------------------------------
Log of errors: /home/webadm/lnx/cmake-3.17.2/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
[root@www cmake-3.17.2]#

# yum remove cmake*
Loaded plugins: changelog, langpacks, presto, refresh-packagekit
No Match for argument: cmake_uninstall.cmake.in
No Packages marked for removal

 

[root@www cmake-3.17.2]#  ./bootstrap
---------------------------------------------
CMake 3.17.2, Copyright 2000-2020 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc
C++ compiler on this system is: g++  -std=gnu++11
Makefile processor on this system is: gmake
g++ has setenv
g++ has unsetenv
g++ does not have environ in stdlib.h
g++ has stl wstring
g++ has <ext/stdio_filebuf.h>
---------------------------------------------
g++  -std=gnu++11      -DCMAKE_BOOTSTRAP      -I/home/webadm/lnx/cmake-3.17.2/Bo                                                 otstrap.cmk   -I/home/webadm/lnx/cmake-3.17.2/Source   -I/home/webadm/lnx/cmake-                                                 3.17.2/Source/LexerParser   -I/home/webadm/lnx/cmake-3.17.2/Utilities/std   -I/h                                                 ome/webadm/lnx/cmake-3.17.2/Utilities  -c /home/webadm/lnx/cmake-3.17.2/Source/c                                                 mAddCustomCommandCommand.cxx -o cmAddCustomCommandCommand.o
In file included from /home/webadm/lnx/cmake-3.17.2/Source/cmStringAlgorithms.h:                                                 18:0,
                 from /home/webadm/lnx/cmake-3.17.2/Source/cmGlobalGenerator.h:2                                                 5,
                 from /home/webadm/lnx/cmake-3.17.2/Source/cmAddCustomCommandCom                                                 mand.cxx:13:
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:151:42: 錯誤:expected 「;」 at e                                                 nd of member declaration
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:152:3: 錯誤:expected unqualified                                                 -id before 「{」 token
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:155:3: 錯誤:expected 「;」 at en                                                 d of member declaration
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:157:41: 錯誤:expected 「;」 at e                                                 nd of member declaration
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:157:11: 錯誤:「cmRange<Iter> cmR                                                 ange<Iter>::advance(cmRange<Iter>::difference_type)」 無法被多載
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:151:12: 錯誤:與 「cmRange<Iter>&                                                  cmRange<Iter>::advance(cmRange<Iter>::difference_type)」
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:158:3: 錯誤:expected unqualified                                                 -id before 「{」 token
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:161:3: 錯誤:expected 「;」 at en                                                 d of member declaration
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:163:42: 錯誤:expected 「;」 at e                                                 nd of member declaration
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:164:3: 錯誤:expected unqualified                                                 -id before 「{」 token
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:167:3: 錯誤:expected 「;」 at en                                                 d of member declaration
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:169:41: 錯誤:expected 「;」 at e                                                 nd of member declaration
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:169:11: 錯誤:「cmRange<Iter> cmR                                                 ange<Iter>::retreat(cmRange<Iter>::difference_type)」 無法被多載
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:163:12: 錯誤:與 「cmRange<Iter>&                                                  cmRange<Iter>::retreat(cmRange<Iter>::difference_type)」
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:170:3: 錯誤:expected unqualified                                                 -id before 「{」 token
/home/webadm/lnx/cmake-3.17.2/Source/cmRange.h:173:3: 錯誤:expected 「;」 at en                                                 d of member declaration
gmake: *** [cmAddCustomCommandCommand.o] Error 1
---------------------------------------------
Error when bootstrapping CMake:
Problem while running gmake
---------------------------------------------
Log of errors: /home/webadm/lnx/cmake-3.17.2/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
[root@www cmake-3.17.2]#

 

https://zach.vip/server/%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85php7-4/


select id,article_id,topic,text from lt_articles_text where article_id =593; ok. update lt_articles set num_reads=num_reads +1 where id=593; ok.