[redland-dev] Can't install redland php binding on Ubuntu 10.10

Dave Beckett dave at dajobe.org
Thu Jan 26 00:43:03 EST 2012


On 1/25/12 5:07 AM, lorena wrote:
> Hi
> 
> After running ./configure --with-php=/usr/bin/php I get the following
> message and the config.log file I'm attaching
> 
> Redland build summary:
>   Redland:              1.0.15
>   Language APIs built:  
> 
> Seems ok, but when I perform make nothing is done!
> 
> lorena at lorena-virtual-machine:~/Downloads/redland-bindings-1.0.14.1$ sudo make
> make  all-recursive
> make[1]: Entering directory `/home/lorena/Downloads/redland-bindings-1.0.14.1'
> Making all in data
> make[2]: Entering directory
> `/home/lorena/Downloads/redland-bindings-1.0.14.1/data'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory
> `/home/lorena/Downloads/redland-bindings-1.0.14.1/data'
> make[2]: Entering directory `/home/lorena/Downloads/redland-bindings-1.0.14.1'
> make[2]: Leaving directory `/home/lorena/Downloads/redland-bindings-1.0.14.1'
> make[1]: Leaving directory `/home/lorena/Downloads/redland-bindings-1.0.14.1'
> 
> I've also tried to perform make in the php dir, and I get this error:
> lorena at lorena-virtual-machine:~/Downloads/redland-bindings-1.0.14.1/php$
> sudo make
> swig -v  -I. -DREDLAND_POST_I -DREDLAND_INIT_I -DREDLAND_DECL_I
> -DREDLAND_TYPEMAP_I -noproxy -module redland -o redland_wrap.c
> /usr/local/share/redland/Redland.i
> swig error : Unrecognized option -noproxy
> Use 'swig -help' for available options.
> make: *** [redland_wrap.c] Error 1
> lorena at lorena-virtual-machine:~/Downloads/redland-bindings-1.0.14.1/php$

Normally, swig should never be re-run when you build from a released
tarball.  The generated code (C) just needs compiling.

The issue is here that you must have a version of swig (V1) that's older
than supported.  You can build a new swig and 'make clean' and retry but I'd
recommend starting from a clean tarball again, after installing a new swig.

SWIG v2 also seems to work but it might give some warnings.

> Instead of compiling the sources I've tried installing the php5-librdf
> package via apt-get.
> Should librdf or redland appear as a php extension ? If so something is
> wrong with this mechanism also since php -me lists the following extensions:


> 
> [PHP Modules]
> bcmath
> bz2
> calendar
> Core
> ctype
> date
> dba
> dom
> ereg
> exif
> fileinfo
> filter
> ftp
> gettext
> hash
> iconv
> json
> libxml
> mbstring
> mhash
> openssl
> pcntl
> pcre
> Phar
> posix
> readline
> Reflection
> session
> shmop
> SimpleXML
> soap
> sockets
> SPL
> standard
> sysvmsg
> sysvsem
> sysvshm
> tokenizer
> wddx
> xml
> xmlreader
> xmlwriter
> zip
> zlib
> 
> [Zend Modules]

I've got it installed from php5-librdf and it doesn't appear for me.  I'm
not sure why.

Here's a better test using the test.php from the package:

$ php /usr/share/doc/php5-librdf/examples/test.php
Testing Redland...
Redland world opened
Redland storage created
Redland model created
Redland parser created
Parsing...
Done...
Querying for dc:titles:
Returned 1 results

Executing query again
Query results serialized to an XML string size 224 bytes
Redland serializer created
Serializing...
Done...
Done


Dave


More information about the redland-dev mailing list