HP-Unix安装Memcache问题

安装环境 
HP-UX 125RITEC B.11.31 U ia64 0942432495 
gcc (GCC) 4.3.1 
libevent-1.4.14b-stable.tar.gz 
memcached-1.4.13.tar.gz(安装失败) 
memcached-1.4.5-LINUX.tar.gz(安装成功)

1,./configure 提示错误 make失败 
解决:更换安装版本为memcached-1.4.5-LINUX.tar.gz,原版本memcached-1.4.13.tar.gz

checking for endianness... little 
checking for htonll... no 
checking for library containing pthread_create... no 
configure: error: Can‘t enable threads without the POSIX thread library. 
wapapp:/wapapp/keld/tools/memcache/memcached-1.4.13>make 
Make: No arguments or description file.  Stop. 
wapapp:/wapapp/keld/tools/memcache/memcached-1.4.13>make 
Make: No arguments or description file.  Stop.

2,make时报错 
解决:执行configure 前增加环境变量设置:env CFLAGS=-D_XOPEN_SOURCE_EXTENDED

Shell代码  

  1. env CFLAGS=-D_XOPEN_SOURCE_EXTENDED ./configure --with-libevent=/wapapp/tools/installed/libevent --prefix=/wapapp/tools/installed/memcache

wapapp:/wapapp/keld/tools/memcache/memcached-1.4.5>make 
        make  all-recursive 
Making all in doc 
No suffix list. 
        make  all-am 
No suffix list. 
/bin/sh ./config.status 
config.status: creating Makefile 
config.status: creating doc/Makefile 
config.status: creating config.h 
config.status: config.h is unchanged 
config.status: executing depfiles commands 
        gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG -I/wapapp/tools/installed/libevent/include   -g -O2 -pthread -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-memcached.o -MD -MP -MF .deps/memcached-memcached.Tpo -c -o memcached-memcached.o `test -f ‘memcached.c‘ || echo ‘./‘`memcached.c 
cc1: warnings being treated as errors 
memcached.c: In function ‘add_msghdr‘: 
memcached.c:228: error: assignment from incompatible pointer type 
memcached.c: In function ‘try_read_udp‘: 
memcached.c:3206: error: passing argument 6 of ‘recvfrom‘ from incompatible pointer type 
memcached.c: In function ‘drive_machine‘: 
memcached.c:3432: error: passing argument 3 of ‘accept‘ from incompatible pointer type 
memcached.c: In function ‘maximize_sndbuf‘: 
memcached.c:3766: error: passing argument 5 of ‘getsockopt‘ from incompatible pointer type 
memcached.c: In function ‘server_socket‘: 
memcached.c:3888: error: passing argument 3 of ‘getsockname‘ from incompatible pointer type 
*** Error exit code 1

Stop. 
*** Error exit code 1

Stop. 
*** Error exit code 1

Stop.

3,make时报错 
解决:在util.c中增加如下函数(isspace_t),将util.c中所有的isspace换为isspace_t

C代码  

  1. extern int isspace_t __((int));
  2. int isspace_t(int ch){
  3. return (unsigned  int)(ch - 9) < 5u  ||  ch == ‘ ‘;
  4. }

Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -MT memcached-util.o -MD -MP -MF .deps/memcached-util.Tpo -c -o memcached-util.o `test -f ‘util.c‘ || echo ‘./‘`util.c 
cc1: warnings being treated as errors 
util.c: In function ‘safe_strtoull‘: 
util.c:19: error: array subscript has type ‘char‘ 
util.c: In function ‘safe_strtoll‘: 
util.c:42: error: array subscript has type ‘char‘ 
util.c: In function ‘safe_strtoul‘: 
util.c:62: error: array subscript has type ‘char‘ 
util.c: In function ‘safe_strtol‘: 
util.c:86: error: array subscript has type ‘char‘ 
*** Error exit code 1

Stop. 
*** Error exit code 1

Stop. 
*** Error exit code 1

Stop.

时间: 2024-11-10 01:12:49

HP-Unix安装Memcache问题的相关文章

centos 安装memcache服务后memcahce本机连接Permission

自己手动在虚拟机下装了下memcache,整个过程真是充满波折,本身用php5.3安装memcache扩展就麻烦很多,无法通过yum直接安装,安装方法详见http://chenwei.me/blog/server/69.html,接下来安装memcache服务,安装成功后,telnet可以成功,不过好像不是立即成功生效,过一会用stats才会有详细显示. 本机用 <?php $mem = new Memcache; $mem->connect(‘192.168.124.129′,11211)

双机倒换(NewStartHA,SKYbility,hacmp,hp unix双机)

1.Suse linux  (NewStartHA): # cli cli:~>service-migrate Select service to migrate: Current service: 0) bill 1) gdb 2) cancel Select a service [0, 2]: 按照命令行的提示输入进行倒换 2.AIX(HACMP): # smit hacmp 后进入: enter进入: 查看双机状态: 将资源由suibao01切换至suibao02 : smitty hac

centos安装memcache

1.安装Memcached前需要先安装libevent,首先用wget下载libevent: wget http://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gz tar zxf libevent-1.4.13-stable.tar.gz cd libevent-1.4.13-stable ./configure make && make install 2.安装Memcached tar zxf memcached-1.4.5.

Linux 配置以及安装memcache

1.分别把memcached和libevent下载回来,放到 /tmp 目录下: # cd /tmp # wget http://www.danga.com/memcached/dist/memcached-1.2.0.tar.gz # wget http://www.monkey.org/~provos/libevent-1.2.tar.gz 2.先安装libevent: # tar zxvf libevent-1.2.tar.gz # cd libevent-1.2 # ./configur

HP Unix vsftp服务配置

HP Unix vsftp 服务配置: /opt/ssh/utils/ssh_chroot_setup.sh 运行脚本,会提示输入要建立的vsftp账号和要限制的家目录, 比如要限制的家目录为/JiaRoot/,则/etc/passwd 里面相应的vsftp账号家目录 /JiaRoot/./: 配置免密的时候,/JiaRoot/.ssh/权限为755,/JiaRoot/.ssh/authorized_keys权限为644,亲测有效.

yum安装memcache,mongo扩展以及python的mysql模块安装

//启动memcached/usr/local/memcached/bin/memcached -d -c 10240 -m 1024 -p 11211 -u root/usr/local/memcached/bin/memcached -d -c 10240 -m 1024 -p 11212 -u root 1.安装mongodb mongodb安装在/usr/local/mongod 目录下mkdir /usr/local/mongod/data //存放数据, touch /usr/loc

linux 下载并安装Memcache服务器端

1.下载并安装Memcache服务器端 服务器端主要是安装memcache服务器端. 下载:http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gz 另外,Memcache用到了libevent这个库用于Socket的处理,所以还需要安装libevent,libevent的最新版本是libevent-1.3.(如果你的系统已经安装了libevent,可以不用安装) 官网:http://www.monkey.org/~provos/lib

Linux/hp unix/AIX日常巡检脚本(转)

以下为Linux/hp unix/AIX日常巡检脚本,大家可以参考着进行改写,用于自己的服务器. #!/usr/bin/ksh syserrdate=`date +"%m/%d"`errcount=0STATUS=HOSTS=`hostname`SCRIPT=`basename $0`REPORT="/tmp/report.txt" #FS percentFILESYSTEM_CHECK() {FS=`df -k|sed '1d'|awk 'sub("%&

Centos5.5 安装memcache

#下载libeventhttp://libevent.org/#下载memcahcedhttp://memcached.org/downloads #安装libeventshell>tar -zxvf libevent-2.0.21-stable.tar.gzshell>cd libevent-2.0.21-stableshell>./configure --prefix=/usr/local/libeventshell>make && make install#安

weblogic 12C 在HP unix运行CPU 100%

有几个服务发布在HP unix上,weblogic版本是12c,服务器经常100%(多个cpu均是100%).分析过当前的进程的状态,都是在GC.现象是CPU使用率上去以后就下不来了. 然后把weblogic降到10g,重新部署系统,CPU就降下来了,推测是服务器和weblogic不兼容. 打开weblogic的console界面:   服务器-->选中服务--> 配置-->优化 --> 高级--> muxer类:weblogic.socket.NTSocketMuxer 改