psi怎么读安装psi和ejabber

Instant messaging as free and open as it should be.
Psi is a free instant messaging application designed for the XMPP network (including Google Talk). Fast and lightweight, Psi is fully open-source and compatible with Windows, Linux, and Mac OS X.
With Psi's full Unicode support and localizations, easy file transfers, customizable iconsets, and many other great features, you'll learn why users around the world are making the switch to free, open instant messaging.怎么将ejabber部署到服务器上_百度知道IM【001】ejabberd源码***
http://www.process-one.net/en/ejabberd/docs/
gaim(pidgin)& psi
ejabberd服务端***:
一:配置出错
[root@ce ejabberd]# ./configure.sh
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /bin/sed
checking for erl... /usr/local/bin/erl
checking for erlc... /usr/local/bin/erlc
checking for erl... /usr/local/bin/erl
checking for erlc... /usr/local/bin/erlc
checking Erlang/OTP version... {"init terminating in
do_boot",{function_clause,[{conftest,less_or_equal,[[1],[]],[{file,"conftest.erl"},{line,40}]},{conftest,check,2,[{file,"conftest.erl"},{line,30}]},{conftest,start,0,[{file,"conftest.erl"},{line,12}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
configure.sh: error: "Could not run Erlang/OTP version check
program using '/usr/local/bin/erl'"
二:修改配置
修改configure中less_or_equal方法
&less_or_equal(_, _) -&
%%less_or_equal([], []) -&
%%less_or_equal([Left| Rl], [Right| Rr]) -&
%%&&& case {Left
& Right, Left == Right} of
{true, _}& -&
%%&&&&&&&&&&&
{false, false} -&
%%&&&&&&&&&&&
{false, true} -&
%%&&&&&&&&&&&
less_or_equal(Rl, Rr)
%%&&& end.
三:检查***rebar
四,***rebar
/basho/rebar
unzip rebar-master.zip
cd rebar-master
&./bootstrap
Congratulations! You now have a self-contained script called
"rebar" in
your current working directory. Place this script anywhere in your
and you can use rebar to build OTP-compliant apps.
上面那句为***完后提示语,建立连接,
cd /usr/local/bin
ln -s /data/dengke/rebar-master/rebar rebar
rebar更详细参考另一篇rebar相关
五,make时报错
[root@ce ejabberd]# make
rm -rf deps/.got
rm -rf deps/.built
/usr/local/lib/erlang/bin/escript rebar get-deps
==& rel (get-deps)
==& ejabberd (get-deps)
Pulling p1_cache_tab from
{git,"git:///processone/cache_tab"}
ERROR: Rebar requires version {1,5} or higher of git to process
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
"git:///processone/cache_tab"}
ERROR: 'get-deps' failed while processing /mnt/hgfs/ejabberd:
rebar_abort
make: *** [deps/.got] Error 1
***git,相关可参考另一篇rebar相关
六,解决make报错
ejabberd 有个相关rebar.config.script配置文件,
Deps = [{p1_cache_tab, ".*", {git,
"git:///processone/cache_tab"}},
{p1_tls, ".*", {git, "git:///processone/tls"}},
{p1_stringprep, ".*", {git,
"git:///processone/stringprep"}},
{p1_xml, ".*", {git, "git:///processone/xml"}},
{p1_yaml, ".*", {git,
"git:///processone/p1_yaml"}},
{xmlrpc, ".*", {git, "git:///rds13/xmlrpc"}}],
里面有个p1_yaml这个依赖项目,p1_yaml这个又需要先***libyaml
下载 git:///processone/p1_yaml,里面README.md提到P1 YAML is an
Erlang wrapper for [libyaml](http://pyyaml.org/wiki/LibYAML) "C"
library.,所以要先***libyaml
Download and Installation
The current release of LibYAML: 0.1.4
Download the source package: .
To build and install LibYAML, run
$ ./configure
# make install
You may check out the latest development code of LibYAML from
the Subversion repository :
$ svn checkout http://svn.pyyaml.org/libyaml/branches/stable libyaml-stable
If you checked out the LibYAML source code from the Subversion
repository, you may build LibYAML with the commands:
$ ./bootstrap
$ ./configure
# make install
七,make install
启动可参考:http://www.process-one.net/docs/ejabberd/guide_en.pdf
八,启动报错
ejabberdctl live
[error] unable to load p1_yaml NIF: {error,{load_failed,"Failed to
load NIF library /lib/ejabberd/priv/lib/p1_yaml: 'libyaml-0.so.2:
cannot open shared object file: No such file or directory'"}}
(1):***LibYAML:
下载:http://pyyaml.org/wiki/LibYAML
./configure && make
&& make install
***后还是报错
卸载 : make uninstall
(2):RPM***64位:
下载:http://rpm.pbone.net/index.php3/stat/4/idpl//dir/centos_5/com/libyaml-0-2-0.1.4-2.1.x86_64.rpm.html
rpm -i libyaml-0-2-0.1.4-2.1.x86_64.rpm
ejabberdctl live启动正常
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

参考资料

 

随机推荐