ubuntu下进行三板斧安装时的错误

来源:互联网 发布:php this调用private 编辑:程序博客网 时间:2024/05/21 22:39

linux安装三板斧:

1. tar -zxvf xxx.tar.gz

2. cd xx

3. ./configure

4. make

5. cd src && make install


因为开始安装时是为了搭建SSH互信,其他什么软件都没有安。所以在解压源文件目录后,进行make操作,报错如下:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package make is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'make' has no installation candidate


这里可以执行sudo apt-get update命令更新软件库资源




所以再运行  sudo apt-get install make build-essential

(这里查询到build-essential的作用类似于自动加载当前软件依赖的软件包,当然未必全部能为我们所用。

参见http://blog.163.com/zhangjinqing1234@126/blog/static/307302602009538137113)

之后即可成功安装make。


然后在运行make之后竟然报错: /bin/sh 1 cc not found

经查询,是因为没有安装gcc什么的。参见http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_24090923.html

sudo apt-get install gcc build-essential(等好长时间)



然后又出现jemalloc.h: No such file or directory:

make MALLOC=libc 参见http://blog.csdn.net/limiteewaltwo/article/details/8960566


 


然后在运行make之后竟然报错: /bin/sh 1 cc not found

经查询,是因为没有安装gcc什么的。参见http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_24090923.html

所以再运行  sudo apt-get install make build-essential

(这里查询到build-essential的作用类似于自动加载当前软件依赖的软件包,当然未必全部能为我们所用。

参见http://blog.163.com/zhangjinqing1234@126/blog/static/307302602009538137113)

0 0