NCAR / lrose-core

Core C/C++ code for LROSE.
https://www.eol.ucar.edu/content/lidar-radar-open-software-environment
Other
92 stars 51 forks source link

ld: cannot find -lNcxx #25

Closed juhi24 closed 6 years ago

juhi24 commented 6 years ago

I'm trying to install the radx-20171016.src release on ubuntu 16.04. I succesfully installed the supplied netcdf in the default directory using build_and_install_netcdf, but it seems ld still cannot find a library called Ncxx. What is this library actually? The build command I used was:

$ LD_LIBRARY_PATH=/usr/local/lrose/lib sudo build/build_auto -p radx -x /usr/local
mjskier commented 6 years ago

libNcxx is the C++ interface to Netcdf.

The problem is that environment variables don't survive sudo.

Try this: LD_LIBRARY_PATH=/tmp/foo sudo printenv | grep LD_LIBR You won't find LD_LIBRARY_PATH

You could try the -E option of sudo (--preserve-env). But honestly, building things with sudo isn't exactly considered a "best practice"

Bruno.

On Mon, Nov 20, 2017 at 10:50 AM, Jussi Tiira notifications@github.com wrote:

I'm trying to install the radx-20171016.src release on ubuntu 16.04. I succesfully installed the supplied netcdf in the default directory using build_and_install_netcdf, but it seems ld still cannot find a library called Ncxx. What is this library actually? The build command I used was:

$ LD_LIBRARY_PATH=/usr/local/lrose/lib sudo build/build_auto -p radx -x /usr/local

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NCAR/lrose-core/issues/25, or mute the thread https://github.com/notifications/unsubscribe-auth/ABXnmQ1aH0c745KSjhUn9WU_rQohkxf4ks5s4bvSgaJpZM4Qkph5 .

juhi24 commented 6 years ago

Thanks. I used sudo since I wasn't sure if the script would also try to install the compiled result. I eventually got the binary release working, so I stopped trying to compile. This issue can be closed.