rime / ibus-rime

【中州韻】Rime for Linux/IBus
https://rime.im
GNU General Public License v3.0
717 stars 103 forks source link

centos build librime fail #128

Open mochouaaaaa opened 3 years ago

mochouaaaaa commented 3 years ago
➜  librime git:(7d9ad77) ✗ sudo make 
cmake . -Bbuild \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_MERGED_PLUGINS=OFF \
-DENABLE_EXTERNAL_PLUGINS=ON
-- The C compiler identification is GNU 8.3.1
-- The CXX compiler identification is GNU 8.3.1
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.66.0
-- Found the following Boost libraries:
--   filesystem
--   regex
--   system
CMake Error at CMakeLists.txt:78 (find_package):
  By not providing "FindCapnProto.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "CapnProto", but CMake did not find one.

  Could not find a package configuration file provided by "CapnProto" with
  any of the following names:

    CapnProtoConfig.cmake
    capnproto-config.cmake

  Add the installation prefix of "CapnProto" to CMAKE_PREFIX_PATH or set
  "CapnProto_DIR" to a directory containing one of the above files.  If
  "CapnProto" provides a separate development package or SDK, be sure it has
  been installed.

-- Configuring incomplete, errors occurred!
➜  librime git:(7d9ad77) ✗ uname -r
4.18.0-240.22.1.el8_3.x86_64

➜  librime git:(7d9ad77) ✗ cat /etc/centos-release
AlmaLinux release 8.3 (Purple Manul)

属实没看懂什么意思

GZGavinZhao commented 2 years ago

你好像没装capnproto

sbwcwso commented 2 years ago

同样的问题,已经装了 capnproto ,还是会报错。

n0rbury commented 1 month ago

试了一下,用Cap'n Proto官网的安装命令装了一下就好了

curl -O https://capnproto.org/capnproto-c++-1.0.2.tar.gz
tar zxf capnproto-c++-1.0.2.tar.gz
cd capnproto-c++-1.0.2
./configure
make -j6 check
sudo make install