librelist archives

« back to archive

Cannot get lbdb installed by Homebrew to link to Mac addressbook

Cannot get lbdb installed by Homebrew to link to Mac addressbook

From:
Trey Sizemore
Date:
2011-09-22 @ 14:20
I've had this working in the past, but cannot seem to get this working
with lbdb installed by brew.

1) I have installed lbdb with brew (brew install lbdb)
2) I have the following in my .lbdbrc (located in my /home directory):

METHODS="m_muttalias m_osx_addressbook"

3) I have the following in my .muttrc:

set query_command="/usr/local/bin/lbdbq '%s'"

4)  However, when I type part of a name in the "To:" field of mutt and
then "Control-T" I get the following error:

/usr/local/bin/lbdbq: line 74: m_muttalias_query: command not found
/usr/local/bin/lbdbq: line 74: m_osx_addressbook_query: command not
found

5) I have these in /usr/local/lib:

$ ls -alF | grep m_
lrwxr-xr-x    1 trey      admin       30 Sep 19 22:12 m_bbdb@ ->
../Cellar/lbdb/0.38/lib/m_bbdb
lrwxr-xr-x    1 trey      admin       30 Sep 19 22:12 m_fido@ ->
../Cellar/lbdb/0.38/lib/m_fido
lrwxr-xr-x    1 trey      admin       32 Sep 19 22:12 m_finger@ ->
../Cellar/lbdb/0.38/lib/m_finger
lrwxr-xr-x    1 trey      admin       35 Sep 19 22:12 m_gnomecard@ ->
../Cellar/lbdb/0.38/lib/m_gnomecard
lrwxr-xr-x    1 trey      admin       32 Sep 19 22:12 m_inmail@ ->
../Cellar/lbdb/0.38/lib/m_inmail
lrwxr-xr-x    1 trey      admin       30 Sep 19 22:12 m_ldap@ ->
../Cellar/lbdb/0.38/lib/m_ldap
lrwxr-xr-x    1 trey      admin       35 Sep 19 22:12 m_muttalias@ ->
../Cellar/lbdb/0.38/lib/m_muttalias
lrwxr-xr-x    1 trey      admin       41 Sep 19 22:12 m_osx_addressbook@
-> ../Cellar/lbdb/0.38/lib/m_osx_addressbook
lrwxr-xr-x    1 trey      admin       30 Sep 19 22:12 m_palm@ ->
../Cellar/lbdb/0.38/lib/m_palm
lrwxr-xr-x    1 trey      admin       32 Sep 19 22:12 m_passwd@ ->
../Cellar/lbdb/0.38/lib/m_passwd
lrwxr-xr-x    1 trey      admin       30 Sep 19 22:12 m_pine@ ->
../Cellar/lbdb/0.38/lib/m_pine
lrwxr-xr-x    1 trey      admin       36 Sep 19 22:12 m_wanderlust@ ->
../Cellar/lbdb/0.38/lib/m_wanderlust
lrwxr-xr-x    1 trey      admin       34 Sep 19 22:12 m_yppasswd@ ->
../Cellar/lbdb/0.38/lib/m_yppasswd
lrwxr-xr-x    1 trey      admin       35 Sep 19 22:12 palm_lsaddr@ ->
../Cellar/lbdb/0.38/lib/palm_lsaddr

I'm happy to provide any additional info about my setup.

Thanks!

-- 
  Trey Sizemore
  trey@fastmail.fm

Re: [homebrew] Cannot get lbdb installed by Homebrew to link to Mac addressbook

From:
Tim Gray
Date:
2011-09-22 @ 15:18
On Sep 22, 2011 at 10:20 AM -0400, Trey Sizemore wrote:
>I've had this working in the past, but cannot seem to get this working
>with lbdb installed by brew.

The last I looked at this, lbdb provided by homebrew doesn't build under 
10.7 and XCode 4.  Neither do the files build by hand without brew if 
you get the files from the lbdb website.  It's the Address Book 
integration part - the XCode project file is old, etc., and no longer 
works.

I fixed up and actually wrote a brew recipe for it.  I tried to contact 
the lbdb authors to accept the changes but they've never responded.  
So... You can download my fork of the project with the corrections from 
git, as well as my brew recipe, which is much simpler than the current 
brew recipe.  The brew recipe below references the patched lbdb files, 
so you should be able to download the recipe and run the following I 
think:

     brew install https://raw.github.com/tgray/brewalt/master/lbdb.rb

Or download the recipe, cd to the location of it, and run:
     
     brew install ./lbdb.rb

Brew recipe:
https://raw.github.com/tgray/brewalt/master/lbdb.rb

modded lbdb page:
https://github.com/tgray/lbdb

Re: [homebrew] Cannot get lbdb installed by Homebrew to link to Mac addressbook

From:
Trey Sizemore
Date:
2011-09-22 @ 20:22

On Thursday, September 22, 2011 11:18 AM, "Tim Gray"
<tgray@protozoic.com> wrote:
> On Sep 22, 2011 at 10:20 AM -0400, Trey Sizemore wrote:
> >I've had this working in the past, but cannot seem to get this working
> >with lbdb installed by brew.
> 
> The last I looked at this, lbdb provided by homebrew doesn't build under 
> 10.7 and XCode 4.  Neither do the files build by hand without brew if 
> you get the files from the lbdb website.  It's the Address Book 
> integration part - the XCode project file is old, etc., and no longer 
> works.
> 
> I fixed up and actually wrote a brew recipe for it.  I tried to contact 
> the lbdb authors to accept the changes but they've never responded.  
> So... You can download my fork of the project with the corrections from 
> git, as well as my brew recipe, which is much simpler than the current 
> brew recipe.  The brew recipe below references the patched lbdb files, 
> so you should be able to download the recipe and run the following I 
> think:
> 
>      brew install https://raw.github.com/tgray/brewalt/master/lbdb.rb
> 
> Or download the recipe, cd to the location of it, and run:
>      
>      brew install ./lbdb.rb
> 
> Brew recipe:
> https://raw.github.com/tgray/brewalt/master/lbdb.rb
> 
> modded lbdb page:
> https://github.com/tgray/lbdb
> 


Thanks.  I uninstalled the version I had before and installed yours. 
However, I'm still seeing the same error:

$ lbdbq
/usr/local/bin/lbdbq: line 74: m_muttalias_query: command not found
/usr/local/bin/lbdbq: line 74: m_osx_addressbook_query: command not
found
lbdbq: no matches

Did I miss something?

-- 
  Trey Sizemore
  trey@fastmail.fm

Re: [homebrew] Cannot get lbdb installed by Homebrew to link to Mac addressbook

From:
Tim Gray
Date:
2011-09-22 @ 21:02
On Sep 22, 2011 at 04:22 PM -0400, Trey Sizemore wrote:
>$ lbdbq
>/usr/local/bin/lbdbq: line 74: m_muttalias_query: command not found
>/usr/local/bin/lbdbq: line 74: m_osx_addressbook_query: command not
>found
>lbdbq: no matches
>
>Did I miss something?

Looking in my .lbdb/lbdbrc file, I have the following line:

     MODULES_PATH="/usr/local/lib"

I'm not sure if you need it or not; that might be the default location and
lbdbq might search there automatically.  But I would check to see if you 
have the m_osx_addressbook_query command in your /usr/local/lib.  It 
should be symlinked to something like 
/usr/local/Cellar/lbdb/0.38/lib/m_osx_addressbook.  It sounds like it's 
not there for some reason.

Re: [homebrew] Cannot get lbdb installed by Homebrew to link to Mac addressbook

From:
Trey Sizemore
Date:
2011-09-22 @ 21:21
On Thursday, September 22, 2011 5:02 PM, "Tim Gray"
<tgray@protozoic.com> wrote:
> On Sep 22, 2011 at 04:22 PM -0400, Trey Sizemore wrote:
> >$ lbdbq
> >/usr/local/bin/lbdbq: line 74: m_muttalias_query: command not found
> >/usr/local/bin/lbdbq: line 74: m_osx_addressbook_query: command not
> >found
> >lbdbq: no matches
> >
> >Did I miss something?
> 
> Looking in my .lbdb/lbdbrc file, I have the following line:
> 
>      MODULES_PATH="/usr/local/lib"
> 
> I'm not sure if you need it or not; that might be the default location
> and lbdbq might search there automatically.  But I would check to see if
> you have the m_osx_addressbook_query command in your /usr/local/lib.  It
> should be symlinked to something like
> /usr/local/Cellar/lbdb/0.38/lib/m_osx_addressbook.  It sounds like it's
> not there for some reason.
> 

Thanks.  That was the problem.  Had the old macports path for modules. 
Once I changed it, all is working again.

-- 
  Trey Sizemore
  trey@fastmail.fm