
ソースからworkraveをインストールするにはどうすればよいですか?
github からソースをクローンしました:
git clone https://github.com/rcaelers/workrave.git
cd workrave
使用すべきだと書かれた INSTALL ファイルがありますが、./configure; make; make install
これは古いようです。設定ファイルはありません。boforehand を使用する必要があることがわかりましたautogen.sh
。
sudo apt-get install autopoint intltool libxtst-dev glib-2.0 python-cheetah glibmm-2.4 gtkmm-2.4
./autogen.sh
./configure
make
次の警告で停止します:
In file included from UnixInputMonitorFactory.cc:38:0:
XScreenSaverMonitor.hh:27:38: fatal error: X11/extensions/scrnsaver.h: No such file or directory
#include <X11/extensions/scrnsaver.h>
^
compilation terminated.
いくつかのパッケージが不足している可能性があります。必要なパッケージを見つける方法と、コンパイルする方法を教えてください。
答え1
不足しているファイルは、
apt-file update
apt-file find scrnsaver.h
その結果
libxss-dev: /usr/include/X11/extensions/scrnsaver.h
また、そのパッケージのデバッグシンボルも必要です。
apt-cache search libxtst|grep dbg
apt-cache search libxss|grep dbg
だからこうなるだろlibxtst6-dbg
うlibxss1-dbg
これはうまく動作します:
sudo apt-get install autopoint intltool libxtst-dev glib-2.0 python-cheetah \
glibmm-2.4 gtkmm-2.4 libxss-dev libxtst6-dbg libxext6-dbg libxss1-dbg
./autogen.sh
./configure
make
sudo make install