在编辑CC时遇见的错误,如下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
Openwrt的编译环境一直报错,请大家帮忙看看我改怎么解决,谢谢!急 kksil@ubuntu:~/wrt$ make menuconfig Checking 'working-make'... ok. Checking 'case-sensitive-fs'... ok. Checking 'getopt'... ok. Checking 'fileutils'... ok. Checking 'working-gcc'... ok. Checking 'working-g++'... ok. Checking 'ncurses'... ok. Checking 'zlib'... ok. Checking 'gawk'... ok. Checking 'unzip'... ok. Checking 'bzip2'... ok. Checking 'perl'... ok. Checking '/usr/bin/python2.7'... ok. Checking 'wget'... ok. Checking 'git'... ok. Checking 'gnutar'... ok. Checking 'svn'... ok. Checking 'libssl'... failed. Checking 'openssl'... ok. Checking 'gnu-find'... ok. Checking 'getopt-extended'... ok. Checking 'file'... ok. Checking 'non-root'... ok. Build dependency: Please install the openssl library (with development headers) Prerequisite check failed. Use FORCE=1 to override. make: *** [tmp/.prereq-build] Error 1 |
这个问题和openssl的版本有关系,网上有几种方法,我试了删除libssl-dev软件包有效的解决了问题,但我觉得这不是最好的方法。。。
sudo apt purge libssl-dev
另外 有人说安装软件包就行,但是我测试了不行,在此也写出来
1 2 |
sudo apt-get install libssl-dev sudo apt-get install libssl1.0.0 |
libssl的版本号可以 用 apt-cache search libssl查到