bananajour under ubuntu jaunty

10 views
Skip to first unread message

Glen Maddern

unread,
Jun 22, 2009, 7:53:03 PM6/22/09
to bananajour
Trying to get it running atm, but the dnssd gem is failing to build
with 'can't find rendezvous library'. From my recollection, there's
one cross-platform bonjour gem and dnssd isn't it, or something?

However, someone apparently has got this working, anyone know how? Is
there a fork of bananajour that depends on a different bonjour gem?

Or is there a way to build dnssd under linux? My google-fu is failing
so far.

Cheers,
-glen.

Lachlan Hardy

unread,
Jun 22, 2009, 9:08:07 PM6/22/09
to banan...@googlegroups.com
Trying to get it running atm, but the dnssd gem is failing to build
with 'can't find rendezvous library'. From my recollection, there's
one cross-platform bonjour gem and dnssd isn't it, or something?

DNSSD 0.7.1 looks for Apple's Bonjour library and if it can't find that it looks for the Avahi implementation. If you have Avahi installed, you *should* be all good. If you don't, install/update Avahi and see what that gets you.
 
However, someone apparently has got this working, anyone know how? Is
there a fork of bananajour that depends on a different bonjour gem?

There is another ruby gem called 'net-mdns' that historically works better on Linux, but that'll require some refactoring of Bananajour to get it working. 

Glen Maddern

unread,
Jun 22, 2009, 9:42:58 PM6/22/09
to banan...@googlegroups.com
aha!

sudo apt-get install libavahi-compat-libdnssd-dev

was all I needed, in the end (apart from my own gem fails and not having libopenssl-ruby1.8). Running now...

Cheers,
-glen.
--
Glen Maddern
0423 118 405

Tim Lucas

unread,
Jun 22, 2009, 10:02:05 PM6/22/09
to bananajour
On Jun 23, 11:42 am, Glen Maddern <gle...@gmail.com> wrote:
> aha!
>
> sudo apt-get install libavahi-compat-libdnssd-dev
>
> was all I needed, in the end (apart from my own gem fails and not having
> libopenssl-ruby1.8). Running now...

awesome, relatively straight-forward. Have updated the Readme with
Ubuntu instructions.

-- tim

Glen Maddern

unread,
Jun 23, 2009, 12:47:52 AM6/23/09
to banan...@googlegroups.com
Ok except it doesn't work :/

This is my current state, http://www.ubuntu-pics.de/bild/16967/screenshot_003_gqDB9u.png

These git repos aren't clones of eachother, but they're both derived from a git-svn clone. The bit that concerns me is the 'no other bananas' bit on my version? Maybe dnssd isn't working after all?

Is there an easy way to test it through irb?

-glen.

Tim Lucas

unread,
Jun 23, 2009, 12:59:57 AM6/23/09
to banan...@googlegroups.com
On 23/06/2009, at 2:47 PM, Glen Maddern wrote:

Ok except it doesn't work :/

This is my current state, http://www.ubuntu-pics.de/bild/16967/screenshot_003_gqDB9u.png

These git repos aren't clones of eachother, but they're both derived from a git-svn clone. The bit that concerns me is the 'no other bananas' bit on my version? Maybe dnssd isn't working after all?

Have you git pushed to each dukejour and git-admo? It show at least yourself in the list there.

Is there an easy way to test it through irb?

Get bananajour running, then manually fire up a Bonjour browser and see if it can find the local bananajour:

$ irb -rrubygems -rbananajour
> b = Bananajour::Bonjour::BananajourBrowser.new
> b.bananajours
=> [#<Bananajour::Bonjour::Person:0x179d528 @uri="http://tim.local:9331/", @name="Tim Lucas", @email="t.l...@toolmantim.com", @gravatar="http://gravatar.com/avatar/8b3a5fa50d63275c5c6e304f1a081bfb.png">]

Oh, and nice local computer name ;)

-- tim

Glen Maddern

unread,
Jun 23, 2009, 1:04:52 AM6/23/09
to banan...@googlegroups.com
Interesting:

Tue 15:02:54 glen@swineflu ~

$ irb -rrubygems -rbananajour
>> b = Bananajour::Bonjour::BananajourBrowser.new
*** WARNING *** The program 'ruby1.8' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=ruby1.8>
=> #<Bananajour::Bonjour::BananajourBrowser:0x7fd1e3d70200 @browser=#<Bananajour::Bonjour::Browser:0x7fd1e3d70188 @mutex=#<Mutex:0x7fd1e3d70138>, @replies=[], @service="_bananajour._http._tcp">>
>> b.bananajours
=> []
>>


Any thoughts?

-glen.

Tim Lucas

unread,
Jun 23, 2009, 1:09:35 AM6/23/09
to banan...@googlegroups.com
On 23/06/2009, at 3:04 PM, Glen Maddern wrote:

Interesting:

Tue 15:02:54 glen@swineflu ~
$ irb -rrubygems -rbananajour
>> b = Bananajour::Bonjour::BananajourBrowser.new
*** WARNING *** The program 'ruby1.8' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=ruby1.8>
=> #<Bananajour::Bonjour::BananajourBrowser:0x7fd1e3d70200 @browser=#<Bananajour::Bonjour::Browser:0x7fd1e3d70188 @mutex=#<Mutex:0x7fd1e3d70138>, @replies=[], @service="_bananajour._http._tcp">>
>> b.bananajours
=> []
>>


Any thoughts?

and you're definitely running bananajour yeah?

-- tim

Glen Maddern

unread,
Jun 23, 2009, 1:12:19 AM6/23/09
to banan...@googlegroups.com
Yep.

$ ps fx | grep banana
28564 pts/3    S+     0:00  |   |   \_ grep banana
15222 pts/3    Sl     0:14 /usr/bin/ruby1.8 /var/lib/gems/1.8/bin/bananajour
15220 pts/3    Sl     0:06 ruby /var/lib/gems/1.8/gems/toolmantim-bananajour-2.1.5/bin/../lib/bananajour/../../sinatra/app.rb -p 9331 -e production
13909 pts/3    S      0:00 git-daemon --base-path=/home/glen/.bananajour/repositories --export-all


-glen.

Tim Lucas

unread,
Jun 28, 2009, 1:49:33 AM6/28/09
to banan...@googlegroups.com
On 23/06/2009, at 3:12 PM, Glen Maddern wrote:

Yep.

$ ps fx | grep banana
28564 pts/3    S+     0:00  |   |   \_ grep banana
15222 pts/3    Sl     0:14 /usr/bin/ruby1.8 /var/lib/gems/1.8/bin/bananajour
15220 pts/3    Sl     0:06 ruby /var/lib/gems/1.8/gems/toolmantim-bananajour-2.1.5/bin/../lib/bananajour/../../sinatra/app.rb -p 9331 -e production
13909 pts/3    S      0:00 git-daemon --base-path=/home/glen/.bananajour/repositories --export-all


any luck Glen? Do you have a bonjour browsing app you could use to check out if anything is being advertised on the network?

-- tim

Reply all
Reply to author
Forward
0 new messages