Closed gongzelong0718 closed 7 years ago
It looks like you're trying to install the icemon binary to a system-wide location without having permission to do so. It's safer to just set the CMAKE_INSTALL_PREFIX
when invoking cmake (e.g. cmake -DCMAKE_INSTALL_PREFIX=$HOME/icemon-install ..
) to install it to a user-local directory.
If I want to install it under /usr rather than $HOME (thought it will mess up my $HOME directory and not good looking) , Can I do sudo cmake -DCMAKE_INSTALL_PREFIX=/usr ..
instead to fix that?
If you want to go down that route, sudo make install
should take of it, otherwise you will generate your entire build directory as root. Still, messing up your $HOME is a lot better than risking messing up your /usr
...
Thanks for your kind help:D
Errors when build icemon on Ubuntu 14.04.