亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 網站 > 建站經驗 > 正文

PHP安裝BCMath擴展的方法

2024-04-25 20:16:33
字體:
來源:轉載
供稿:網友

今天小編就為大家分享一篇關于PHP安裝BCMath擴展的方法,小編覺得內容挺不錯的,現在分享給大家,具有很好的參考價值,需要的朋友一起跟隨小編來看看吧。

編譯安裝 (PHP-5.6.23)

1.進入PHP源碼包目錄下的ext/bcmath目錄。

[root@192 bcmath]# ls

bcmath.c config.m4 config.w32 CREDITS libbcmath package.xml php_bcmath.h tests

2.執行phpize命令,phpize命令在PHP安裝目錄的bin目錄下,如/usr/local/php/bin/phpize。

  1. [root@192 bcmath]# /usr/local/php/bin/phpize 
  2. Configuring for: 
  3. PHP Api Version:     20131106 
  4. Zend Module Api No:   20131226 
  5. Zend Extension Api No:  220131226 

3.執行./configure --with-php-config=/usr/local/php/bin/php-config。要依據php-config的實際路徑。

  1. [root@192 bcmath]# ./configure --with-php-config=/usr/local/php/bin/php-config 
  2. checking for grep that handles long lines and -e... /usr/bin/grep 
  3. checking for egrep... /usr/bin/grep -E 
  4. checking for a sed that does not truncate output... /usr/bin/sed 
  5. checking for cc... cc 
  6. checking whether the C compiler works... yes 
  7. checking for C compiler default output file name... a.out 
  8. checking for suffix of executables...  
  9. checking whether we are cross compiling... no 
  10. checking for suffix of object files... o 
  11. checking whether we are using the GNU C compiler... yes 
  12. checking whether cc accepts -g... yes 
  13. checking for cc option to accept ISO C89... none needed 
  14. checking how to run the C preprocessor... cc -E 
  15. checking for icc... no 
  16. checking for suncc... no 
  17. checking whether cc understands -c and -o together... yes 
  18. checking for system library directory... lib 
  19. checking if compiler supports -R... no 
  20. checking if compiler supports -Wl,-rpath,... yes 
  21. checking build system type... x86_64-unknown-linux-gnu 
  22. checking host system type... x86_64-unknown-linux-gnu 
  23. checking target system type... x86_64-unknown-linux-gnu 
  24. checking for PHP prefix... /usr/local/php 
  25. checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib 
  26. checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226 
  27. checking for PHP installed headers prefix... /usr/local/php/include/php 
  28. checking if debug is enabled... no 
  29. checking if zts is enabled... no 
  30. checking for re2c... no 
  31. configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. 
  32. checking for gawk... gawk 
  33. checking whether to enable bc style precision math functions... yes, shared 
  34. checking for ld used by cc... /usr/bin/ld 
  35. checking if the linker (/usr/bin/ld) is GNU ld... yes 
  36. checking for /usr/bin/ld option to reload object files... -r 
  37. checking for BSD-compatible nm... /usr/bin/nm -B 
  38. checking whether ln -s works... yes 
  39. checking how to recognize dependent libraries... pass_all 
  40. checking for ANSI C header files... yes 
  41. checking for sys/types.h... yes 
  42. checking for sys/stat.h... yes 
  43. checking for stdlib.h... yes 
  44. checking for string.h... yes 
  45. checking for memory.h... yes 
  46. checking for strings.h... yes 
  47. checking for inttypes.h... yes 
  48. checking for stdint.h... yes 
  49. checking for unistd.h... yes 
  50. checking dlfcn.h usability... yes 
  51. checking dlfcn.h presence... yes 
  52. checking for dlfcn.h... yes 
  53. checking the maximum length of command line arguments... 1572864 
  54. checking command to parse /usr/bin/nm -B output from cc object... ok 
  55. checking for objdir... .libs 
  56. checking for ar... ar 
  57. checking for ranlib... ranlib 
  58. checking for strip... strip 
  59. checking if cc supports -fno-rtti -fno-exceptions... no 
  60. checking for cc option to produce PIC... -fPIC 
  61. checking if cc PIC flag -fPIC works... yes 
  62. checking if cc static flag -static works... no 
  63. checking if cc supports -c -o file.o... yes 
  64. checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes 
  65. checking whether -lc should be explicitly linked in... no 
  66. checking dynamic linker characteristics... GNU/Linux ld.so 
  67. checking how to hardcode library paths into programs... immediate 
  68. checking whether stripping libraries is possible... yes 
  69. checking if libtool supports shared libraries... yes 
  70. checking whether to build shared libraries... yes 
  71. checking whether to build static libraries... no 
  72. creating libtool 
  73. appending configuration tag "CXX" to libtool 
  74. configure: creating ./config.status 
  75. config.status: creating config.h 

4.執行make && make install。

  1. [root@192 bcmath]# make && make install 
  2. /bin/sh /home/tools/phptools/php-5.6.23/ext/bcmath/libtool --mode=compile cc -I/home/tools/phptools/php-5.6.23/ext/bcmath/libbcmath/src -I. -I/home/tools/phptools/php-5.6.23/ext/bcmath -DPHP_ATOM_INC -I/home/tools/phptools/php-5.6.23/ext/bcmath/include -I/home/tools/phptools/php-5.6.23/ext/bcmath/main -I/home/tools/phptools/php-5.6.23/ext/bcmath -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2  -c /home/tools/phptools/php-5.6.23/ext/bcmath/bcmath.c -o bcmath.lo  
  3. mkdir .libs 
  4.  cc -I/home/tools/phptools/php-5.6.23/ext/bcmath/libbcmath/src -I. -I/home/tools/phptools/php-5.6.23/ext/bcmath -DPHP_ATOM_INC -I/home/tools/phptools/php-5.6.23/ext/bcmath/include -I/home/tools/phptools/php-5.6.23/ext/bcmath/main -I/home/tools/phptools/php-5.6.23/ext/bcmath -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/tools/phptools/php-5.6.23/ext/bcmath/bcmath.c -fPIC -DPIC -o .libs/bcmath.o 
  5. ... ... 
  6. ---------------------------------------------------------------------- 
  7. Libraries have been installed in: 
  8.   /home/tools/phptools/php-5.6.23/ext/bcmath/modules 
  9. If you ever happen to want to link against installed libraries 
  10. in a given directory, LIBDIR, you must either use libtool, and 
  11. specify the full pathname of the library, or use the `-LLIBDIR' 
  12. flag during linking and do at least one of the following: 
  13.   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable 
  14.    during execution 
  15.   - add LIBDIR to the `LD_RUN_PATH' environment variable 
  16.    during linking 
  17.   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag 
  18.   - have your system administrator add LIBDIR to `/etc/ld.so.conf' 
  19. See any operating system documentation about shared libraries for 
  20. more information, such as the ld(1) and ld.so(8) manual pages. 
  21. ---------------------------------------------------------------------- 
  22. Build complete. 
  23. Don't forget to run 'make test'. 
  24. Installing shared extensions:   /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/ 

5.查詢,php.ini中extension_dir配置的目錄中已經有bcmath.so文件了。

[root@192 sbin]# ll /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/

總用量 3984

-rwxr-xr-x. 1 root root 382568 10月 22 17:57 bcmath.so

6.在Dynamic Extensions配置塊下添加一行extension=bcmath.so。

7.重啟php服務即可。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
国产精品亚洲аv天堂网| 欧美一级视频免费在线观看| 中文字幕亚洲一区二区三区五十路| 精品久久久久久久久久ntr影视| 日韩欧美中文免费| 欧美一级bbbbb性bbbb喷潮片| 国产丝袜精品第一页| 亚洲另类图片色| 97**国产露脸精品国产| 国产精品福利网站| 欧美日韩一二三四五区| 亚洲第一天堂无码专区| 欧美亚洲另类在线| 亚洲第一级黄色片| 亚洲成人精品久久久| 欧美日韩国产在线播放| 日韩精品一二三四区| 日韩精品在线免费播放| 久久精品视频一| 高清视频欧美一级| 欧美一级淫片丝袜脚交| 国产成人精品亚洲精品| 国产精品免费久久久久久| 亚洲欧美色图片| 91精品国产综合久久香蕉922| 中文字幕亚洲欧美在线| 欧美一区二区影院| 日韩精品在线免费观看视频| 成人黄色大片在线免费观看| 欧美在线视频网站| 色妞一区二区三区| 国产精品第一页在线| 欧美肥老太性生活视频| 国内精品久久久久久久| 国产乱肥老妇国产一区二| 欧美主播福利视频| 国产精品日日做人人爱| 欧美日产国产成人免费图片| 茄子视频成人在线| 亚洲国产精品99久久| 欧美日韩国内自拍| 国产精品白嫩初高中害羞小美女| 久久天天躁狠狠躁老女人| 欧美裸体xxxx| 国产一区二区三区在线视频| 欧美激情精品久久久久久黑人| 亚洲国产精品99久久| 欧美一级片一区| 国产福利成人在线| 亚洲免费电影一区| 精品在线观看国产| 欧美另类69精品久久久久9999| 亚洲欧美激情在线视频| 亚洲xxxx做受欧美| 成人久久久久久久| 国产v综合v亚洲欧美久久| 国产日韩换脸av一区在线观看| 久久综合网hezyo| 亚洲欧美另类国产| 亚洲黄色www| 欧美日韩成人在线视频| 欧美在线观看网址综合| 91精品国产高清久久久久久91| 日韩电视剧在线观看免费网站| 国产综合久久久久| 国产日韩精品在线| 久久久之久亚州精品露出| 日本在线观看天堂男亚洲| 亚洲精品久久久久国产| 国模私拍一区二区三区| 欧美丰满老妇厨房牲生活| 久久久久久中文字幕| 亚洲片在线观看| 成人免费自拍视频| 亚洲日韩欧美视频一区| 欧美二区乱c黑人| 久久香蕉国产线看观看av| 欧美又大又硬又粗bbbbb| 欧洲美女7788成人免费视频| 日韩成人黄色av| 久久亚洲精品中文字幕冲田杏梨| 18性欧美xxxⅹ性满足| 91精品国产自产91精品| 国产成人涩涩涩视频在线观看| 欧美成人亚洲成人| 欧美极品少妇xxxxⅹ喷水| 精品久久久久人成| 欧美精品少妇videofree| 精品国产精品三级精品av网址| 91情侣偷在线精品国产| 亚洲肉体裸体xxxx137| 在线视频一区二区| 欧美激情区在线播放| 欧美成人精品不卡视频在线观看| 日本国产一区二区三区| 性夜试看影院91社区| 国产精品久久久亚洲| 国产成人精品久久二区二区91| 久久久久久一区二区三区| 777777777亚洲妇女| 国产精品久久久久久久久影视| 成人夜晚看av| 91sao在线观看国产| 日韩av网站电影| 国产成人精品久久亚洲高清不卡| 欧美在线一区二区三区四| 亚洲91精品在线| 午夜精品一区二区三区在线播放| 国产精品第100页| 国产精品日本精品| 成人免费网站在线| 亚洲国产精品久久久久秋霞蜜臀| 国产精选久久久久久| 欧美在线视频一二三| 国产香蕉97碰碰久久人人| 在线观看欧美日韩国产| 亚洲一区二区日本| 亚洲第一精品久久忘忧草社区| 色偷偷av一区二区三区乱| 亚洲一区二区日本| 亚洲欧美日韩国产中文| 国产精品美女www爽爽爽视频| 久久人人爽人人爽人人片av高请| 欧美日韩国产精品一区二区三区四区| 欧美综合第一页| 日韩免费观看网站| 成人精品在线观看| 国产精品永久免费视频| 久久久久久18| 最近中文字幕日韩精品| 国产精品美女久久| 精品magnet| 欧美在线视频在线播放完整版免费观看| 日韩中文在线中文网三级| 97在线观看视频国产| 国产91免费观看| 国产日韩欧美在线| 日本久久久久久久久久久| 日韩欧美国产免费播放| 日韩网站免费观看高清| 国产综合色香蕉精品| 欧美日韩午夜激情| 久久久久久com| 日本高清+成人网在线观看| 国产精品久久久久久久久免费看| 欧美激情区在线播放| 欧美一区二区影院| 国产精品免费一区豆花| 亚洲天堂av在线播放| 久久久久久久国产| 92看片淫黄大片看国产片| 欧美丰满老妇厨房牲生活| 国产自产女人91一区在线观看| 欧美电影免费播放| 国内久久久精品| 久久综合久中文字幕青草| 日本亚洲欧洲色α| 欧美精品一区二区三区国产精品| www.亚洲天堂| 久久久亚洲国产| 成人福利视频在线观看| 亚洲四色影视在线观看| 国产69精品久久久久久| 欧美激情啊啊啊|