[redland-dev] Installation problems (Perl v5.6.1)
Dave Beckett
dave.beckett at bristol.ac.uk
Thu Feb 12 18:02:12 GMT 2004
On Tue, 10 Feb 2004, Chris Purcell wrote:
> I'm trying to install Redland 0.9.15, Perl interface, on a UNIX server,
> but without much luck. It's an old version of Perl, v5.6.1, and to make
> things more interesting access to /usr/local is denied.
>
> I figured out how to install outside of /usr/local - ./configure
> --prefix=~ and perl Makefile.PL PREFIX=~
Sigh. There is no way I can get the right default for this.
It used to install it where you said in configure, but perl
really hated that, so I switched to install where perl wants it to
go.
> Next I had errors complaining "Can't locate loadable object for module
> RDF::Redland::CORE in @INC". After running around Google for a while, I
> figured that the CORE.so file was mis-installed; instead of
> auto/RDF/Redland/CORE/CORE.so, the file was auto/RDF/Redland/CORE.so.
> Moving it solved that problem.
It's possible. Perl silently changed the internals of MakeMaker
in some perl around then so there is no way to install correctly
on both old and new perls. I'm not compiling 5.6.0, 5.6.1, 5.8.0
... 5.8.x to test this!
> *Now* I get:
>
> Can't load '~/local/lib/perl/5.6.1/auto/RDF/Redland/CORE/CORE.so'
> for module RDF::Redland::CORE: librdf.so.0: cannot open shared object
> file: No such file or directory at /usr/lib/perl/5.6.1/DynaLoader.pm
> line 202.
> at ~/local/lib/perl/5.6.1/RDF/Redland.pm line 33
> Compilation failed in require at
> ~/local/lib/perl/5.6.1/RDF/Redland.pm line 33.
> BEGIN failed--compilation aborted at
> ~/local/lib/perl/5.6.1/RDF/Redland.pm line 33.
>
> (my home directory replaced by ~)
>
> What am I doing wrong now?
Now this one I can suggest an answer to. It can't find the installed
C shared library. On unix you need to set the environment variable
LD_LIBRARY_PATH to that area - see 'man ld.so'. On OSX you
need DYLD_LIBRARY_PATH - always different with OSX.
There might also be a file that has a list of paths, /etc/ld.so.conf
but you said you had no sysadmin access.
Dave
More information about the redland-dev
mailing list