如何修复通过运行(py)COMPS时libpapi.so。*无法打开共享对象文件? [英] How to fix libpapi.so.* cannot open shared object file when running (py)COMPSs with tracing?

查看:114
本文介绍了如何修复通过运行(py)COMPS时libpapi.so。*无法打开共享对象文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在激活跟踪系统的情况下运行某些COMPSs应用程序时,出现以下错误:

When I try to run some COMPSs application with the tracing system activated I get the following error:

libpapi.so.5.3.0.0 cannot open shared object file 

我正在使用ubuntu,并且已经从软件包中安装了COMPS合适的。要启动该应用程序,我使用:

I am using ubuntu and I have installed COMPSs from the packages with apt-get. To launch the application I use:

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

我已经使用以下方法安装了PAPI库:

I already installed the PAPI libraries with:

apt-get install papi-tools libpapi-dev

编辑:我正在使用1.4版

I am using version 1.4

推荐答案

由于软件包已预编译,因此跟踪系统找不到您的PAPI安装。

The tracing system can not find your PAPI installation because the packages are pre-compiled.

要解决此问题,您有两个选择:从源代码构建和安装跟踪软件包,或者从源代码构建和安装整个COMPSs框架。推荐的方法是构建整个框架,以确保干净安装。但是,如果您不想或无法安装完整的依赖项堆栈,则可以对跟踪系统进行修补。

To solve this you have two options: build and install from source the tracing package or build and install from source the whole COMPSs framework. The recommended way would be to build the whole framework in order to ensure a clean installation. However, you can just patch the tracing system if you don't want to or can't install the full dependencies stack.

注意:这些说明假定安装目录为 / opt / COMPSs

Note: the instructions assume that the installation directory is /opt/COMPSs

构建所有框架(推荐)

确保以前的安装已完全删除

Make sure the previous installation is completely removed

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

Remove previous Extrae

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

安装Extrae依赖项

Install Extrae dependencies

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

下载来源:

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

构建并安装Extrae

Build and install extrae

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

这篇关于如何修复通过运行(py)COMPS时libpapi.so。*无法打开共享对象文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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