From: Brian Candler Date: 2009-04-30T00:18:07+09:00 Subject: Re: Ruby Interface of Erlang BTW, I haven't been able to get it to build yet - it's stuck looking for -lei $ ruby configure.rb --with-ei-dir=/usr/lib/erlang/lib/erl_interface-3.5.7 *** ./extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/ruby --with-ei-dir --with-ei-include --without-ei-include=${ei-dir}/include --with-ei-lib --without-ei-lib=${ei-dir}/lib --with-eilib --without-eilib checking for erl_init() in -lei... no error: erl_interface not found! $ ls /usr/lib/erlang/lib/erl_interface-3.5.7/ bin doc include info lib src $ I've tried various values for --with-eir without success. This is under Ubuntu Hardy but with erlang 12.b.3 from Intrepid. (Works fine with CouchDB, for example). On a different point, I noticed the following in the C source: //check: all elements' must be ErlixTerm for(i=0;ilen;i++){ VALUE e=RARRAY(array)->ptr[i]; if(!IS_ETERM(e)){ rb_raise(rb_eTypeError,"all tuple's elements must be ErlixTerm!"); } } I think it could be useful if some automatic conversions were done here. e.g. Fixnum converted to Erlix[::]Int automatically, String to a List, maybe Array to Tuple. However maybe they're done elsewhere - as I say, I've not been able to run it yet. Regards, Brian. -- Posted via http://www.ruby-forum.com/.