For some shared machines, we may not have root permissions, so it will be a little troublesome to install the program. In fact, as long as the relevant files are placed in their own directories, the root permission restrictions can be waived.
I installed libevent without root permissions. I just need to specify the installation path to my /home directory through prefix:
./configure --prefix=/home/*&&&/libevent --enable-shared
make
make install
make verify #libevent test, other installations may not have it.
The above is the detailed content of How to install Linux programs without root permissions. For more information, please follow other related articles on the PHP Chinese website!