针对您遇到的问题 "centos7 安装 glibc 时报 cannot find -lnss_test2",我们可以按照以下步骤进行排查和解决: 1. 确认错误消息的含义 错误消息 "cannot find -lnss_test2" 表明链接器(ld)在尝试链接一个名为 nss_test2 的库时未能找到它。这通常是因为该库没有安装在系统的库路径中,或者链接器没有被正确配置...
解决方法:说明gcc版本过低,检查第一步,最好使用删除之前gcc版本的方式。 2)、在make install时,报错/usr/bin/ld: cannot find -lnss_test2 解决方法: #修改文件大概128行vim /usr/local/src/glibc-2.28/scripts/test-installation.pl#将 && $name ne "nss_test1" && $name ne "libgcc_s"#改为:&& $nam...
make install 报错: /usr/bin/ld: cannot find -lnss_test2. 解决办法: sed -i '128i\ && $ name ne "nss_test2"' ../scripts/test-installation.pl 将nss_test2 检查 skip掉,重新make install. 2. undefined reference to '_nsl_default_nss@GLIBC_PRIVATE' 解决办法:在configure的时候加上"--...
cd gmp-6.1.0 ./configure make -j4;make install tar -xvf mpc-1.0.3.tar.gz cd mpc-1.0.3 ./configure make -j4;make install tar -xvf mpfr-3.1.4.tar.bz2 cd mprf-3.1.4 ./configure make -j4;make install tar -xvf isl-0.23.tar.gz cd isl-0.23 ./configure make -j4;make install cd...
pl /opt/module/mysql-lib/glibc-2.28/build/ /usr/bin/ld: cannot find -lnss_test2 collect2: error: ld returned 1 exit status Execution of gcc -B/usr/bin/ failed! The script has found some problems with your installation! Please read the FAQ and the README file and check the following...
...LD_SO=ld-linux-x86-64.so.2CC="gcc -B/usr/bin/"/usr/bin/perl scripts/test-installation.pl/opt/tmp/glibc-2.30/build//usr/bin/ld: cannot find -lnss_test2collect2:error: ld returned1exit status # 此编译错误可以无视Executionofgcc -B/usr/bin/ failed! # 此编译错误可以无视Thescript...
/usr/bin/ld: cannot find -lnss_test2 ... LD_SO=ld-linux-x86-64.so.2 CC="gcc -B/usr/bin/" /usr/bin/perl scripts/test-installation.pl /tmp/glibc-2.31/build/ /usr/bin/ld: /lib/../lib64/libnss_nis.so: undefined reference to ...
/usr/bin/ld: cannot find -lnss_test2 collect2: error: ld returned 1 exit status # 此编译错误可以无视 Execution of gcc -B/usr/bin/ failed! # 此编译错误可以无视 The script has found some problems with your installation! Please read the FAQ and the README file and check the following:...
/usr/bin/ld: cannot find -lnss_test2 add $name ne “nss_test2” vim glibc-2.27/scripts/test-installation.pl next if ($build_mathvec == 0 && $name eq "mvec"); if ($name ne "nss_ldap" && $name ne "db1" && $name ne "thread_db" && $name ne "nss_test1" && $name ne "...
glibcxx3.4.25所依托的glibc是glibc-2.28,这个可以通过启动docker模拟的centos8系统来查看 centos7默认的 gcc 版本为 4.8.5,这个版本的gcc 无法编译高版本的glibc 2.28 需要升级gcc到8.2版本 注意:gcc升级到9.2版本是不行的编译的时候报错和glibc2.28不兼容 ...