xiehuc / pidgin-lwqq

a pidgin plugin based on lwqq, a excellent safe useful library for webqq protocol
GNU General Public License v3.0
660 stars 185 forks source link

centos怎么安装libpurple,源里提供的是2.7.9的 #229

Closed scobur closed 11 years ago

scobur commented 11 years ago

源码编译安装最新版本pidgin 2.10还是提示purple模块找不到

lainme commented 11 years ago

参考centos本身是怎么编译的。libpurple和pidgin本身就是同一个源码编译出来的。

scobur commented 11 years ago

安装好pidgin,pidgin里的关于里显示libpurple是2.10.7但是好像不是以模块的形式存在的,系统里在/usr/local/lib里找到一个libpurple.so.0.10.7,尝试用insmod安装无效

lainme commented 11 years ago

为什么要insmod……又不是内核模块

这不是已经装好了么

scobur commented 11 years ago

问题是lwqq没法装啊,系统里也搜不到有效的purple module

scobur commented 11 years ago

-- checking for module 'purple>=2.8.0' -- package 'purple>=2.8.0' not found

lainme commented 11 years ago

贴下pidgin-lwqq 的编译时的输出。

xiehuc commented 11 years ago

感觉好复杂.

2013/3/11 scobur notifications@github.com

问题是lwqq没法装啊,系统里也搜不到有效的purple module

— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/229#issuecomment-14697908 .

scobur commented 11 years ago

怎么改?

xiehuc commented 11 years ago

恩.我过几个小时上传一个dev吧.

scobur commented 11 years ago

麻烦你了,非常感谢

xiehuc commented 11 years ago

我还不确定能行得通 :)

你应该谢谢lainme的.

xiehuc commented 11 years ago

你去下载dev分支编译一下. 看能编译成功吗.

xiehuc commented 11 years ago

你把32行到35行替换为 if(PURPLE_VERSION VERSION_LESS "2.8") message("libpurple version outdate") add_definitions(-DPURPLE_OUTDATE="1") endif(PURPLE_VERSION VERSION_LESS "2.8")

你再用pkg-config 检查一下是不是有purple包. 请安装你源里面的libpurple.

现在2.7.9应该也能编译.

2013/3/11 scobur notifications@github.com

还是找不到 package 'purple' not found cmakelist有语法错误 CMake Warning (dev) in CMakeLists.txt: A logical block opening on the line

/home/admin/down/pidgin-lwqq-dev/CMakeLists.txt:32 (if)

closes on the line

/home/admin/down/pidgin-lwqq-dev/CMakeLists.txt:35 (endif)

with mis-matching arguments. This warning is for project developers. Use -Wno-dev to suppress it.

— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/229#issuecomment-14698616 .

lainme commented 11 years ago

会不会是pkg-config没有搜索/usr/local

On Mon, Mar 11, 2013 at 2:00 PM, xiehuc notifications@github.com wrote:

你把32行到35行替换为 if(PURPLE_VERSION VERSION_LESS "2.8") message("libpurple version outdate") add_definitions(-DPURPLE_OUTDATE="1") endif(PURPLE_VERSION VERSION_LESS "2.8")

你再用pkg-config 检查一下是不是有purple包. 请安装你源里面的libpurple.

现在2.7.9应该也能编译.

2013/3/11 scobur notifications@github.com

还是找不到 package 'purple' not found cmakelist有语法错误 CMake Warning (dev) in CMakeLists.txt: A logical block opening on the line

/home/admin/down/pidgin-lwqq-dev/CMakeLists.txt:32 (if)

closes on the line

/home/admin/down/pidgin-lwqq-dev/CMakeLists.txt:35 (endif)

with mis-matching arguments. This warning is for project developers. Use -Wno-dev to suppress it.

— Reply to this email directly or view it on GitHub< https://github.com/xiehuc/pidgin-lwqq/issues/229#issuecomment-14698616> .

— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/229#issuecomment-14698727 .

xiehuc commented 11 years ago

这个是肯定的了.自己编译的可能不被pkg-config检索. 记得要放一个pc文件到pkg-config的文件夹里面.

然后是关于purple 2.8,感觉可以把这个依赖去掉. 对于2.8以上的编译add_buddies_with_invited 对于2.8以下的编译add_buddies.

2013/3/11 lainme notifications@github.com

会不会是pkg-config没有搜索/usr/local

On Mon, Mar 11, 2013 at 2:00 PM, xiehuc notifications@github.com wrote:

你把32行到35行替换为 if(PURPLE_VERSION VERSION_LESS "2.8") message("libpurple version outdate") add_definitions(-DPURPLE_OUTDATE="1") endif(PURPLE_VERSION VERSION_LESS "2.8")

你再用pkg-config 检查一下是不是有purple包. 请安装你源里面的libpurple.

现在2.7.9应该也能编译.

2013/3/11 scobur notifications@github.com

还是找不到 package 'purple' not found cmakelist有语法错误 CMake Warning (dev) in CMakeLists.txt: A logical block opening on the line

/home/admin/down/pidgin-lwqq-dev/CMakeLists.txt:32 (if)

closes on the line

/home/admin/down/pidgin-lwqq-dev/CMakeLists.txt:35 (endif)

with mis-matching arguments. This warning is for project developers. Use -Wno-dev to suppress it.

— Reply to this email directly or view it on GitHub< https://github.com/xiehuc/pidgin-lwqq/issues/229#issuecomment-14698616> .

— Reply to this email directly or view it on GitHub< https://github.com/xiehuc/pidgin-lwqq/issues/229#issuecomment-14698727> .

— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/229#issuecomment-14698752 .

scobur commented 11 years ago

根据dev版cmake的错误提示,我手动增加了一个变量,把那个目录加进去,现在能找到了purple.pc了 又有一个问题, pkg-config glib(开发包) libev(开发包) zlib(开发包),这四个包在centos的源中都没有 我要一个个下源码编译吗?

xiehuc commented 11 years ago

你确定没有glibc-devel,libev-devel,zlib-devel

centos肯定有的.最多名字不一样.

在 2013年3月11日下午2:29,scobur notifications@github.com写道:

我手动增加了一个变量,把那个目录加进去,现在能找到了libpurple.pc了 又有一个问题, pkg-config glib(开发包) libev(开发包) zlib(开发包),这四个包在centos的源中都没有

— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/229#issuecomment-14699262 .

scobur commented 11 years ago

pkg-config在centos中应该是pkgconfig,那个libev与Centos里的libevent是不是一样的?我安装了那个libevent但是cmake时提示找不到libev

xiehuc commented 11 years ago

libev 不是 libevent, 要是实在不行的话,就只能自己编译一份libev了.

那个库比较小.

2013/3/11 scobur notifications@github.com

那个libev与Centos里的libevent是不是一样的,我安装了那个libevent但是cmake时找不到libev

— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/229#issuecomment-14699935 .

scobur commented 11 years ago

是这个吗 ? http://dist.schmorp.de/libev/

xiehuc commented 11 years ago

yes

2013/3/11 scobur notifications@github.com

ÊÇÕâ¸öÂð ? http://dist.schmorp.de/libev/

¡ª Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/229#issuecomment-14700182 .

xiehuc commented 11 years ago

http://pkgs.org/centos-5-rhel-5/epel-x86_64/libev-4.03-2.el5.x86_64.rpm.html

centos 有libev,就叫libev.

2013/3/11 谢虎成 xiehuc@gmail.com

yes

2013/3/11 scobur notifications@github.com

是这个吗 ? http://dist.schmorp.de/libev/

— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/229#issuecomment-14700182 .

scobur commented 11 years ago

终于搞定了,弄了半天,另外,为什么没有显示不在线好友?

xiehuc commented 11 years ago

pidgin菜单有设置.

2013/3/11 scobur notifications@github.com

终于搞定了,弄了半天,另外,为什么没有显示不在线好友?

— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/229#issuecomment-14700415 .

scobur commented 11 years ago

那个libev在epel里面,centos里没有

xiehuc commented 11 years ago

这个就不清楚了.

2013/3/11 scobur notifications@github.com

那个libev在epel里面,centos里没有

— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/229#issuecomment-14700478 .

StephenJau commented 10 years ago

菜鸟求助 CentOS6.4(final) cmake .. CMake Warning at CMakeLists.txt:20 (find_package): Could not find module FindEV.cmake or a configuration file for package EV.

Adjust CMAKE_MODULE_PATH to find FindEV.cmake or set EV_DIR to the directory containing a CMake configuration file for EV. The file will have one of the following names:

EVConfig.cmake
ev-config.cmake

libpurple version:2.7.9 libpurple version outdate

/usr/share/

-- With Libev (Option) : 0 -- Native Language Support : true

-- Install Path : /usr/lib64/purple-2

-- Configuring done -- Generating done -- Build files have been written to: /home/steven131/Downloads/pidgin-lwqq-master/build

目测以为可以安装了,于是 make 然后提示: make[2]: * [src/CMakeFiles/webqq.dir/webqq.c.o] Error 1 make[1]: * [src/CMakeFiles/webqq.dir/all] Error 2 make: *\ [all] Error 2 有救么?