Linux下编译PHP5.3 + Apache2.3

发布时间:2020-02-11 08:53    浏览次数 :

[返回]

[local]1[/local]一月20-22日与爱人驾乘到德阳万仙山、伊斯梅鹿特夫游玩,燕语莺声天空晴朗,大自然的秀美使得朋友们陶醉!拍片风光风姿洒脱组与摄友分享,请多提宝贵意见。

先下子php5.3,apache2.3,apr,curl,apr-util,pcre等源码包了。Linux下安装进度如下:

Ubuntu: HDF5报错: HDF5 header version与HDF5 library不匹配

前日在实行叁个使用hdf5的python脚本时,遭受如下错误

Warning! ***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Data corruption or segmentation faults may occur if the application continues.
This can happen when an application was compiled by one version of HDF5 but
linked with a different version of static or shared HDF5 library.
You should recompile the application or check your shared library related
settings such as 'LD_LIBRARY_PATH'.
You can, at your own risk, disable this warning by setting the environment
variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'.
Setting it to 2 or higher will suppress the warning messages totally.
Headers are 1.8.11, library is 1.8.9
        SUMMARY OF THE HDF5 CONFIGURATION
        =================================

1.装置筹划。先安装工具包:
apr:
./configure --prefix=/usr/local/apr
make
make install
apr-util:
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr

General Information:

          HDF5 Version: 1.8.9
          Configured on: Fri Dec 20 12:54:14 CST 2013
          Configured by: [email protected]
        Configure mode: production
            Host system: x86_64-unknown-linux-gnu
          Uname information: Linux centos5x64 2.6.18-348.el5 #1 SMP Tue Jan 8 17:53:53 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
              Byte sex: little-endian
              Libraries:
        Installation point: /opt/anaconda1anaconda2anaconda3

make
make install
g++:
sudo apt-get install g++
pcer:
./configure --prefix=/usr/local/pcre
make
make install
curl:
./configure --prefix=/usr/local/curl
make
make install

Compiling Options:

              Compilation Mode: production
                    C Compiler: /usr/bin/gcc ( gcc (GCC) 4.1.2 20080704 )
                        CFLAGS:
                      H5_CFLAGS: -std=c99 -pedantic -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wfloat-equal -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wdisabled-optimization -Wformat=2 -Wunreachable-code -Wendif-labels -Wdeclaration-after-statement -Wold-style-definition -Winvalid-pch -Wvariadic-macros -Wnonnull -Winit-self -Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wunused-macros -Wunsafe-loop-optimizations -Wc++-compat -Wvolatile-register-var -O3 -fomit-frame-pointer -finline-functions
                      AM_CFLAGS:
                      CPPFLAGS:
                    H5_CPPFLAGS: -D_POSIX_C_SOURCE=199506L  -DNDEBUG -UH5_DEBUG_API
                    AM_CPPFLAGS: -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_BSD_SOURCE
              Shared C Library: yes
              Static C Library: no
  Statically Linked Executables: no
                        LDFLAGS:
                    H5_LDFLAGS:
                    AM_LDFLAGS:
          Extra libraries:  -lpthread -lz -lrt -lm
                Archiver: ar
              Ranlib: ranlib
          Debugged Packages:
            API Tracing: no

2.安装apache。

Languages:

                        Fortran: no

                            C++: no

下一篇:没有了