我正在尝试在 Ubuntu 上构建pantheon 基本欢迎程序,但它在构建阶段一直失败,因为它找不到accountsservice
. 但是accountsservice显然已经安装了。. 我正在按照页面上给出的构建说明进行操作。
操作系统信息:
Linux newbie-VirtualBox 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
介子构建命令行:
meson build --prefix=/usr
介子输出:
newbie@newbie-VirtualBox:~/greeter$ meson build --prefix=/usr
The Meson build system
Version: 0.45.1
Source dir: /home/newbie/greeter
Build dir: /home/newbie/greeter/build
Build type: native build
Project name: io.elementary.greeter
Native C compiler: cc (gcc 7.4.0 "cc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0")
Native Vala compiler: valac (valac 0.40.17)
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency glib-2.0 found: YES 2.56.4
src/meson.build:1:0: ERROR: Native dependency 'accountsservice' not found
A full log can be found at /home/newbie/greeter/build/meson-logs/meson-log.txt
的输出/home/newbie/greeter/build/meson-logs/meson-log.txt
Code:
class MesonSanityCheck : Object { }
Compiler stdout:
Compilation succeeded - 1 warning(s)
Compiler stderr:
warning: --output and -o have no effect when -C or --ccode is set
Native Vala compiler: valac (valac 0.40.17)
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Determining dependency 'glib-2.0' with pkg-config executable '/usr/bin/pkg-config'
Native dependency glib-2.0 found: YES 2.56.4
Determining dependency 'accountsservice' with pkg-config executable '/usr/bin/pkg-config'
src/meson.build:1:0: ERROR: Native dependency 'accountsservice' not found
最奇怪的部分是accountsservice
已经安装到其最新版本。
newbie@newbie-VirtualBox:~/greeter$ sudo apt install accountsservice
Reading package lists... Done
Building dependency tree
Reading state information... Done
accountsservice is already the newest version (0.6.45-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
另外,如果我做一个locate accountsservice
/usr/lib/accountsservice
/usr/lib/accountsservice/accounts-daemon
/usr/lib/x86_64-linux-gnu/libaccountsservice.so.0
/usr/lib/x86_64-linux-gnu/libaccountsservice.so.0.0.0
/usr/share/doc/accountsservice
/usr/share/doc/gir1.2-accountsservice-1.0
/usr/share/doc/libaccountsservice0
/usr/share/doc/accountsservice/README
/usr/share/doc/accountsservice/TODO
/usr/share/doc/accountsservice/changelog.Debian.gz
/usr/share/doc/accountsservice/copyright
/usr/share/doc/gir1.2-accountsservice-1.0/changelog.Debian.gz
/usr/share/doc/gir1.2-accountsservice-1.0/copyright
/usr/share/doc/libaccountsservice0/changelog.Debian.gz
/usr/share/doc/libaccountsservice0/copyright
/var/lib/dpkg/info/accountsservice.conffiles
/var/lib/dpkg/info/accountsservice.list
/var/lib/dpkg/info/accountsservice.md5sums
/var/lib/dpkg/info/accountsservice.postinst
/var/lib/dpkg/info/accountsservice.postrm
/var/lib/dpkg/info/accountsservice.prerm
/var/lib/dpkg/info/gir1.2-accountsservice-1.0.list
/var/lib/dpkg/info/gir1.2-accountsservice-1.0.md5sums
/var/lib/dpkg/info/libaccountsservice0:amd64.list
/var/lib/dpkg/info/libaccountsservice0:amd64.md5sums
/var/lib/dpkg/info/libaccountsservice0:amd64.shlibs
/var/lib/dpkg/info/libaccountsservice0:amd64.symbols
/var/lib/dpkg/info/libaccountsservice0:amd64.triggers
到底是怎么回事 ?为什么当它明显存在时meson
找不到?accountsservice
从您的链接:
所以
sudo apt install accountsservice
需要sudo apt install libaccountsservice-dev
。