No root permission to install tmux

1. Install the libevent library, go to the official website to download the corresponding library files, and then unzip

    $ cd libevent-2.1.11-stable

    $ ./configure --prefix=/home/zhiyangh/usr/lib/libevent

    $ make && make install

 

2. Install tmux

    Libevent library needs to be specified at the time of installation

    $ LIBEVENT_PATH=/home/zhiyangh/usr/lib/libevent

    $ ./configure --prefix=/home/zhiyangh/usr/lib/tmux CFLAGS="-I$LIBEVENT_PATH/include" LDFLAGS="-L$LIBEVENT_PATH/lib"

    $  make && make install

 

3. tmux this time to run the installation directory ./tmux still can not find the report

    ./tmux: error while loading shared libraries: libevent-2.1.so.7: cannot open shared object file: No such file or directory

    Libevent need to be installed to configure the environment variables which go

    E.g:

    In ~ / .bashrc which is written on export LD_LIBRARY_PATH = / home / zhiyangh / usr / lib / libevent / lib /: $ LD_LIBRARY_PATH

 

Guess you like

Origin www.cnblogs.com/kent-hu/p/11608080.html