I'm new to Ruby and Adhearsion, and after reading the chapter in the
Asterisk book, thought I'd rather learn to play around with Asterisk using
Adhearsion than the language it uses for extensions.conf natively...
I got 0.7.7 installed using "gem install adhearsion", but thought I may as
well get used to 0.8.0. So, after doing "gem uninstall adhearsion", which
worked fine, I checked out the source using svn, and added the
~/adhearsion/trunk/bin directory to my PATH.
However, running "ahn create dirname" now fails horribly. As I'm new to
Ruby, I'm not at all sure what's going on, so I'll include the error
messages below.
I'm working on a Debian Etch/amd64 system. Before doing "gem install
adhearsion" the first time, I did "apt-get install rubygems", which
brought Ruby itself in as well.
The one thing that seemed odd was that I had to go hunting for the
rubygems bin directory (which I eventually found at
/var/lib/gems/1.8/bin); there was no GEM_HOME environment variable set,
and no Debian-specific README file in /usr/share/doc/rubygems. Hence I'm
wondering if I missed something which should have been obvious, in the
setup stages.
I hope I've included enough information about the system I'm using - but
if not, please do ask.
Anyway, error messages below. Any thoughts much appreciated!
Thanks,
Nikhil.
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- log4r (MissingSourceFile)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
from /home/nikhil/adhearsion/trunk/lib/adhearsion/logging.rb:1
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'
from /home/nikhil/adhearsion/trunk/lib/adhearsion.rb:22
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /home/nikhil/adhearsion/trunk/bin/ahn:25
2008/5/20 Nikhil Nair <nn...@pobox.com>: