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

need sudo for make install in quickstart #18

Open
michaeldsmith opened this issue Oct 7, 2022 · 0 comments
Open

need sudo for make install in quickstart #18

michaeldsmith opened this issue Oct 7, 2022 · 0 comments

Comments

@michaeldsmith
Copy link
Collaborator

if I use this cmake command

cmake -DKDU_LIBRARY=/usr/local/lib/libkdu.a \
      -DKDU_AUX_LIBRARY=/usr/local/lib/libkdu_aux.a \
      -DKDU_INCLUDE_DIR=/usr/local/include/kakadu \
      -DCMAKE_INSTALL_PREFIX=/usr/local \
      ..

using make install in the quick start tries to copy files to

/usr/local/lib/libkduc.so
/usr/local/include/kduc.h

but it permission is denied as shown in the output below:

Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/libkduc.so
CMake Error at cmake_install.cmake:52 (file):
  file INSTALL cannot copy file "/home/ubuntu/kduc/build/libkduc.so" to
  "/usr/local/lib/libkduc.so": Permission denied.
make: *** [Makefile:110: install] Error 1

This is fixed by instead using sudo make install

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