我在自己的路径中安装了gcc5.3,$ HOME / gcc / gcc5.3.0。 并成功构建项目。但在运行时,发生了这个错误:
../../lightgbm: /usr/lib64/libgomp.so.1: version `GOMP_4.0' not found (required by ../../lightgbm)
../../lightgbm: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ../../lightgbm)
../../lightgbm: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by ../../lightgbm)
../../lightgbm: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ../../lightgbm)
../../lightgbm: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ../../lightgbm)
../../lightgbm: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by ../../lightgbm)
../../lightgbm: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.19' not found (required by ../../lightgbm)
和LD_LIBRARY_PATH也设置了。 $ HOME / GCC / gcc5.3.0 / lib中
和命令:ldd lightgbm
./lightgbm: /usr/lib64/libgomp.so.1: version `GOMP_4.0' not found (required by ./lightgbm) ./lightgbm: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./lightgbm) ./lightgbm: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by ./lightgbm) ./lightgbm: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ./lightgbm) ./lightgbm: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./lightgbm) ./lightgbm: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by ./lightgbm) ./lightgbm: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.19' not found (required by ./lightgbm)
linux-vdso.so.1 => (0x00007ffcc077d000)
/$LIB/libonion.so => /lib64/libonion.so (0x00007f773717d000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f7736d5c000)
libm.so.6 => /lib64/libm.so.6 (0x00007f7736ad8000)
libgomp.so.1 => /usr/lib64/libgomp.so.1 (0x00007f77368cb000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f77366b5000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7736498000)
libc.so.6 => /lib64/libc.so.6 (0x00007f7736104000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7737062000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f7735f00000)
librt.so.1 => /lib64/librt.so.1 (0x00007f7735cf8000)
如何更改lddstd ++。so.6库路径到$ HOME / gcc / gcc5.3.0 / lib?
感谢您的帮助!
答案 0 :(得分:0)
我通过<execution>
<id>install-feature</id>
<phase>prepare-package</phase>
<goals>
<goal>install-feature</goal>
</goals>
<configuration>
<features>
<acceptLicense>true</acceptLicense>
</features>
</configuration>
</execution>