Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ppdouble opened this issue Jan 24, 2017 · 1 comment
Closed

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

ppdouble opened this issue Jan 24, 2017 · 1 comment

Comments

@ppdouble
Copy link

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

  1. 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 nviennot transferred this issue from tmate-io/tmate Oct 13, 2019
@nviennot
Copy link
Member

Thank you for documenting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants