[firedrake] New Firedrake dependency - libspatialindex
Justin Chang
jychang48 at gmail.com
Fri Nov 13 10:59:30 GMT 2015
Yes that did the trick, thank you very much!
On Fri, Nov 13, 2015 at 1:08 AM, Lawrence Mitchell <
lawrence.mitchell at imperial.ac.uk> wrote:
> 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
>
> _______________________________________________
> firedrake mailing list
> firedrake at imperial.ac.uk
> https://mailman.ic.ac.uk/mailman/listinfo/firedrake
>
>
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the firedrake
mailing list