rime / home

Rime::Home is home to Rime users and developers
https://rime.im
4.27k stars 231 forks source link

Solus编译安装ibus-rime,到最后出现的这个问题,不知道如何解决,请帮忙看看 #347

Open HoraceCheung opened 5 years ago

HoraceCheung commented 5 years ago
[100%] Linking C executable ibus-engine-rime
/usr/bin/ld: warning: libmarisa.so.0, needed by /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Trie::io_size() const'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Trie::reverse_lookup(marisa::Agent&) const'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Agent::set_query(char const*)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Trie::size() const'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Trie::build(marisa::Keyset&, int)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Trie::lookup(marisa::Agent&) const'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Trie::clear()'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Trie::Trie()'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Keyset::Keyset()'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Agent::Agent()'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Trie::~Trie()'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Trie::predictive_search(marisa::Agent&) const'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::operator<<(std::ostream&, marisa::Trie const&)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Keyset::clear()'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Agent::set_query(unsigned long)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Trie::map(void const*, unsigned long)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Trie::common_prefix_search(marisa::Agent&) const'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Keyset::push_back(char const*, unsigned long, float)'
/usr/bin/ld: /usr/lib64/gcc/x86_64-solus-linux/8/../../../../lib64/librime.so: undefined reference to `marisa::Agent::~Agent()'
collect2: 錯誤:ld 回傳 1
make[3]: *** [CMakeFiles/ibus-engine-rime.dir/build.make:116: ibus-engine-rime] Error 1
make[3]: Leaving directory '/home/horace/Downloads/ibus-rime/build'
make[2]: *** [CMakeFiles/Makefile2:73: CMakeFiles/ibus-engine-rime.dir/all] Error 2
make[2]: Leaving directory '/home/horace/Downloads/ibus-rime/build'
make[1]: *** [Makefile:84: all] Error 2
make[1]: Leaving directory '/home/horace/Downloads/ibus-rime/build'
make: *** [Makefile:15: ibus-engine-rime] Error 2

已安装librime和marisa-trie。Solus下面没有libmarisa这个包,但是感觉问题就是出在这个上面,请问有什么解决方法吗?

lotem commented 5 years ago

log 不完整。看不出原因。

Prcuvu commented 5 years ago

Solus Budgie 默认不支持 /usr/local 目录。 手动编译安装 marisa-trie 时,建议执行如下命令:

autoreconf -i
./configure --prefix=/usr --host=x86_64-solus-linux
make
sudo make install
GZGavinZhao commented 2 years ago

已加至官方软件库,安装即可:

sudo eopkg it ibus-rime