Debian 7.7.0 下编译安装gearman 1.1.2
2014-11-27 23:35
113 查看
gearman网站
http://gearman.org/getting-started/下载源代码,并解压
https://launchpad.net/gearmandtar xzf gearmand-1.1.12.tar.gz cd gearmand-1.1.12
安装缺少的依赖库
Synaptic 新丽得软件包管理器中安装libboost-all-dev
gperf
libevent-dev
uuid-dev
编译并安装
./configure make sudo make install
gearmand 在/usr/local/sbin/下
$ sudo /usr/local/sbin/gearmand -d /usr/local/sbin/gearmand: Could not open log file "/usr/local/var/log/gearmand.log", from "/home/shen/下载/gearmand-1.1.12", switching to stderr. (No such file or directory) $ sudo mkdir /usr/local/var/log -p $ sudo /usr/local/sbin/gearmand -d
gearman运行时缺少库文件
$ gearman gearman: error while loading shared libraries: libgearman.so.8: cannot open shared object file: No such file or directory
需要更新ld路径
sudo ldconfig
生成/etc/ld.so.cache后,再运行
shen@debian:~/下载/gearmand-1.1.12$ gearman gearman Error in usage(No Functions were provided). Client mode: gearman [options] [<data>] Worker mode: gearman -w [options] [<command> [<args> ...]] Common options to both client and worker modes. -f <function> - Function name to use for jobs (can give many) -h <host> - Job server host -H - Print this help menu -v - Print diagnostic information to stdout(false) -p <port> - Job server port -t <timeout> - Timeout in milliseconds -i <pidfile> - Create a pidfile for the process -S - Enable SSL connections Client options: -b - Run jobs in the background(false) -I - Run jobs as high priority -L - Run jobs as low priority -n - Run one job per line(false) -N - Same as -n, but strip off the newline(false) -P - Prefix all output lines with functions names -s - Send job without reading from standard input -u <unique> - Unique key to use for job Worker options: -c <count> - Number of jobs for worker to run before exiting -n - Send data packet for each line(false) -N - Same as -n, but strip off the newline(false) -w - Run in worker mode(false)
相关文章推荐
- Debian下编译安装MPlayer
- Debian下编译安装驱动模块
- Debian 6.02 (squeeze)下编译安装 MySQL 5.5的方法
- 编译安装Gearman
- debian 下 编译安装 mysql 二进制文件
- Debian How to 编译安装apache
- debian下编译安装php5.2
- Debian 6.02 (squeeze) 下编译安装 MySQL 5.5
- [转]Debian/Ubuntu 从源码编译安装 PHP 5.3.4
- debian下源码编译安装apache
- linux嵌入式编程高手历程系列2-安装debian并建立嵌入式编译环境
- Debian下编译安装驱动模块
- debian amd64上编译安装firefox 3.5.5
- Debian 6.02 (squeeze)下编译安装 MySQL 5.5的方法
- Debian下Qt SDK安装及编译mysql驱动
- Debian 总结 安装 和使用 内核编译(三)
- Debian下编译安装MPlayer
- Debian下编译安装LAMP+SVN(二)
- 编译安装Gearman
- Debian服务器编译安装Memcached及PHP扩展