Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
install tg/telegram-cli on linux
#!/bin/bash
git clone --recursive https://github.com/vysheng/tg.git && \
cd tg && \
sudo apt-get update -y && sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev make && \
./configure && \
make && \
cd ./bin && \
./telegram-cli
@greg-benner-klick-sensei
tgl/crypto/rsa_pem_openssl.c: In function ‘TGLC_rsa_new’:
tgl/crypto/rsa_pem_openssl.c:41:6: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’
   ret->e = unwrap_bn (TGLC_bn_new ());
      ^~
tgl/crypto/rsa_pem_openssl.c: In function ‘TGLC_rsa_n’:
tgl/crypto/rsa_pem_openssl.c:52:1: error: control reaches end of non-void function [-Werror=return-type]
 RSA_GETTER(n);
 ^~~~~~~~~~
tgl/crypto/rsa_pem_openssl.c: In function ‘TGLC_rsa_e’:
tgl/crypto/rsa_pem_openssl.c:53:1: error: control reaches end of non-void function [-Werror=return-type]
 RSA_GETTER(e);
 ^~~~~~~~~~
cc1: all warnings being treated as errors
Makefile.tgl:20: recipe for target 'objs/crypto/rsa_pem_openssl.o' failed
make: *** [objs/crypto/rsa_pem_openssl.o] Error 1

@greg-benner-klick-sensei

Not sure what the errors mean, something about Crypto keys. This is on Ubuntu 18.04

@vlaktion
Copy link

vlaktion commented Aug 2, 2018

decided to problemm?

@MMMolY
Copy link

MMMolY commented Aug 23, 2018

@vlaktion @greg-benner-klick-sensei
Problem can be fixed by adding --disable-openssl when configure.
./configure --disable-openssl

but first of all u must install libgcrypt11-dev, also zlib1g-dev is needed for successful process

So all must be like dat one (@ianklatzco):

#!/bin/bash
git clone --recursive https://github.com/vysheng/tg.git && \
cd tg && \
sudo apt-get update -y && sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev zlib1g-dev libgcrypt11-dev make && \
./configure --disable-openssl && \
make && \
cd ./bin && \
./telegram-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment