jeudi 29 janvier 2015

Compile static tmux with libutempter support


I'd like to fix issue for tmux when it can't report username via logname:



logname: no login name

I'm using steps below:



# libutempter (http://ift.tt/15VAiTW)
# URL : http://ift.tt/1z7FqAt
tar xvfj libutempter-1.1.5.tar.bz2
cd libutempter-1.1.5
vi Makefile
grep 'DESTDIR =' Makefile
---
DESTDIR = /home/xxxxxx/opt

make
make install

# libevent (http://libevent.org)
# URL : http://ift.tt/15VAiU2
tar -xzvf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure --prefix=$HOME/opt --disable-shared
make
make install

# tmux (http://ift.tt/uMygmv)
# URL : http://ift.tt/15VAgvo
tar xzvf tmux-1.9a.tar.gz
cd tmux-1.9a
./configure CFLAGS="-I$HOME/opt/include -I$HOME/opt/include/ncurses" LDFLAGS="-L$HOME/opt/lib -L$HOME/opt/include/ncurses -L$HOME/opt/include -L$HOME/opt/usr/lib"
CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/include/ncurses" LDFLAGS="-static -L$HOME/opt/include -L$HOME/opt/include/ncurses -L$HOME/opt/lib -L$HOME/opt/usr/lib" make
cp tmux $HOME/opt/bin/

But tmux still can't report login name via logname :(


And i can't install packages (no root access).



Aucun commentaire:

Enregistrer un commentaire