vysheng / tg

telegram-cli
GNU General Public License v2.0
6.5k stars 1.54k forks source link

Error while doing make #1594

Open M4RC0Sx opened 5 years ago

M4RC0Sx commented 5 years ago

Hi, I am installing it on debian and have followed all steps. When I try to make I get this error. I haven't modified any files. I am not able to fix that and get telegram-cli running.

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: warning: control reaches end of non-void function [-Wreturn-type] RSA_GETTER(n); ^~~~~~ tgl/crypto/rsa_pem_openssl.c: In function ‘TGLC_rsa_e’: tgl/crypto/rsa_pem_openssl.c:53:1: warning: control reaches end of non-void function [-Wreturn-type] RSA_GETTER(e);

Paulchen232 commented 5 years ago

Do this: sudo apt-get install libssl1.0-dev and redo make.

nsklyarov commented 5 years ago

Do this: sudo apt-get install libssl1.0-dev and redo make.

doesnt work on ubuntu 19.04

E: Package 'libssl1.0-dev' has no installation candidate
TheTitanrain commented 5 years ago

doesnt work on ubuntu 19.04

Working on Ubuntu 19.04. Something wrong with your repos maybe.

Paulchen232 commented 5 years ago

Try this:

https://packages.debian.org/jessie/libssl-dev

Paulchen232 commented 5 years ago

Or make this on and redo it. Screenshot from 2019-08-27 07-06-35