[Bond-users] Fedora & Bond From Source

Colin Close itchka at compuserve.com
Tue Oct 16 18:08:47 EDT 2007


Davor Ocelic wrote:
>  
> On Tue, Oct 16, 2007 at 04:06:54PM -0400, Colin Close wrote:
>   
>> Hi All
>>
>> I had this recently the only way I found to solve it was to set the 
>> PKG_CONFIG_PATH=/usr/local/bin/pkgconfig
>> Then I built bondb2 independently made sure the the bonddb2 pkgconfig 
>> file actually ends up in /usr/local/bin/ if not copy it there. Then 
>> build bond (with the PKG_CONFIG_PATH still set to /usr/local/bin). Its a 
>> bodge but it gets the job done. I actually used the svn source of about 
>> three weeks ago so the problem is in svn too.
>>     
>
> Yo,
>
> Yes, but this depends on the setup of course. If everything's alright
> with your setup, bond should find bonddb2's pkgconfig. 
>
> Did you have /usr/local/bin in the PATH at time of running the 
> command?
>
> Actually if I'm not mistaken, pkgconfig is a standalone package
> that you need to install on your system and then it works for all
> applications that use it.
>
> See ya,
> -doc
>
>   
Hi All
          You think that would be the case Doc but even though I tried 
to do a compile with the PKG_CONFIG_PATH set to /usr/lib64/pkgconfig the 
standard location on my Mandriva system and built bondb2 such that it 
was installed in /usr/lib64 and bondb2 in the /usr/lib64/pkgconfig bond 
would still not build it just wouldn't find bondb2.pc the only way it 
would find it was in /usr/local/lib/pkgconfig. I have to confess I 
thought it extremely bizarre at the time and I spent a whole evening 
trying to get to the bottom of it. The only thing I discovered was that 
if I cut and pasted (into a terminal) the commands that scons generated 
when run. (the commands it used to check for the existence of the 
packages) the packages were found with no problem so it would seem that 
scons it picking up an environment variable setting from somewhere other 
than the ones that I had set. I have no idea what was wrong. I even 
deleted all the hidden config files that scons uses so that they would 
be re-generated.
Scons is still bit of a mystery to me.

Best

Colin Close
>> Best
>>
>> Colin Close
>>
>> Andrew Hill wrote:
>>     
>>>  
>>> It looks like a problem with pkg-config not installing it in the right 
>>> place etc. Jasen or liam may have a better idea of whats going wrong.
>>>
>>> what is the output from :
>>> pkg-config bonddb2 --modversion
>>>
>>> can you try checking out the latest version from subversion?
>>> svn checkout ..
>>>
>>> I'm bit behind on the public releases at the moment and i should really 
>>> release bond 2.6.2 and the new bonddb within the next week or two but 
>>> havn't got around to it yet.  And this bug may have been fixed before.
>>>
>>> Piers Rowan wrote:
>>>
>>>   
>>>       
>>>> Hi there!
>>>>
>>>> I have downloaded all the required packages & libraries to build bond &
>>>> bonddb from source. I have encountered the following error *after*
>>>> installing bonddb:
>>>>
>>>> This is using the bond tar.gz file which contains both a bond and bonddb
>>>> directory.
>>>>
>>>> [root at mt bond]# cd ../bonddb/
>>>>
>>>> [root at mt bonddb]# scons
>>>> scons: Reading SConscript files ...
>>>> usr=/usr/
>>>> Checking for C header file string.h... (cached) yes
>>>> Using postgresql backend.
>>>> building bondcommon
>>>> building bondsql
>>>> Building bonddb...
>>>> scons: done reading SConscript files.
>>>> scons: Building targets ...
>>>> scons: `.' is up to date.
>>>> scons: done building targets.
>>>> [root at mt bonddb]# scons install
>>>> scons: Reading SConscript files ...
>>>> usr=/usr/
>>>> Checking for C header file string.h... (cached) yes
>>>> Using postgresql backend.
>>>> building bondcommon
>>>> building bondsql
>>>> Building bonddb...
>>>> scons: done reading SConscript files.
>>>> scons: Building targets ...
>>>> scons: `install' is up to date.
>>>> scons: done building targets.
>>>>
>>>> [root at mt bonddb]# cd ../bond
>>>>
>>>> [root at mt bond]# scons
>>>> scons: Reading SConscript files ...
>>>> Checking for C header file string.h... yes
>>>> Checking for C function strcasecmp()... yes
>>>> Checking for libxml-2.0 >= 2.6.0... yes
>>>> Checking for gtk+-2.0 >= 2.6.0... yes
>>>> Checking for libgnomeui-2.0 >= 2.6.0... yes
>>>> Checking for bonddb2 >= 2.2.5... no
>>>> bonddb2 >= 2.2.5 failed. Install latest version of bonddb
>>>> [root at mt bond]# 
>>>>
>>>>
>>>> And using the seperatly downloaded tar file for bonddb
>>>>
>>>> [root at mt bond]# cd ../../../bonddb/
>>>> [root at mt bonddb]# ls
>>>> bonddb  bonddb-2.2.6.tar.gz
>>>> [root at mt bonddb]# cd bonddb
>>>> [root at mt bonddb]# scons
>>>> scons: Reading SConscript files ...
>>>> usr=/usr/
>>>> Checking for C header file string.h... (cached) yes
>>>> Using postgresql backend.
>>>> building bondcommon
>>>> building bondsql
>>>> Building bonddb...
>>>> scons: done reading SConscript files.
>>>> scons: Building targets ...
>>>> scons: `.' is up to date.
>>>> scons: done building targets.
>>>> [root at mt bonddb]# scons install 
>>>> scons: Reading SConscript files ...
>>>> usr=/usr/
>>>> Checking for C header file string.h... (cached) yes
>>>> Using postgresql backend.
>>>> building bondcommon
>>>> building bondsql
>>>> Building bonddb...
>>>> scons: done reading SConscript files.
>>>> scons: Building targets ...
>>>> scons: `install' is up to date.
>>>> scons: done building targets.
>>>> [root at mt bonddb]# 
>>>>
>>>>
>>>> And then to compile bond:
>>>>
>>>> [root at mt bonddb]# cd ../../bond/bond/bond
>>>> [root at mt bond]# scons
>>>> scons: Reading SConscript files ...
>>>> Checking for C header file string.h... yes
>>>> Checking for C function strcasecmp()... yes
>>>> Checking for libxml-2.0 >= 2.6.0... yes
>>>> Checking for gtk+-2.0 >= 2.6.0... yes
>>>> Checking for libgnomeui-2.0 >= 2.6.0... yes
>>>> Checking for bonddb2 >= 2.2.5... no
>>>> bonddb2 >= 2.2.5 failed. Install latest version of bonddb
>>>> [root at mt bond]# 
>>>>
>>>>
>>>> Sorry for the long [first] post. I was wondering what I am doing wrong?
>>>>
>>>> [root at mt bond]# uname -a
>>>> Linux mt.rowan.id.au 2.6.22.5-76.fc7 #1 SMP Thu Aug 30 13:08:59 EDT 2007
>>>> x86_64 x86_64 x86_64 GNU/Linux
>>>> [root at mt bond]# uname -r
>>>> 2.6.22.5-76.fc7
>>>>
>>>>
>>>> Many thanks for any pointers you can share.
>>>>
>>>> Regards
>>>>
>>>> Piers
>>>>
>>>>         




More information about the Bond-users mailing list