【问题标题】:Trying to build conf for sshlib2 and get error试图为 sshlib2 构建 conf 并得到错误
【发布时间】:2026-02-23 02:15:01
【问题描述】:

我得到的错误:

root@ubuntu:/home/user/Desktop/libssh2-1.4.3# ./buildconf 
./buildconf: 15: ./buildconf: aclocal:   not found
./buildconf: 16: ./buildconf: autoheader: not found
./buildconf: 21: ./buildconf: autoconf:   not found
./buildconf: 22: ./buildconf: automake:   not found

【问题讨论】:

  • 如果sudo apt-get install build-essentials 没有给你 aclocal 等,然后尝试sudo apt-get install automake(答案中的# 意味着在根提示符下运行命令,使用sudo 允许你从标准用户外壳完成它)

标签: c++ linux ubuntu libssh2


【解决方案1】:

安装 build-essential:

# apt-get install build-essential

【讨论】: