免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 7086 | 回复: 10
打印 上一主题 下一主题

centos 6.1安装heartbeat时出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-01-09 17:41 |只看该作者 |倒序浏览
我在centos 6.1 上安装 heartbeat-2.1.3,
./Configure configure 时通过,但在make install时报如下错:
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib64

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so( manual pages.
----------------------------------------------------------------------
/bin/sh ../../mkinstalldirs /usr/lib64/heartbeat
  /bin/sh ../../libtool --tag=CC  --mode=install /usr/bin/install -c ipctest /usr/lib64/heartbeat/ipctest
/usr/bin/install -c .libs/ipctest /usr/lib64/heartbeat/ipctest
  /bin/sh ../../libtool --tag=CC  --mode=install /usr/bin/install -c ipctransientclient /usr/lib64/heartbeat/ipctransientclient
/usr/bin/install -c .libs/ipctransientclient /usr/lib64/heartbeat/ipctransientclient
  /bin/sh ../../libtool --tag=CC  --mode=install /usr/bin/install -c ipctransientserver /usr/lib64/heartbeat/ipctransientserver
/usr/bin/install -c .libs/ipctransientserver /usr/lib64/heartbeat/ipctransientserver
  /bin/sh ../../libtool --tag=CC  --mode=install /usr/bin/install -c base64_md5_test /usr/lib64/heartbeat/base64_md5_test
/usr/bin/install -c .libs/base64_md5_test /usr/lib64/heartbeat/base64_md5_test
/bin/sh ../../mkinstalldirs /usr/lib64/heartbeat
/usr/bin/install -c transient-test.sh /usr/lib64/heartbeat/transient-test.sh
gmake[3]: Leaving directory `/software/heartbeat-2.1.3/lib/clplumbing'
gmake[2]: Leaving directory `/software/heartbeat-2.1.3/lib/clplumbing'
Making install in hbclient
gmake[2]: Entering directory `/software/heartbeat-2.1.3/lib/hbclient'
if /bin/sh ../../libtool --tag=CC  --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../include -I../../linux-ha -I../../linux-ha -I../../libltdl -I../../libltdl  -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/libxml2 -g -O2  -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror  -ggdb3 -funsigned-char -g -O2  -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror  -ggdb3 -funsigned-char -MT client_lib.lo -MD -MP -MF ".deps/client_lib.Tpo" \
          -c -o client_lib.lo `test -f 'client_lib.c' || echo './'`client_lib.c; \
        then mv -f ".deps/client_lib.Tpo" ".deps/client_lib.Plo"; \
        else rm -f ".deps/client_lib.Tpo"; exit 1; \
        fi
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../include -I../../linux-ha -I../../linux-ha -I../../libltdl -I../../libltdl -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ggdb3 -funsigned-char -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ggdb3 -funsigned-char -MT client_lib.lo -MD -MP -MF .deps/client_lib.Tpo -c client_lib.c  -fPIC -DPIC -o .libs/client_lib.o
cc1: warnings being treated as errors
client_lib.c:1881: error: 'display_orderQ' defined but not used
gmake[2]: *** [client_lib.lo] Error 1
gmake[2]: Leaving directory `/software/heartbeat-2.1.3/lib/hbclient'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory `/software/heartbeat-2.1.3/lib'
make: *** [install-recursive] Error 1
[root@ds2 heartbeat-2.1.3]#

谢谢了!~

论坛徽章:
0
2 [报告]
发表于 2012-01-10 10:13 |只看该作者
给你这么明显的提示 你看过没

论坛徽章:
0
3 [报告]
发表于 2012-01-10 10:50 |只看该作者
回复 2# taojie2000


    能不能告知下是什么原因?多谢了!~

论坛徽章:
0
4 [报告]
发表于 2012-01-10 11:18 |只看该作者
回复 2# taojie2000


    我把“client_lib.c:1881: error: 'display_orderQ' defined but not used“提示的注释过试了还是不行的。

论坛徽章:
0
5 [报告]
发表于 2012-02-07 17:53 |只看该作者
2楼的,知道答案就告诉一下,不要不说啊

论坛徽章:
0
6 [报告]
发表于 2012-02-08 10:18 |只看该作者
把需要的一些库文件加载到动态链接库里,并重新编译安装试一下

论坛徽章:
0
7 [报告]
发表于 2012-02-08 19:36 |只看该作者
用rhcs不好吗

论坛徽章:
0
8 [报告]
发表于 2012-02-08 20:38 |只看该作者
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

这个上边已经说的很清楚了

论坛徽章:
0
9 [报告]
发表于 2012-04-09 19:21 |只看该作者
============================
cc1: warnings being treated as errors
============================
去掉gcc的参数里面的“-Werror ”

论坛徽章:
0
10 [报告]
发表于 2012-09-22 16:00 |只看该作者
我遇到了和你一样的问题 现在还没有解决
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP