免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: plyat

[FastDFS] 请教:安装FastDFS是有关libevent库找不到的问题 [复制链接]

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
发表于 2011-05-10 13:30 |显示全部楼层
回复 9# xiaochu

/test/apps/include前面要加  -I,形如: -I/test/apps/include
另外,还需要加上  -L/test/apps/lib

论坛徽章:
0
发表于 2011-05-10 17:02 |显示全部楼层
INC_PATH = -I../common -I/test/app/include
LIB_PATH = -L/test/app/lib $(LIBS) -levent

tracker\storage\client\test
都改过了。可以安装成功。多谢余老大。

最新的问题是在php_client目录,编译安装php客户端出问题了。
./configure --with-php-config=/test/apps/php/bin/php-config

checking whether to build shared libraries... yes
checking whether to build static libraries... no
{:3_196:}
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged

论坛徽章:
0
发表于 2011-05-10 17:04 |显示全部楼层
我的更改步骤,需要的可以拿去改一下。呵呵。还请余老大指正。


sed -i 's/\/usr\/local\/include/\/test\/apps\/include/' ./tracker/Makefile.in
sed -i 's/\/usr\/local\/lib/\/test\/apps\/lib/' ./tracker/Makefile.in


sed -i 's/\/usr\/local\/include/\/test\/apps\/include/' ./storage/Makefile.in
sed -i 's/\/usr\/local\/lib/\/test\/apps\/lib/' ./storage/Makefile.in

sed -i 's/\/usr\/local\/include/\/test\/apps\/include/' ./client/Makefile.in
sed -i 's/\/usr\/local\/lib/\/test\/apps\/lib/' ./client/Makefile.in

sed -i 's/\/usr\/local\/include/\/test\/apps\/include/g' ./test/Makefile
sed -i 's/\/usr\/local\/lib/\/test\/apps\/lib/g' ./test/Makefile



sed -i 's/\/usr\/local\/include/\/test\/apps\/include/g' ./test/Makefile  >./storage/m1
sed -i 's/\/usr\/local\/lib/\/test\/apps\/lib/g' ./test/Makefile  >./storage/m2

sed -i 's/TARGET_PREFIX=\/usr\/local/TARGET_PREFIX=\/test\/apps/' ./make.sh
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP