gcc无法找到共享库libisl.so [英] gcc unable to find shared library libisl.so

查看:1636
本文介绍了gcc无法找到共享库libisl.so的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在操作系统为CentOS的群集上本地安装了gcc版本5.1,而我没有root访问权限(因此我不能使用任何命令,例如'sudo'). (安装的全局gcc版本为4.4).我还修改了path变量,以在path变量的开头包含本地版本的路径.以前,当我尝试使用全局版本安装boost时,它可以正常工作.但是现在,当我尝试安装boost时,它显示以下错误:

/users/home/head/cmp/soft/sft/gcc/bin/../libexec/gcc/x86_64-unknown-linux-gnu/5.1.0/cc1: error while loading shared libraries: libisl.so.10: cannot open shared object file: No such file or directory

任何有关解决此问题的想法将受到高度赞赏.

解决方案

按照 https://上的说明进行操作gcc.gnu.org/wiki/InstallingGCC

特别是,不要在某些非标准路径中手动安装ISL,因为GCC需要在运行时找到其共享库.

最简单的解决方案是使用download_prerequisites脚本将GMP,MPFR,MPC和ISL源代码添加到GCC源树中,这将使GCC自动为您构建它们并静态链接它们. /p>

I installed gcc version 5.1 locally on a cluster having OS as CentOS where I dont have root access (so i cant use any commands like 'sudo'). (The global gcc version installed is 4.4). I also modified the path variable to include the path to my local version at the beginning of the path variable. Before, when I was trying to install boost using the global version, it worked fine. But now, when I try to install boost, it shows the following error:

/users/home/head/cmp/soft/sft/gcc/bin/../libexec/gcc/x86_64-unknown-linux-gnu/5.1.0/cc1: error while loading shared libraries: libisl.so.10: cannot open shared object file: No such file or directory

Any ideas on how to fix this will be highly appreciated.

解决方案

Follow the instructions at https://gcc.gnu.org/wiki/InstallingGCC

Specifically, don't install ISL manually in some non-standard path, because GCC needs to find its shared libraries at run-time.

The simplest solution is to use the download_prerequisites script to add the GMP, MPFR, MPC and ISL source code to the GCC source tree, which will cause GCC to build them for you automatically, and link to them statically.

这篇关于gcc无法找到共享库libisl.so的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆