Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imported target from netcdf-c not found when installed in a non-system location #102

Open
stonecoldhughes opened this issue Mar 6, 2021 · 0 comments

Comments

@stonecoldhughes
Copy link

stonecoldhughes commented Mar 6, 2021

To report a non-security related issue, please provide:

Version: latest
Environment: ubuntu 18.04 bionic
Descripton:

I want to build netcdf-cxx4 libraries without anything being installed in a system location, i.e., without sudo.

successfully built netcdf-c with the following commands:

cd ~/netcdf-c ; mkdir build ; cd build
cmake -DENABLE_DAP=OFF -DCMAKE_INSTALL_PREFIX=install ..
make && make ./install

attempted to build netcdf-cxx-4 with the prefix path set to point to the location of nc-config and netCDFConfig.cmake:

cd netcdf-cxx4 ; mkdir build ; cd build
cmake -DCMAKE_PREFIX_PATH=~/netcdf-c/build ..

The output of the cmake invocation can be found here:

cmake_output.txt

Line 14 indicates that "netcdf" was found

make

The output of the make invocation can be found here:

make_output.txt

Line 49 indicates that "netcdf" was not found

  • the version of the software with which you are encountering an issue
  • environmental information (i.e. Operating System, compiler info, java version, python version, etc.)
  • a description of the issue with the steps needed to reproduce it

If you have a general question about the software, please view our Suggested Support Process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant