Open Vungo0510 opened 8 years ago
is the make step done? Please change dir (cd) to your tg folder then show result of:
pwd
ls bin
i have the same Problem im in my tg folder i cant find a bin Folder :(
This is what worked on High Sierra as of Sept 2018:
brew install libconfig readline lua libevent jansson openssl
export EXTRA_CFLAGS="-I/opt/local/include"
export EXTRA_CXXFLAGS="-I/opt/local/include"
export EXTRA_LDFLAGS="-L/opt/local/lib"
export CFLAGS="-I/usr/local/include -I/usr/local/Cellar/readline/7.0.5/include -I/usr/local/opt/openssl/include"
export LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/readline/7.0.5/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
env CC=clang CFLAGS=$CFLAGS LDFLAGS=$LDFLAGS LUA=/usr/local/bin/lua5.3 LUA_INCLUDE=-I/usr/local/include/lua5.3 LUA_LIB=-llua-5.3
./configure
make clean && make
Consider running
brew outdated
to see if some of the relevant packages can be updated.
The versions of your libraries will probably be different, make sure the includes point to existing folders.
I am running Mac OS Catalina and received this:
lua-tg.c:664:27: error: unused function 'get_peer' [-Werror,-Wunused-function] static inline tgl_peer_t *get_peer (const char *s) { ^ 1 error generated. make: *** [objs/lua-tg.o] Error 1
https://github.com/vysheng/tg/issues/1132#issuecomment-329936207
make
I tried to install telegram cli by using the following steps:
cd ~/Downloads git clone --recursive https://github.com/vysheng/tg.git cd tg brew install libconfig readline lua python libevent jansson openssl brew link --force openssl brew link --force readline export CFLAGS="-I/usr/local/include -I/usr/local/Cellar/readline/6.3.8/include" export LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/readline/6.3.8/lib" ./configure && make env CC=clang CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib LUA=/usr/local/bin/lua52 LUA_INCLUDE=-I/usr/local/include/lua52 LUA_LIB=-llua-5.2 ./configure && make
But when I tried to run it by calling bin/telegram-cli -k tg-server.pub it gives the error "-bash: bin/telegram-cli: No such file or directory". Same happen if I replace bin/telegram-cli by ./telegram-cli.
Am I missing any steps?