How to install SIGAR on Ubuntu-based Linux?

后端 未结 5 758
温柔的废话
温柔的废话 2021-01-18 08:23

I am using SIGAR in a java project with Maven and Spring. I have the Maven Dependency and Maven Repository included in my pom.xml file, as described in this lin

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-18 08:54

    @aitorhh This actually works, **But had some errors in your code, this works:

    wget https://netcologne.dl.sourceforge.net/project/sigar/sigar/1.6/hyperic-sigar-1.6.4.tar.gz
    tar xvf hyperic-sigar-1.6.4.tar.gz
    cd hyperic-sigar-1.6.4
    
    # INSTALL
    sudo cp sigar-bin/lib/libsigar-`dpkg --print-architecture`-`uname -s | tr '[:upper:]' '[:lower:]'`.so /usr/lib
    

提交回复
热议问题