[redland-dev] Problem installing Redland bindings for Python on Mac

Jason Ellis jellis at gmail.com
Thu Aug 29 11:29:09 EDT 2013


Thanks for the help, Dave.
I added that variable but I'm still seeing the issue. Anything else I
might be missing?

Here's an abbreviated log:

$ cd redland-bindings-1.0.16.1
$ ./configure --with-python

[...]

checking Enable Python API... yes 2.7
checking Python includes...
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
checking Python libs... /Library/Python/2.7/site-packages
checking Python LDFLAGS... guessed flags: -Wl,-F. -Wl,-F. -bundle
-F/System/Library/Frameworks -framework Python
checking Python shared library file extension... .so
checking Ruby installation dir...
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8
from RbConfig::CONFIG rubylibdir
checking Ruby arch installation dir...
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0
from RbConfig::CONFIG archdir
checking Ruby headers dir...
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0
from arch dir
checking Ruby Linking... compile ' -fno-common' link ' -bundle
-flat_namespace -undefined suppress -lruby' suffix bundle
checking Enable PHP API... no
checking Enable Ruby API... no
checking for redland... not found
configure: error: Redland is not installed - see http://librdf.org/ to
get a version 1.0.16 or newer
$ echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig
$ ls /usr/local/lib/pkgconfig
raptor2.pc  rasqal.pc   redland.pc
$ pkg-config redland --modversion
1.0.16



On Wed, Aug 28, 2013 at 11:57 AM, Dave Beckett <dave at dajobe.org> wrote:
> You need to have pkg-config able to find redland
>
> Not discoverable:
> $ mbp:~ 502$ pkg-config redland --modversion
> Package redland was not found in the pkg-config search path.
> Perhaps you should add the directory containing `redland.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'redland' found
>
> Discoverable:
> $ pkg-config redland --modversion
> 1.0.16
>
> That's what configure is complaining about.
>
> To fix, in your case probably you need:
>
> $ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
>
> However check that /usr/local/lib/pkgconfig contains redland.pc (and
> raptor2.pc and rasqal.pc) first
>
> Dave
>
>
>
> On Wed, 28 Aug 2013, Jason Ellis wrote:
>
>> Hi, folks.
>> I'm having an issue installing the Redland Python bindings on MacOS
>> 10.8.4.
>> I installed rasqal, raptor, and redland using brew.
>>
>> The redland binaries appear to be installed in /usr/local/bin and
>> libraries in /usr/local/lib. My PATH contains /usr/local/bin. I tried
>> adding /usr/local/lib to DYLD_LIBRARY_PATH but that didn't seem to
>> make a difference.
>>
>> Any ideas?
>> Here's the tail of the log I get when executing ./configure --with-python
>>
>> checking Enable Python API... yes 2.7
>> checking Python includes...
>>
>> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
>> checking Python libs... /Library/Python/2.7/site-packages
>> checking Python LDFLAGS... guessed flags: -Wl,-F. -Wl,-F. -bundle
>> -F/System/Library/Frameworks -framework Python
>> checking Python shared library file extension... .so
>> checking Ruby installation dir...
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8
>> from RbConfig::CONFIG rubylibdir
>> checking Ruby arch installation dir...
>>
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0
>> from RbConfig::CONFIG archdir
>> checking Ruby headers dir...
>>
>> -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0
>> from arch dir
>> checking Ruby Linking... compile ' -fno-common' link ' -bundle
>> -flat_namespace -undefined suppress -lruby' suffix bundle
>> checking Enable PHP API... no
>> checking Enable Ruby API... no
>> checking for redland... not found
>> configure: error: Redland is not installed - see http://librdf.org/ to
>> get a version 1.0.16 or newer
>> _______________________________________________
>> redland-dev mailing list
>> redland-dev at lists.librdf.org
>> http://lists.librdf.org/mailman/listinfo/redland-dev
>>
>>
>


More information about the redland-dev mailing list