I have a project that needs to be built like this:
./meson.py build
./ninja -C build install
This works well. The only thing is: the binaries are stored in (on Linux): /usr/local/bin
. This would require me to input root password because the binaries are being written to a root-access folder, aka /usr/local/bin
.
Is there a way to install the binaries in some folder in the /user/home
directory, so that no passwords are required?
The thing is that everytime I debug and change something, the rebuilding process forces the binaries to be rewritten, which asks for password everytime.
This is what I tried:
- Create a folder in home:
mkdir ~/projectbin
- Use ninja with
--prefix
option:./ninja -C --prefix=~/projectbin install
This throws an error of unrecognized option --prefix
.
I am new to ninja
and meson
, please let me know how to resolve this.