[firedrake] New Firedrake dependency - libspatialindex
Lawrence Mitchell
lawrence.mitchell at imperial.ac.uk
Fri Nov 13 08:08:42 GMT 2015
Hi Justin,
> On 13 Nov 2015, at 06:18, Justin Chang <jychang48 at gmail.com> wrote:
>
> Hello again,
>
> I am having issues with spatialindex on my RHEL HPC machine
> (-no_package_manager). I installed spatialindex 1.8.5 from source (w/
> prefix=$HOME/.local) and added $HOME/.local/include and $HOME/.local/lib to
> $CPATH and $LD_LIBRARY_PATH respectively. But I am getting this error:
>
> g++ -pthread -shared build/temp.linux-x86_64-2.7/firedrake/spatialindex.o
> -lspatialindex -o
> /turquoise/users/jychang48/firedrake-deps/firedrake/src/firedrake/firedrake/spatialindex.so
> /usr/bin/ld: cannot find -lspatialindex
> collect2: error: ld returned 1 exit status
> error: command 'g++' failed with exit status 1
>
> I did"mpicc -x c -v -E /dev/null" and saw that
> /users/jychang48/.local/include is there, but when I look at LIBRARY_PATH,
> /users/jychang48/.local/lib is not there.
>
> How can I fix this?
LD_LIBRARY_PATH only tells the dynamic loader where to look for libraries. Not the linker. I think in your case you should try running with the LDFLAGS environment variable set to:
LDFLAGS="-L/users/jychang48/.local/lib -Wl,-rpath,/users/jychang48/.local/lib"
That should result in no need for LD_LIBRARY_PATH. The former bit sets the search path for the linker. The latter tells the linker to bake that search path into the executable.
Cheers,
Lawrence
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mailman.ic.ac.uk/pipermail/firedrake/attachments/20151113/de6720f2/attachment.sig>
More information about the firedrake
mailing list