Skip to content

need sudo for make install in quickstart #18

@michaeldsmith

Description

@michaeldsmith

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions