exmpp Install error |
|
|
| Posted: 19 April 2010 03:30 PM |
[ Ignore ]
|
|
|
Junior Member
Total Posts: 38
Joined 2009-11-19
|
Thiago-Camargos-MacBook-Pro:exmpp-0.9.3 thiago$ sudo make install
Making install in c_src
test -z “/opt/local/lib/erlang/lib/exmpp-0.9.3/priv/lib” || ../ac-aux/install-sh -c -d “/opt/local/lib/erlang/lib/exmpp-0.9.3/priv/lib”
/bin/sh ../libtool —mode=install /usr/bin/install -c exmpp_stringprep.la exmpp_xml_expat.la exmpp_xml_expat_legacy.la exmpp_xml_libxml2.la exmpp_tls_openssl.la exmpp_compress_zlib.la ‘/opt/local/lib/erlang/lib/exmpp-0.9.3/priv/lib’
libtool: install: /usr/bin/install -c .libs/exmpp_stringprep.so /opt/local/lib/erlang/lib/exmpp-0.9.3/priv/lib/exmpp_stringprep.so
install: .libs/exmpp_stringprep.so: No such file or directory
make[2]: *** [install-execdriversLTLIBRARIES] Error 71
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
|
|
|
|
|
|
| Posted: 19 April 2010 04:38 PM |
[ Ignore ]
[ # 1 ]
|
|
|
Junior Member
Total Posts: 38
Joined 2009-11-19
|
Trying exmpp-0.9.3 also fails:
sudo make install
Making install in c_src
test -z “/opt/local/lib/erlang/lib/exmpp-0.9.3/priv/lib” || ../ac-aux/install-sh -c -d “/opt/local/lib/erlang/lib/exmpp-0.9.3/priv/lib”
/bin/sh ../libtool —mode=install /usr/bin/install -c exmpp_stringprep.la exmpp_xml_expat.la exmpp_xml_expat_legacy.la exmpp_xml_libxml2.la exmpp_tls_openssl.la exmpp_compress_zlib.la ‘/opt/local/lib/erlang/lib/exmpp-0.9.3/priv/lib’
libtool: install: /usr/bin/install -c .libs/exmpp_stringprep.so /opt/local/lib/erlang/lib/exmpp-0.9.3/priv/lib/exmpp_stringprep.so
install: .libs/exmpp_stringprep.so: No such file or directory
make[2]: *** [install-execdriversLTLIBRARIES] Error 71
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
|
|
|
|
|
|
| Posted: 19 April 2010 05:22 PM |
[ Ignore ]
[ # 2 ]
|
|
|
Moderator
Total Posts: 29
Joined 2007-11-26
|
Umm, it seems the exmpp 0.9.3 source code package includes some binary files that break your proper compilation.
Try this instead:
./configure make clean make sudo make install
|
|
|
|
|
|
| Posted: 19 April 2010 07:05 PM |
[ Ignore ]
[ # 3 ]
|
|
|
Junior Member
Total Posts: 38
Joined 2009-11-19
|
Solved the issue with GIT Trunk by removing previous versions.
Although I still cannot get exmpp work like the documentation.
Apparently I’m missing exmpp_jid.hrl from the repository. Or it is not the correct file.
Any help or comment on it?
|
|
|
|
|
|
| Posted: 19 April 2010 11:23 PM |
[ Ignore ]
[ # 4 ]
|
|
|
Moderator
Total Posts: 29
Joined 2007-11-26
|
This works correctly for me:
git clone git://git.process-one.net/exmpp/mainline.git exmpp cd exmpp/ autoreconf -vif ./configure make sudo make install
|
|
|
|
|
|
| Posted: 20 April 2010 08:36 AM |
[ Ignore ]
[ # 5 ]
|
|
|
Junior Member
Total Posts: 38
Joined 2009-11-19
|
Badlop - 19 April 2010 11:23 PM This works correctly for me:
git clone git://git.process-one.net/exmpp/mainline.git exmpp cd exmpp/ autoreconf -vif ./configure make sudo make install
Although I still cannot get exmpp work like the documentation.
Apparently I’m missing exmpp_jid.hrl from the repository. Or it is not the correct file.
Any help or comment on it?
Which include should I use to make use of record jid?
|
|
|
|
|
|
| Posted: 20 April 2010 03:25 PM |
[ Ignore ]
[ # 6 ]
|
|
|
Moderator
Total Posts: 29
Joined 2007-11-26
|
Thiago Camargo - 20 April 2010 08:36 AM
Although I still cannot get exmpp work like the documentation.
What documentation?
Thiago Camargo - 20 April 2010 08:36 AM
Apparently I’m missing exmpp_jid.hrl from the repository. Or it is not the correct file.
Any help or comment on it?
Which include should I use to make use of record jid?
In http://www.process-one.net/docs/exmpp/devdoc/trunk/exmpp_jid.html says:
jid() is an internal type and the structure documented herein may be changed without notice. Please use only the accessors exported by this module to get each component of a JID.
|
|
|
|
|
|
|
|
| Posted: 20 April 2010 07:13 PM |
[ Ignore ]
[ # 8 ]
|
|
|
Moderator
Total Posts: 31
Joined 2009-06-04
|
Hi,
you can use the ?IS_JID macro, that can be used in guards, like:
some_function(J, Foo) when ?IS_JID(J) ->
[...]
This macro is defined in include/exmpp_xmpp.hrl if you want to have a look at it.
|
|
|
|
|
|
| Posted: 20 April 2010 08:52 PM |
[ Ignore ]
[ # 9 ]
|
|
|
Junior Member
Total Posts: 38
Joined 2009-11-19
|
Super, worked like a charm :)
I will blog about this so we can re-use the questions.
Thanks :)
|
|
|
|
|
|
| Posted: 27 April 2010 12:44 PM |
[ Ignore ]
[ # 10 ]
|
|
|
Junior Member
Total Posts: 38
Joined 2009-11-19
|
More Errors when building latest version from GIT in a new Debian Machine:
In file included from exmpp_driver.c:21:
exmpp_driver.h:24:16: error: ei.h: No such file or directory
exmpp_driver.h:25:24: error: erl_driver.h: No such file or directory
In file included from exmpp_driver.c:21:
exmpp_driver.h:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exmpp_driver.h:72: error: expected ‘)’ before ‘*’ token
exmpp_driver.c:41: error: expected specifier-qualifier-list before ‘ErlDrvRWLock’
exmpp_driver.c: In function ‘exmpp_ht_create’:
exmpp_driver.c:129: warning: implicit declaration of function ‘driver_alloc’
exmpp_driver.c:129: warning: assignment makes pointer from integer without a cast
exmpp_driver.c:132: warning: assignment makes pointer from integer without a cast
exmpp_driver.c:134: warning: implicit declaration of function ‘driver_free’
exmpp_driver.c:140: error: ‘struct exmpp_hashtable’ has no member named ‘lock’
exmpp_driver.c:140: warning: implicit declaration of function ‘erl_drv_rwlock_create’
exmpp_driver.c:141: error: ‘struct exmpp_hashtable’ has no member named ‘lock’
exmpp_driver.c: In function ‘exmpp_ht_store’:
exmpp_driver.c:168: warning: assignment makes pointer from integer without a cast
exmpp_driver.c:179: warning: assignment makes pointer from integer without a cast
exmpp_driver.c:189: warning: implicit declaration of function ‘erl_drv_rwlock_rwlock’
exmpp_driver.c:189: error: ‘struct exmpp_hashtable’ has no member named ‘lock’
exmpp_driver.c:210: warning: implicit declaration of function ‘erl_drv_rwlock_rwunlock’
exmpp_driver.c:210: error: ‘struct exmpp_hashtable’ has no member named ‘lock’
exmpp_driver.c: In function ‘exmpp_ht_fetch’:
exmpp_driver.c:228: warning: implicit declaration of function ‘erl_drv_rwlock_rlock’
exmpp_driver.c:228: error: ‘struct exmpp_hashtable’ has no member named ‘lock’
exmpp_driver.c:242: warning: implicit declaration of function ‘erl_drv_rwlock_runlock’
exmpp_driver.c:242: error: ‘struct exmpp_hashtable’ has no member named ‘lock’
exmpp_driver.c:251: error: ‘struct exmpp_hashtable’ has no member named ‘lock’
exmpp_driver.c: In function ‘exmpp_ht_destroy’:
exmpp_driver.c:277: error: ‘struct exmpp_hashtable’ has no member named ‘lock’
exmpp_driver.c:298: error: ‘struct exmpp_hashtable’ has no member named ‘lock’
exmpp_driver.c:299: warning: implicit declaration of function ‘erl_drv_rwlock_destroy’
exmpp_driver.c:299: error: ‘struct exmpp_hashtable’ has no member named ‘lock’
exmpp_driver.c: In function ‘exmpp_ht_dump_keys’:
exmpp_driver.c:315: error: ‘struct exmpp_hashtable’ has no member named ‘lock’
exmpp_driver.c:332: error: ‘struct exmpp_hashtable’ has no member named ‘lock’
exmpp_driver.c: In function ‘ht_expand’:
exmpp_driver.c:377: warning: assignment makes pointer from integer without a cast
exmpp_driver.c: In function ‘exmpp_skip_version’:
exmpp_driver.c:413: warning: implicit declaration of function ‘ei_decode_version’
exmpp_driver.c: At top level:
exmpp_driver.c:419: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
exmpp_driver.c:437: error: expected ‘)’ before ‘*’ token
exmpp_driver.c: In function ‘exmpp_strdup’:
exmpp_driver.c:451: warning: assignment makes pointer from integer without a cast
make[2]: *** [exmpp_stringprep_la-exmpp_driver.lo] Error 1
make[2]: Leaving directory `/home/thiago/projects/exmpp/c_src’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thiago/projects/exmpp’
make: *** [all] Error 2
|
|
|
|
|
|
| Posted: 27 April 2010 12:48 PM |
[ Ignore ]
[ # 11 ]
|
|
|
Moderator
Total Posts: 29
Joined 2007-11-26
|
Thiago Camargo - 27 April 2010 12:44 PM More Errors when building latest version from GIT in a new Debian Machine:
In file included from exmpp_driver.c:21:
exmpp_driver.h:24:16: error: ei.h: No such file or directory
exmpp_driver.h:25:24: error: erl_driver.h: No such file or directory
Install the Debian package erlang-dev
|
|
|
|
|
|
| Posted: 27 April 2010 04:32 PM |
[ Ignore ]
[ # 12 ]
|
|
|
Junior Member
Total Posts: 38
Joined 2009-11-19
|
HI,
After installed erlang-dev, it starts the compiling, but it is in an infinity loop. Taking 30 minutes and always repeating messages.
Using Ubuntu and latest GIT version.
|
|
|
|
|
|
|
|
Newbie
Total Posts: 8
Joined 2009-08-18
|
Got exmpp-0.9.3 from Git. Elang version is R13B04 on Mac OSX 10.5.8
./configure fails with following:
checking for Erlang/OTP root directory… configure: error: in `/Users/bokner/Downloads/exmpp_install_0.9.3/exmpp’:
configure: error: test Erlang program execution failed
Any ideas?
|
|
|
|
|
|
|
|
Moderator
Total Posts: 29
Joined 2007-11-26
|
Thiago Camargo - 27 April 2010 04:32 PM it starts the compiling, but it is in an infinity loop. Taking 30 minutes and always repeating messages.
Using Ubuntu and latest GIT version.
I never encountered that problem. Did you finally find the reason for the problem, and how to solve it?
|
|
|
|
|
|
|
|
Newbie
Total Posts: 1
Joined 2010-07-05
|
I have installed erlang-dev and It is going very well.
|
|
|
|
|