fastogt / fastonosql

FastoNoSQL is a crossplatform Redis, Memcached, SSDB, LevelDB, RocksDB, UnQLite, LMDB, ForestDB, Pika, Dynomite, KeyDB GUI management tool.
https://fastonosql.com
GNU General Public License v3.0
1.18k stars 96 forks source link

Building prefix should not be /usr/local by default without sudo #70

Closed XVilka closed 5 years ago

XVilka commented 5 years ago

If you follow https://github.com/fastogt/fastonosql/wiki/Build instructions it by default tries to install into /usr/local on Linux and doesn't asking for sudo. The best option is to use ~/.local/bin by default if the user is not root: https://unix.stackexchange.com/questions/316765/which-distributions-have-home-local-bin-in-path

topilski commented 5 years ago

Hey, some libraries should be in /usr/local cmake lookup

XVilka commented 5 years ago

For CMake, there’s CMAKE_INSTALL_PREFIX:

$ cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local ..
topilski commented 5 years ago

Cool but not interesting. We have a lot of projects where common library used.

XVilka commented 5 years ago

See also https://stackoverflow.com/questions/12075371/cmake-find-library-custom-library-location