升级系统,把php5.2.9升级到5.3.6,按照以前的编译参数,configure能正常通过,但是在make的时候提示: In file included from /root/php-5.3.6/ext/gd/libgd/gd_compat.c:8: /usr/local/jpeg/include/jpeglib.h:938: error: expected declaration specifiers or ‘...’ before ‘FILE’ /usr/local/jpeg/incl…
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor':/ext/iconv/iconv.c:2491: undefined reference to `libiconv_open'collect2: ld returned 1 exit statusmake: *** [sapi/cli/php] Error 1 解决方法: 使用:make ZEND_EXTRA_LIBS='-liconv' 或者: vim Ma…
CentOS编译安装MySQL,./coonfigure时出现错误: checking for termcap functions library... configure: error: No curses/termcap library found 解决方法:安装 1.下载网址:ftp://invisible-island.net/ncurses/ # tar -zvxf ncurses-5.7.tar.gz # ./configure # make # make install 2.安装了…
在VS 2012 中编译 C 语言项目,如果使用了 scanf 函数,编译时便会提示如下错误: error C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 原因是Visual C++ 2012 使用了更加安…
➜ test_sqlite3 gcc *.c -I . -o xixi -pthread /tmp/cckGKTrr.o: In function `unixDlOpen': sqlite3.c:(.text+0x1124d): undefined reference to `dlopen' /tmp/cckGKTrr.o: In function `unixDlError': sqlite3.c:(.text+0x1126c): undefined reference to `…