运维系列(9)-- make: *** No targets specified and no makefile found. Stop.解决方法

目录

    • 目录
    • make: * No targets specified and no makefile found. Stop.解决方法
    • 解决/lib64/libc.so.6: version `GLIBC_2.14’ not found
    • glibc 2.15 cannot create regular file `/var/db/Makefile’: Permission denied
    • LD_LIBRARY_PATH shouldn’t contain the current directory when

make: * No targets specified and no makefile found. Stop.解决方法

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz

tar zxvf ncurses-5.6.tar.gz

cd ncurses-5.6/

./configure -prefix=/usr/local -with-shared-without-debug
(./configure -prefix=/public/home/amzhou03/local -with-shared-without-debug
)
make

make install

解决/lib64/libc.so.6: version `GLIBC_2.14’ not found

https://blog.csdn.net/lucky_greenegg/article/details/51199209

libc.so.6(对应glibc 2.15或者更高的),不过最保险的方式就是下载源代码在本地编译一次(有的人实在编译不成功,那也只能从别的地方找一份了)

各个版本的glibc可以从http://ftp.gnu.org/gnu/glibc/找,包括其插件glibc-port

最新到2.20,我保守的选择2.15

对于低版本glibc,还有glibc-linuxthreads-2.x需要编译,可参考很多网上文档,但2.15没有,所以不用了

wget http://ftp.gnu.org/gnu/glibc/glibc-2.15.tar.gz  

wget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz  

tar -xvf  glibc-2.15.tar.gz  

tar -xvf  glibc-ports-2.15.tar.gz  

mv glibc-ports-2.15 glibc-2.15/ports  

mkdir glibc-build-2.15   

cd glibc-build-2.15  

../glibc-2.15/configure  --prefix=/public/home/amzhou03/opt/glibc-2.15

make -j4   

make install

如果提示install成功,去看glibc所在的共享库:

ll /lib64/libc*  

可以看到2.12的旧库文件还在,多了2.15版本的库文件,而且软链接文件全部指向了2.15版本。

-rwxr-xr-x  1 root root 1921096 Aug 30 02:16 /lib64/libc-2.12.so  
-rwxr-xr-x  1 root root 9801632 Sep 25 13:46 /lib64/libc-2.15.so  
lrwxrwxrwx. 1 root root      18 May 19 18:51 /lib64/libcap-ng.so.0 -> libcap-ng.so.0.0.0  
-rwxr-xr-x. 1 root root   18672 Jun 25  2011 /lib64/libcap-ng.so.0.0.0  
lrwxrwxrwx. 1 root root      14 May 19 18:51 /lib64/libcap.so.2 -> libcap.so.2.16  
-rwxr-xr-x  1 root root   19016 Dec  8  2011 /lib64/libcap.so.2.16  
lrwxrwxrwx. 1 root root      19 May 19 18:57 /lib64/libcgroup.so.1 -> libcgroup.so.1.0.40  
-rwxr-xr-x  1 root root   97016 Dec  9  2013 /lib64/libcgroup.so.1.0.40  
-rwxr-xr-x  1 root root  197064 Aug 30 02:16 /lib64/libcidn-2.12.so  
-rwxr-xr-x  1 root root  267972 Sep 25 13:46 /lib64/libcidn-2.15.so  
lrwxrwxrwx  1 root root      15 Sep 25 13:52 /lib64/libcidn.so.1 -> libcidn-2.15.so  
lrwxrwxrwx. 1 root root      17 May 19 18:51 /lib64/libcom_err.so.2 -> libcom_err.so.2.1  
-rwxr-xr-x  1 root root   17256 Nov 22  2013 /lib64/libcom_err.so.2.1  
-rwxr-xr-x  1 root root   40400 Aug 30 02:16 /lib64/libcrypt-2.12.so  
-rwxr-xr-x  1 root root  142947 Sep 25 13:46 /lib64/libcrypt-2.15.so  
lrwxrwxrwx. 1 root root      22 May 19 18:57 /lib64/libcryptsetup.so.1 -> libcryptsetup.so.1.1.0  
-rwxr-xr-x  1 root root   97072 Jun 22  2012 /lib64/libcryptsetup.so.1.1.0  
lrwxrwxrwx  1 root root      16 Sep 25 13:52 /lib64/libcrypt.so.1 -> libcrypt-2.15.so  
lrwxrwxrwx  1 root root      12 Sep 25 13:52 /lib64/libc.so.6 -> libc-2.15.so  

glibc 2.15 cannot create regular file `/var/db/Makefile’: Permission denied

Use glibc 2.17 or even higher version.

LD_LIBRARY_PATH shouldn’t contain the current directory when

[root@localhost opt]# echo $LD_LIBRARY_PATH
:/usr/local/lib
[root@localhost opt]# export LD_LIBRARY_PATH=
[root@localhost opt]# echo $LD_LIBRARY_PATH

[root@localhost opt]# ../glibc-2.15/configure 

你可能感兴趣的:(运维系列(9)-- make: *** No targets specified and no makefile found. Stop.解决方法)