Skip to main content
Improved formatting
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 267

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:

# lets assume all other prerequisites are compiled already
# and staged/installed to $HOME/opt

# libutempter (http://freecode.com/projects/libutempter)
# URL : ftp://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-1.1.5.tar.bz2
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

# tmux (http://tmux.sourceforge.net/)
# URL : git://git.code.sf.net/p/tmux/tmux-code
git clone git://git.code.sf.net/p/tmux/tmux-code tmux
cd tmux
sh autogen.sh

CFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/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" \
./configure --enable-static

CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
LDFLAGS="-static -L$HOME/opt/include -L$HOME/opt/usr/include -L$HOME/opt/include/ncurses -L$HOME/opt/lib -L$HOME/opt/usr/lib" \
make

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

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

UPDATE: Jan 30,I updated env vars and flags, ldd reports no shared libs, but tmux still can't show login name via logname :(.

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:

# lets assume all other prerequisites are compiled already
# and staged/installed to $HOME/opt

# libutempter (http://freecode.com/projects/libutempter)
# URL : ftp://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-1.1.5.tar.bz2
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

# tmux (http://tmux.sourceforge.net/)
# URL : git://git.code.sf.net/p/tmux/tmux-code
git clone git://git.code.sf.net/p/tmux/tmux-code tmux
cd tmux
sh autogen.sh

CFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/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" \
./configure --enable-static

CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
LDFLAGS="-static -L$HOME/opt/include -L$HOME/opt/usr/include -L$HOME/opt/include/ncurses -L$HOME/opt/lib -L$HOME/opt/usr/lib" \
make

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

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

UPDATE: Jan 30, updated env vars and flags, ldd reports no shared libs, but tmux still can't show login name via logname :(

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:

# lets assume all other prerequisites are compiled already
# and staged/installed to $HOME/opt

# libutempter (http://freecode.com/projects/libutempter)
# URL : ftp://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-1.1.5.tar.bz2
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

# tmux (http://tmux.sourceforge.net/)
# URL : git://git.code.sf.net/p/tmux/tmux-code
git clone git://git.code.sf.net/p/tmux/tmux-code tmux
cd tmux
sh autogen.sh

CFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/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" \
./configure --enable-static

CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
LDFLAGS="-static -L$HOME/opt/include -L$HOME/opt/usr/include -L$HOME/opt/include/ncurses -L$HOME/opt/lib -L$HOME/opt/usr/lib" \
make

But tmux still can't report login name via logname.

I can't install packages (no root access).

I updated env vars and flags, ldd reports no shared libs, but tmux still can't show login name via logname.

Improved formatting
Source Link

  logname: no login name
logname: no login name

  # lets assume all other prerequisites are compiled already
  # and staged/installed to $HOME/opt

  # libutempter (http://freecode.com/projects/libutempter)
  # URL : ftp://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-1.1.5.tar.bz2
  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

  # tmux (http://tmux.sourceforge.net/)
  # URL : git://git.code.sf.net/p/tmux/tmux-code
  git clone git://git.code.sf.net/p/tmux/tmux-code tmux
  cd tmux
  sh autogen.sh

  CFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
  CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/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" \
  ./configure --enable-static

  CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
  LDFLAGS="-static -L$HOME/opt/include -L$HOME/opt/usr/include -L$HOME/opt/include/ncurses -L$HOME/opt/lib -L$HOME/opt/usr/lib" \
  make
# lets assume all other prerequisites are compiled already
# and staged/installed to $HOME/opt

# libutempter (http://freecode.com/projects/libutempter)
# URL : ftp://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-1.1.5.tar.bz2
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

# tmux (http://tmux.sourceforge.net/)
# URL : git://git.code.sf.net/p/tmux/tmux-code
git clone git://git.code.sf.net/p/tmux/tmux-code tmux
cd tmux
sh autogen.sh

CFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/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" \
./configure --enable-static

CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
LDFLAGS="-static -L$HOME/opt/include -L$HOME/opt/usr/include -L$HOME/opt/include/ncurses -L$HOME/opt/lib -L$HOME/opt/usr/lib" \
make

  logname: no login name

  # lets assume all other prerequisites are compiled already
  # and staged/installed to $HOME/opt

  # libutempter (http://freecode.com/projects/libutempter)
  # URL : ftp://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-1.1.5.tar.bz2
  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

  # tmux (http://tmux.sourceforge.net/)
  # URL : git://git.code.sf.net/p/tmux/tmux-code
  git clone git://git.code.sf.net/p/tmux/tmux-code tmux
  cd tmux
  sh autogen.sh

  CFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
  CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/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" \
  ./configure --enable-static

  CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
  LDFLAGS="-static -L$HOME/opt/include -L$HOME/opt/usr/include -L$HOME/opt/include/ncurses -L$HOME/opt/lib -L$HOME/opt/usr/lib" \
  make
logname: no login name
# lets assume all other prerequisites are compiled already
# and staged/installed to $HOME/opt

# libutempter (http://freecode.com/projects/libutempter)
# URL : ftp://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-1.1.5.tar.bz2
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

# tmux (http://tmux.sourceforge.net/)
# URL : git://git.code.sf.net/p/tmux/tmux-code
git clone git://git.code.sf.net/p/tmux/tmux-code tmux
cd tmux
sh autogen.sh

CFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/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" \
./configure --enable-static

CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
LDFLAGS="-static -L$HOME/opt/include -L$HOME/opt/usr/include -L$HOME/opt/include/ncurses -L$HOME/opt/lib -L$HOME/opt/usr/lib" \
make
compilation procedure updated, issue still there
Source Link
zais
  • 103
  • 1
  • 8

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:

  # lets assume all other prerequisites are compiled already
  # and staged/installed to $HOME/opt

  # libutempter (http://freecode.com/projects/libutempter)
  # URL : ftp://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-1.1.5.tar.bz2
  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

  # libeventtmux (http://libeventtmux.orgsourceforge.net/)
  # URL : httpsgit://sourceforgegit.code.sf.net/projects/levent/files/libeventp/libevent-2.0tmux/libevent-2.0.22tmux-stable.tar.gzcode
  tar -xzvf libevent-2.0.22-stable.tar.gz
 git cdclone libevent-2git://git.0code.22-stable
  sf.net/configure --prefix=$HOMEp/opt --disabletmux/tmux-sharedcode tmux
  makecd tmux
  makesh installautogen.sh

  # tmuxCFLAGS="-I$HOME/opt/include (http:-I$HOME/opt/tmux.sourceforge.netusr/)
  # URL :include http:/-I$HOME/downloads.sourceforge.netopt/tmuxinclude/tmux-1.9a.tar.gz
  tar xzvfncurses" tmux-1.9a.tar.gz\
  cd tmuxCPPFLAGS="-1.9a
  .I$HOME/configureopt/include CFLAGS="-I$HOME/opt/usr/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" \
  ./configure --enable-static

  CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
  LDFLAGS="-static -L$HOME/opt/include -L$HOME/opt/usr/include -L$HOME/opt/include/ncurses -L$HOME/opt/lib -L$HOME/opt/usr/lib" make\
  cp tmux $HOME/opt/bin/make

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

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

UPDATE: Jan 30, updated env vars and flags, ldd reports no shared libs, but tmux still can't show login name via logname :(

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://freecode.com/projects/libutempter)
  # URL : ftp://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-1.1.5.tar.bz2
  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 : https://sourceforge.net/projects/levent/files/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz
  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://tmux.sourceforge.net/)
  # URL : http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz
  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).

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:

  # lets assume all other prerequisites are compiled already
  # and staged/installed to $HOME/opt

  # libutempter (http://freecode.com/projects/libutempter)
  # URL : ftp://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-1.1.5.tar.bz2
  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

  # tmux (http://tmux.sourceforge.net/)
  # URL : git://git.code.sf.net/p/tmux/tmux-code
  git clone git://git.code.sf.net/p/tmux/tmux-code tmux
  cd tmux
  sh autogen.sh

  CFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
  CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/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" \
  ./configure --enable-static

  CPPFLAGS="-I$HOME/opt/include -I$HOME/opt/usr/include -I$HOME/opt/include/ncurses" \
  LDFLAGS="-static -L$HOME/opt/include -L$HOME/opt/usr/include -L$HOME/opt/include/ncurses -L$HOME/opt/lib -L$HOME/opt/usr/lib" \
  make

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

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

UPDATE: Jan 30, updated env vars and flags, ldd reports no shared libs, but tmux still can't show login name via logname :(

Source Link
zais
  • 103
  • 1
  • 8
Loading