tmate-io / tmate-ssh-server

tmate SSH server
https://tmate.io
Other
626 stars 146 forks source link

my solutions for installing tmate server in centos 6.7 x64 #65

Closed ppdouble closed 4 years ago

ppdouble commented 7 years ago

I just install tmate server on my machine for personal use and for fun. so if you just install tmate server for fun, you might try these solutions. I am not ensure that it will work for you. Hope it is helpful for finding solutions.

  1. configure error "msgpack >= 1.2.0 not found"

my solution: I just set enviroment variable PKG_CONFIG_PATH after installing msgpack. Set PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/lib/pkgconfig"

  1. error when execute make
In file included from /usr/include/libssh/libssh.h:67:0,
                 from tmate.h:7,
                 from client.c:35:
/usr/include/netdb.h:591:16: error: expected identifier or '(' before '[' token
   int __unused([5]);

my solution: I just comment this line in /usr/include/netdb.h

  1. error when execute make
    error: ‘EVBUFFER_EOL_LF’ undeclared (first use in this function)

my solution: I just follow solution here.

wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar xzvf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure && make && make install && ldconfig
  1. errors when execute make

    /lib64/libtinfo.so.5: could not read symbols: Invalid operation
    collect2: error: ld returned 1 exit status

    my solution: I just add -ltinfo to Makefile LIBS = -lutil -lssh -lmsgpack -lncurses -L/usr/local/lib -levent -lrt -lresolv -ltinfo

  2. errors when execute make

tmate-ssh-server.o: In function `prepare_ssh':
/mnt/datadisk1/software/tmate-slave/tmate-ssh-server.c:263: undefined reference to `ssh_set_log_callback'
tmate-ssh-server.o: In function `auth_pubkey_cb':
/mnt/datadisk1/software/tmate-slave/tmate-ssh-server.c:119: undefined reference to `ssh_pki_export_pubkey_base64'
tmate-ssh-server.o: In function `client_bootstrap':
/mnt/datadisk1/software/tmate-slave/tmate-ssh-server.c:194: undefined reference to `ssh_set_server_callbacks'
/mnt/datadisk1/software/tmate-slave/tmate-ssh-server.c:199: undefined reference to `ssh_set_auth_methods'
/mnt/datadisk1/software/tmate-slave/tmate-ssh-server.c:206: undefined reference to `ssh_event_new'
/mnt/datadisk1/software/tmate-slave/tmate-ssh-server.c:207: undefined reference to `ssh_event_add_session'
/mnt/datadisk1/software/tmate-slave/tmate-ssh-server.c:210: undefined reference to `ssh_event_dopoll'
collect2: error: ld returned 1 exit status
make: *** [tmate-slave] Error 1

my solution: I just add -L/usr/lib to Makefile LIBS = -lutil -lssh -lmsgpack -lncurses -L/usr/lib -L/usr/local/lib -levent -lrt -lresolv -ltinfo

nviennot commented 4 years ago

Thank you for documenting