乌秋博客
梦想在左,生活在右。   

Linux常用命令
Debian下修改主机名:
# vi /etc/hostname
# /etc/init.d/hostname.sh start
posted at 12/04/04 19:28 | 技术文摘 - Linux | 浏览(21) | 引用 | 评论

Mac OS X下编译安装php时libiconv库出现错误的解决办法
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
__php_iconv_appendl in iconv.o
__php_iconv_strlen in iconv.o
_php_iconv_string in iconv.o
__php_iconv_strpos in iconv.o
_zif_iconv_substr in iconv.o
_zif_iconv_mime_encode in iconv.o
_php_iconv_stream_filter_append_bucket in iconv.o
...
(maybe you meant: _zif_iconv_mime_decode_headers, _zif_iconv_set_encoding , _php_iconv_string , _zif_iconv_get_encoding , _zif_iconv_mime_encode ,
阅读全文..
posted at 12/04/04 17:59 | 开发手记 - 工作日志 | 浏览(1444) | 引用 | 评论

Linux + Nginx + MySQL + PHP + APC
一、安装依赖包
For Debian:
apt-get -y install build-essential
apt-get -y install libncurses5-dev libncursesw5-dev libcurl4-gnutls-dev libssl-dev libxml2-dev libjpeg-dev libpng12-dev libxpm-dev libfreetype6-dev
apt-get -y install libpcre3 libpcre3-dev libpcrecpp0 zlib1g-dev libevent-dev

For Centos:
yum -y install gcc gcc-c++
yum -y install ncurses-devel libxml2-devel zlib-devel openssl-devel gd gd-devel flex diffutils curl curl-devel
yum -y install pcre-devel libXpm-devel

For Mac:
port install gcc46
port install jpeg gd2 pcre


阅读全文..
posted at 12/04/03 23:52 | 开发手记 - 工作日志 | 浏览(147) | 引用 | 评论(1)

关于Mac OS用port安装软件提示xcode错误的解决办法
我是通过App Store安装的xcode,在安装wget的时候出现了下面这个错误
# port install wget
Warning: xcodebuild exists but failed to execute
Warning: Xcode appears to be installed but xcodebuild is unusable; some ports will likely fail to build.
Warning: You may need to run `sudo xcode-select -switch /Applications/Xcode.app`
---> Computing dependencies for wget
---> Dependencies to be installed: gnutls pkgconfig glib2 zlib readline libidn
---> Extracting zlib
Error: Couldn't determine your Xcode version (from '/usr/bin/xcodebuild -version').
Error:
Error: If you have not installed Xcode, install it now; see:
Error: http://guide.macports.org/chunked/installing.xcode.html
Error:
Error: Target org.macports.extract returned: unable to find Xcode
Error: Failed to install zlib
Log for zlib is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/main.log
Error: The following dependencies were not installed: gnutls pkgconfig glib2 zlib readline libidn
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>


阅读全文..
posted at 12/04/03 19:55 | 开发手记 - 工作日志 | 浏览(252) | 引用 | 评论

nginx 错误502 upstream sent too big header while reading response header from upstream
添加这两行可以解决:
fastcgi_buffer_size 128k;
fastcgi_buffers 32 32k;

location ~ \.php$ {
fastcgi_buffer_size 128k;
fastcgi_buffers 32 32k;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
include fastcgi_params;
}
posted at 12/03/07 15:18 | 开发手记 - 工作日志 | 浏览(89) | 引用 | 评论



      << prev    1  2  3  4  5  6  7  8  9  ...  79    next >>