如何修复 libpapi.so.* 在 运行 (py)COMPSs with tracing 时无法打开共享对象文件?

How to fix libpapi.so.* cannot open shared object file when running (py)COMPSs with tracing?

当我尝试 运行 某些启用了跟踪系统的 COMPS 应用程序时,出现以下错误:

libpapi.so.5.3.0.0 cannot open shared object file 

我正在使用 ubuntu 并且我已经从带有 apt-get 的软件包中安装了 COMPS。要启动我使用的应用程序:

runcompss --tracing --lang=python name_application.py

我已经安装了 PAPI 库:

apt-get install papi-tools libpapi-dev

编辑:我使用的是 1.4 版

跟踪系统找不到您的 PAPI 安装,因为包是预编译的。

要解决这个问题,您有两个选择:从源代码构建并安装跟踪包,或者从源代码构建并安装整个 COMPS 框架。推荐的方法是构建整个框架以确保干净安装。但是,如果您不想或不能安装完整的依赖项堆栈,您可以只修补跟踪系统。

注:说明中假设安装目录为/opt/COMPSs

构建所有框架(推荐)

确保完全删除以前的安装

sudo apt-get remove compss-* (removes only packages)
sudo apt-get purge compss-* (removes also config files)

安装依赖项

sudo apt-get update

# Build dependencies
sudo apt-get -y --force-Yes install maven subversion

# Runtime dependencies
sudo apt-get -y --force-Yes install openjdk-8-jdk graphviz xdg-utils

# Bindings-common-dependencies
sudo apt-get -y --force-Yes install libtool automake build-essential

# Python-binding dependencies
sudo apt-get -y --force-Yes install python-dev

# C-binding dependencies
sudo apt-get -y --force-Yes install libxml2-dev libboost-serialization-dev libboost-iostreams-dev csh

# Extrae dependencies
sudo apt-get -y --force-Yes install libxml2 gfortran

下载源:

svn co http://compss.bsc.es/svn/releases/compss/1.4

构建并安装

cd ./1.4/builders
sudo -E ./buildlocal /opt/COMPSs

仅构建并安装跟踪系统Extrae

删除之前的 Extrae

sudo rm -r /opt/COMPSs/Dependencies/extrae

安装 Extrae 依赖项

# Extrae dependencies
sudo apt-get -y --force-Yes install libxml2 gfortran

下载源:

svn co http://compss.bsc.es/svn/releases/compss/1.4

构建并安装 extrae

cd ./1.4/dependencies/extrae/
sudo ./install /opt/COMPSs/Dependencies/extrae