0
我是ubuntu新手,目前我正在使用vmware工作站在windows 7上使用它。 我需要通過終端上的C程序訪問CPU使用率,所以我想在glibtop庫上使用glibtop_get_cpu()
函數。我只是在我的代碼寫#include <glibtop.h>
與「海灣合作委員會」在終端編譯它,和它說在ubuntu上安裝glibtop
fatal error: glibtop.h: No such file or directory
compilation terminated.
我試着用它來安裝庫:
sudo apt-get install liblib2.0-dev
但終端說:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libglib2.0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
However the following packages replace it:
libglib2.0-0 libglib2.0-bin
E: Package 'libglib2.0-dev' has no installation candidate
有關於此的任何想法?