centos - 在 Centos 6 上安装 Telegram CLI

标签 centos telegram

我按照 github 的安装说明进行操作直到 ./configure命令,但在 make 命令上失败。错误如下:

root@webserver [~/tg]# make
make: *** No rule to make target `tgl/scheme.tl', needed by `auto/scheme.tl'.  Stop.

这是 ./configure 之后的结果
root@webserver [~/tg]# ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for sqrt in -lm... yes
checking for library containing clock_gettime... -lrt
checking for library containing backtrace... none required
checking for event_base_new in -levent... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking event2/event.h usability... no
checking event2/event.h presence... no
checking for event2/event.h... no
checking event.h usability... yes
checking event.h presence... yes
checking for event.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking whether compiling and linking against OpenSSL works... yes
checking if zlib is wanted... yes
checking for inflateEnd in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for rl_save_prompt in -lreadline... yes
checking for libconfig... enabled
checking for config_init in -lconfig... yes
checking for liblua... enabled
checking for lua... /usr/bin/lua
checking if /usr/bin/lua is a Lua interpreter... yes
checking for lua version... 5.1
checking for lua platform... unknown
checking for lua script directory... ${prefix}/share/lua/5.1
checking for lua module directory... ${exec_prefix}/lib/lua/5.1
checking if LUA_VERSION is defined... yes
checking lua.h usability... yes
checking lua.h presence... yes
checking for lua.h... yes
checking lualib.h usability... yes
checking lualib.h presence... yes
checking for lualib.h... yes
checking lauxlib.h usability... yes
checking lauxlib.h presence... yes
checking for lauxlib.h... yes
checking luaconf.h usability... yes
checking luaconf.h presence... yes
checking for luaconf.h... yes
checking for Lua header version... 5.1
checking if Lua header version matches 5.1... yes
checking if LUA_VERSION is defined... yes
checking for library containing exp... none required
checking for library containing dlopen... -ldl
checking for library containing lua_load... -llua-5.1
checking for python... enabled
checking for python build information...
checking for python3.5... no
checking for python3.4... no
checking for python3.3... no
checking for python3.2... no
checking for python3.1... no
checking for python3... no
checking for python2.7... no
checking for python2.6... python2.6
checking for main in -lpython2.6... yes
 results of the Python check:
  Binary:      python2.6
  Library:     python2.6
  Include Dir: /usr/include/python2.6
checking for libjansson... enabled
checking for json_array_set_new in -ljansson... yes
checking progname... default
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking mach/mach.h usability... no
checking mach/mach.h presence... no
checking for mach/mach.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/file.h usability... yes 
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... no
checking for alarm... yes
checking for endpwent... yes
checking for memset... yes
checking for memmove... yes
checking for mkdir... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strndup... yes
checking for uname... yes
checking for __builtin_bswap32... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged

这是 Telegram 文件夹的内容
root@webserver [~/tg]# ls
./              dep/         lua-tg.h                README.es
../             event-old.h  m4_ax_check_openssl.m4  README-LUA
auto/           gentoo/      m4_ax_check_zlib.m4     README.md
ax_lua.m4       .git/        m4-ax_gcc_builtin.m4    README-PY.md
ax_python.m4    .gitignore   main.c                  rpm/
bin/            .gitmodules  Makefile                server.pub
bootstrap*      interface.c  Makefile.in             start-telegram-daemon*
CHANGELOG       interface.h  Makefile.tgl            telegram-cli-  cygwin.patch
config.h        json-tg.c    Makefile.tl-parser      telegram-cli.spec
config.h.in     json-tg.h    mime.types@             telegram-daemon*
config.log      libs/        objs/                   telegram.h
config.sample   LICENSE      python-tg.c             test.lua
config.status*  LICENSE.h    python-tg.h             tgl/
configure*      loop.c       python-types.c          tg-server.pub
configure.ac    loop.h       python-types.h          tg-test.py
debian/         lua-tg.c     README-Cygwin.md*       .travis.yml

顺便说一下,bin & tgl 文件夹是空的。任何人都可以请帮助如何安装这个?我对centos命令不熟悉

最佳答案

你确定你做了一个递归 git clone ( git clone --recursive ) 吗?

发生此问题是因为 tgl 文件夹为空。

关于centos - 在 Centos 6 上安装 Telegram CLI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35381496/

相关文章:

node.js - telegram 连续发送相同的消息

java - TDLib - 通过他的电话号码向其他人发送消息

php - php74-syspaths 的用途是什么?php74-syspaths 不仅与 SCL 结合使用吗?

python - 如何验证通过 Telegram 的 Web 应用程序收到的数据

telegram - ifttt:将消息(文本、照片和视频)从 Telegram 重定向到电子邮件

MySQL 5.1升级到5.5报错

android - Telegram 源代码编译错误

hadoop - 在Centos 7上安装hadoop但命令不起作用

linux - 在centos上配置以太网或wifi互联网

apache - 使用 Virtualmin 设置 Apache 后无法访问网站