fcitx5五笔大字集选词框是方框是缺什么?

要编译什么出来?不是直接访问用户码表吗?
FAIL了…

cargo run --release
    Updating crates.io index
  Downloaded strsim v0.11.1
  Downloaded colorchoice v1.0.3
  Downloaded is_terminal_polyfill v1.70.1
  Downloaded anstyle-query v1.1.2
  Downloaded utf8parse v0.2.2
  Downloaded heck v0.5.0
  Downloaded anstyle v1.0.10
  Downloaded shlex v1.3.0
  Downloaded clap_lex v0.7.4
  Downloaded anstream v0.6.18
  Downloaded anstyle-parse v0.2.6
  Downloaded quote v1.0.40
  Downloaded clap_derive v4.5.32
  Downloaded clap v4.5.37
  Downloaded unicode-ident v1.0.18
  Downloaded proc-macro2 v1.0.95
  Downloaded cc v1.2.20
  Downloaded clap_builder v4.5.37
  Downloaded syn v2.0.101
  Downloaded 19 crates (936.5KiB) in 1m 19s
   Compiling proc-macro2 v1.0.95
   Compiling unicode-ident v1.0.18
   Compiling utf8parse v0.2.2
   Compiling shlex v1.3.0
   Compiling anstyle-query v1.1.2
   Compiling colorchoice v1.0.3
   Compiling is_terminal_polyfill v1.70.1
   Compiling anstyle v1.0.10
   Compiling heck v0.5.0
   Compiling clap_lex v0.7.4
   Compiling strsim v0.11.1
   Compiling anstyle-parse v0.2.6
   Compiling cc v1.2.20
   Compiling anstream v0.6.18
   Compiling clap_builder v4.5.37
   Compiling quote v1.0.40
   Compiling syn v2.0.101
   Compiling fcitx5-tabledict v0.1.3 (/home/dudu/fcitx5-tabledict)
warning: fcitx5-tabledict@0.1.3: src/tabledict.cc:1:9: fatal error: libime/table/tablebaseddictionary.h: No such file or directory
warning: fcitx5-tabledict@0.1.3:     1 | #include<libime/table/tablebaseddictionary.h>
warning: fcitx5-tabledict@0.1.3:       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: fcitx5-tabledict@0.1.3: compilation terminated.
error: failed to run custom build command for `fcitx5-tabledict v0.1.3 (/home/dudu/fcitx5-tabledict)`

Caused by:
  process didn't exit successfully: `/home/dudu/fcitx5-tabledict/target/release/build/fcitx5-tabledict-95a23353185886a1/build-script-build` (exit status: 1)
  --- stdout
  OUT_DIR = Some(/home/dudu/fcitx5-tabledict/target/release/build/fcitx5-tabledict-8036650a8c250f58/out)
  OPT_LEVEL = Some(3)
  TARGET = Some(x86_64-unknown-linux-gnu)
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CXX_x86_64-unknown-linux-gnu
  CXX_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CXX_x86_64_unknown_linux_gnu
  CXX_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CXX
  HOST_CXX = None
  cargo:rerun-if-env-changed=CXX
  CXX = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(false)
  CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
  cargo:rerun-if-env-changed=CXXFLAGS
  CXXFLAGS = None
  cargo:rerun-if-env-changed=HOST_CXXFLAGS
  HOST_CXXFLAGS = None
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64_unknown_linux_gnu
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64-unknown-linux-gnu
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CARGO_ENCODED_RUSTFLAGS = Some()
  cargo:warning=src/tabledict.cc:1:9: fatal error: libime/table/tablebaseddictionary.h: No such file or directory
  cargo:warning=    1 | #include<libime/table/tablebaseddictionary.h>
  cargo:warning=      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=compilation terminated.

  --- stderr


  error occurred in cc-rs: command did not execute successfully (status code exit status: 1): LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/usr/include/LibIME" "-I" "/usr/include/Fcitx5/Utils" "-Wall" "-Wextra" "-std=c++17" "-o" "/home/dudu/fcitx5-tabledict/target/release/build/fcitx5-tabledict-8036650a8c250f58/out/48d3f1b29a630f4c-tabledict.o" "-c" "src/tabledict.cc"


warning: build failed, waiting for other jobs to finish...

装一下libimetable-dev这个包。

还有:

cargo run --release
   Compiling fcitx5-tabledict v0.1.3 (/home/dudu/fcitx5-tabledict)
warning: fcitx5-tabledict@0.1.3: In file included from src/tabledict.cc:1:
warning: fcitx5-tabledict@0.1.3: /usr/include/LibIME/libime/table/tablebaseddictionary.h:21:10: fatal error: fcitx-utils/connectableobject.h: No such file or directory
warning: fcitx5-tabledict@0.1.3:    21 | #include <fcitx-utils/connectableobject.h>
warning: fcitx5-tabledict@0.1.3:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: fcitx5-tabledict@0.1.3: compilation terminated.
error: failed to run custom build command for `fcitx5-tabledict v0.1.3 (/home/dudu/fcitx5-tabledict)`

Caused by:
  process didn't exit successfully: `/home/dudu/fcitx5-tabledict/target/release/build/fcitx5-tabledict-95a23353185886a1/build-script-build` (exit status: 1)
  --- stdout
  OUT_DIR = Some(/home/dudu/fcitx5-tabledict/target/release/build/fcitx5-tabledict-8036650a8c250f58/out)
  OPT_LEVEL = Some(3)
  TARGET = Some(x86_64-unknown-linux-gnu)
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CXX_x86_64-unknown-linux-gnu
  CXX_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CXX_x86_64_unknown_linux_gnu
  CXX_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CXX
  HOST_CXX = None
  cargo:rerun-if-env-changed=CXX
  CXX = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(false)
  CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
  cargo:rerun-if-env-changed=CXXFLAGS
  CXXFLAGS = None
  cargo:rerun-if-env-changed=HOST_CXXFLAGS
  HOST_CXXFLAGS = None
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64_unknown_linux_gnu
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64-unknown-linux-gnu
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CARGO_ENCODED_RUSTFLAGS = Some()
  cargo:warning=In file included from src/tabledict.cc:1:
  cargo:warning=/usr/include/LibIME/libime/table/tablebaseddictionary.h:21:10: fatal error: fcitx-utils/connectableobject.h: No such file or directory
  cargo:warning=   21 | #include <fcitx-utils/connectableobject.h>
  cargo:warning=      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=compilation terminated.

  --- stderr


  error occurred in cc-rs: command did not execute successfully (status code exit status: 1): LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/usr/include/LibIME" "-I" "/usr/include/Fcitx5/Utils" "-Wall" "-Wextra" "-std=c++17" "-o" "/home/dudu/fcitx5-tabledict/target/release/build/fcitx5-tabledict-8036650a8c250f58/out/48d3f1b29a630f4c-tabledict.o" "-c" "src/tabledict.cc"


这个在libfcitx5utils-dev包里。另外你可以自己在https://packages.debian.org/ 查,或者用那个啥命令来着。

好,我一个一个找一下,缺什么就装什么,看来要比较多的dev.

这个看不出来是缺什么:

cargo run --release
   Compiling fcitx5-tabledict v0.1.3 (/home/dudu/fcitx5-tabledict)
warning: fcitx5-tabledict@0.1.3: In file included from /usr/include/LibIME/libime/core/dictionary.h:12,
warning: fcitx5-tabledict@0.1.3:                  from /usr/include/LibIME/libime/table/tablebaseddictionary.h:24,
warning: fcitx5-tabledict@0.1.3:                  from src/tabledict.cc:1:
warning: fcitx5-tabledict@0.1.3: /usr/include/LibIME/libime/core/lattice.h:110:9: warning: identifier 'requires' is a keyword in C++20 [-Wc++20-compat]
warning: fcitx5-tabledict@0.1.3:   110 |         requires(std::is_base_of_v<LatticeNode, T>)
warning: fcitx5-tabledict@0.1.3:       |         ^~~~~~~~
warning: fcitx5-tabledict@0.1.3: In file included from /usr/include/LibIME/libime/core/lattice.h:26:
warning: fcitx5-tabledict@0.1.3: /usr/include/Fcitx5/Utils/fcitx-utils/stringutils.h: In function 'bool fcitx::stringutils::isConcatOf(std::string_view, std::string_view, std::string_view)':
warning: fcitx5-tabledict@0.1.3: /usr/include/Fcitx5/Utils/fcitx-utils/stringutils.h:49:59: error: 'using std::string_view = class std::basic_string_view<char>' {aka 'class std::basic_string_view<char>'} has no member named 'starts_with'
warning: fcitx5-tabledict@0.1.3:    49 |     return str.size() == sub1.size() + sub2.size() && str.starts_with(sub1) &&
warning: fcitx5-tabledict@0.1.3:       |                                                           ^~~~~~~~~~~
warning: fcitx5-tabledict@0.1.3: /usr/include/Fcitx5/Utils/fcitx-utils/stringutils.h:50:16: error: 'using std::string_view = class std::basic_string_view<char>' {aka 'class std::basic_string_view<char>'} has no member named 'ends_with'
warning: fcitx5-tabledict@0.1.3:    50 |            str.ends_with(sub2);
warning: fcitx5-tabledict@0.1.3:       |                ^~~~~~~~~
warning: fcitx5-tabledict@0.1.3: /usr/include/LibIME/libime/core/lattice.h: At global scope:
warning: fcitx5-tabledict@0.1.3: /usr/include/LibIME/libime/core/lattice.h:110:23: error: expected identifier
warning: fcitx5-tabledict@0.1.3:   110 |         requires(std::is_base_of_v<LatticeNode, T>)
warning: fcitx5-tabledict@0.1.3:       |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: fcitx5-tabledict@0.1.3: /usr/include/LibIME/libime/core/lattice.h:110:51: error: expected unqualified-id before ')' token
warning: fcitx5-tabledict@0.1.3:   110 |         requires(std::is_base_of_v<LatticeNode, T>)
warning: fcitx5-tabledict@0.1.3:       |                                                   ^
warning: fcitx5-tabledict@0.1.3: /usr/include/LibIME/libime/core/lattice.h:111:5: error: expected constructor, destructor, or type conversion before 'T'
warning: fcitx5-tabledict@0.1.3:   111 |     T &as() {
warning: fcitx5-tabledict@0.1.3:       |     ^
warning: fcitx5-tabledict@0.1.3: /usr/include/LibIME/libime/core/lattice.h:116:23: error: expected identifier
warning: fcitx5-tabledict@0.1.3:   116 |         requires(std::is_base_of_v<LatticeNode, T>)
warning: fcitx5-tabledict@0.1.3:       |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: fcitx5-tabledict@0.1.3: /usr/include/LibIME/libime/core/lattice.h:116:51: error: expected unqualified-id before ')' token
warning: fcitx5-tabledict@0.1.3:   116 |         requires(std::is_base_of_v<LatticeNode, T>)
warning: fcitx5-tabledict@0.1.3:       |                                                   ^
warning: fcitx5-tabledict@0.1.3: /usr/include/LibIME/libime/core/lattice.h:117:11: error: expected constructor, destructor, or type conversion before 'T'
warning: fcitx5-tabledict@0.1.3:   117 |     const T &as() const {
warning: fcitx5-tabledict@0.1.3:       |           ^
warning: fcitx5-tabledict@0.1.3: /usr/include/LibIME/libime/core/lattice.h: In member function 'libime::SentenceResult libime::LatticeNode::toSentenceResult(float) const':
warning: fcitx5-tabledict@0.1.3: /usr/include/LibIME/libime/core/lattice.h:154:14: error: 'std::ranges' has not been declared
warning: fcitx5-tabledict@0.1.3:   154 |         std::ranges::reverse(result);
warning: fcitx5-tabledict@0.1.3:       |              ^~~~~~
warning: fcitx5-tabledict@0.1.3: /usr/include/LibIME/libime/core/lattice.h: In member function 'std::string libime::SentenceResult::toString() const':
warning: fcitx5-tabledict@0.1.3: /usr/include/LibIME/libime/core/lattice.h:171:18: error: 'std::views' has not been declared
warning: fcitx5-tabledict@0.1.3:   171 |             std::views::transform([](const auto &item) -> const std::string & {
warning: fcitx5-tabledict@0.1.3:       |                  ^~~~~
error: failed to run custom build command for `fcitx5-tabledict v0.1.3 (/home/dudu/fcitx5-tabledict)`

Caused by:
  process didn't exit successfully: `/home/dudu/fcitx5-tabledict/target/release/build/fcitx5-tabledict-95a23353185886a1/build-script-build` (exit status: 1)
  --- stdout
  OUT_DIR = Some(/home/dudu/fcitx5-tabledict/target/release/build/fcitx5-tabledict-8036650a8c250f58/out)
  OPT_LEVEL = Some(3)
  TARGET = Some(x86_64-unknown-linux-gnu)
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CXX_x86_64-unknown-linux-gnu
  CXX_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CXX_x86_64_unknown_linux_gnu
  CXX_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CXX
  HOST_CXX = None
  cargo:rerun-if-env-changed=CXX
  CXX = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(false)
  CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
  cargo:rerun-if-env-changed=CXXFLAGS
  CXXFLAGS = None
  cargo:rerun-if-env-changed=HOST_CXXFLAGS
  HOST_CXXFLAGS = None
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64_unknown_linux_gnu
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=CXXFLAGS_x86_64-unknown-linux-gnu
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CARGO_ENCODED_RUSTFLAGS = Some()
  cargo:warning=In file included from /usr/include/LibIME/libime/core/dictionary.h:12,
  cargo:warning=                 from /usr/include/LibIME/libime/table/tablebaseddictionary.h:24,
  cargo:warning=                 from src/tabledict.cc:1:
  cargo:warning=/usr/include/LibIME/libime/core/lattice.h:110:9: warning: identifier 'requires' is a keyword in C++20 [-Wc++20-compat]
  cargo:warning=  110 |         requires(std::is_base_of_v<LatticeNode, T>)
  cargo:warning=      |         ^~~~~~~~
  cargo:warning=In file included from /usr/include/LibIME/libime/core/lattice.h:26:
  cargo:warning=/usr/include/Fcitx5/Utils/fcitx-utils/stringutils.h: In function 'bool fcitx::stringutils::isConcatOf(std::string_view, std::string_view, std::string_view)':
  cargo:warning=/usr/include/Fcitx5/Utils/fcitx-utils/stringutils.h:49:59: error: 'using std::string_view = class std::basic_string_view<char>' {aka 'class std::basic_string_view<char>'} has no member named 'starts_with'
  cargo:warning=   49 |     return str.size() == sub1.size() + sub2.size() && str.starts_with(sub1) &&
  cargo:warning=      |                                                           ^~~~~~~~~~~
  cargo:warning=/usr/include/Fcitx5/Utils/fcitx-utils/stringutils.h:50:16: error: 'using std::string_view = class std::basic_string_view<char>' {aka 'class std::basic_string_view<char>'} has no member named 'ends_with'
  cargo:warning=   50 |            str.ends_with(sub2);
  cargo:warning=      |                ^~~~~~~~~
  cargo:warning=/usr/include/LibIME/libime/core/lattice.h: At global scope:
  cargo:warning=/usr/include/LibIME/libime/core/lattice.h:110:23: error: expected identifier
  cargo:warning=  110 |         requires(std::is_base_of_v<LatticeNode, T>)
  cargo:warning=      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/usr/include/LibIME/libime/core/lattice.h:110:51: error: expected unqualified-id before ')' token
  cargo:warning=  110 |         requires(std::is_base_of_v<LatticeNode, T>)
  cargo:warning=      |                                                   ^
  cargo:warning=/usr/include/LibIME/libime/core/lattice.h:111:5: error: expected constructor, destructor, or type conversion before 'T'
  cargo:warning=  111 |     T &as() {
  cargo:warning=      |     ^
  cargo:warning=/usr/include/LibIME/libime/core/lattice.h:116:23: error: expected identifier
  cargo:warning=  116 |         requires(std::is_base_of_v<LatticeNode, T>)
  cargo:warning=      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/usr/include/LibIME/libime/core/lattice.h:116:51: error: expected unqualified-id before ')' token
  cargo:warning=  116 |         requires(std::is_base_of_v<LatticeNode, T>)
  cargo:warning=      |                                                   ^
  cargo:warning=/usr/include/LibIME/libime/core/lattice.h:117:11: error: expected constructor, destructor, or type conversion before 'T'
  cargo:warning=  117 |     const T &as() const {
  cargo:warning=      |           ^
  cargo:warning=/usr/include/LibIME/libime/core/lattice.h: In member function 'libime::SentenceResult libime::LatticeNode::toSentenceResult(float) const':
  cargo:warning=/usr/include/LibIME/libime/core/lattice.h:154:14: error: 'std::ranges' has not been declared
  cargo:warning=  154 |         std::ranges::reverse(result);
  cargo:warning=      |              ^~~~~~
  cargo:warning=/usr/include/LibIME/libime/core/lattice.h: In member function 'std::string libime::SentenceResult::toString() const':
  cargo:warning=/usr/include/LibIME/libime/core/lattice.h:171:18: error: 'std::views' has not been declared
  cargo:warning=  171 |             std::views::transform([](const auto &item) -> const std::string & {
  cargo:warning=      |                  ^~~~~

  --- stderr


  error occurred in cc-rs: command did not execute successfully (status code exit status: 1): LC_ALL="C" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/usr/include/LibIME" "-I" "/usr/include/Fcitx5/Utils" "-Wall" "-Wextra" "-std=c++17" "-o" "/home/dudu/fcitx5-tabledict/target/release/build/fcitx5-tabledict-8036650a8c250f58/out/48d3f1b29a630f4c-tabledict.o" "-c" "src/tabledict.cc"

哦,fcitx5要求的C++版本更新了。你git pull一下,或者手动把build.rs里的c++17改成c++20。

谢谢!改了后还有:

cargo run --release
   Compiling fcitx5-tabledict v0.1.3 (/home/dudu/fcitx5-tabledict)
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> src/main.rs:1:1
  |
1 | #![feature(iter_intersperse)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `fcitx5-tabledict` (bin "fcitx5-tabledict") due to 1 previous error

诶,我这个东西居然要用Rust nightly的吗……

这要怎么搞?

git pull。我改了一下写法。

这个要什么参数吗?怎么半天不动的?

dudu@debian:~/fcitx5-tabledict$ git pull

你的网不好……

这算是失败了吗?

git pull
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 8 (delta 5), reused 7 (delta 4), pack-reused 0 (from 0)
展开对象中: 100% (8/8), 803 字节 | 401.00 KiB/s, 完成.
来自 https://github.com/lilydjwg/fcitx5-tabledict
   dd7e5e3..455fa6e  master     -> origin/master
更新 dd7e5e3..455fa6e
错误:您对下列文件的本地修改将被合并操作覆盖:
	build.rs
请在合并前提交或储藏您的修改。
正在终止

是不是刚才改过build.rs后不能git pull?

修改过所以冲突了。你git checkout .把修改丢弃掉先。

我改回去后再git pull

git pull
更新 dd7e5e3..455fa6e
Fast-forward
 build.rs    | 2 +-
 src/cmd.rs  | 8 ++++++--
 src/main.rs | 2 --
 3 files changed, 7 insertions(+), 5 deletions(-)

更新好了。你再cargo run --release试试?

cargo run --release
   Compiling fcitx5-tabledict v0.1.3 (/home/dudu/fcitx5-tabledict)
error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "-m64" "<1 object files omitted>" "-Wl,--as-needed" "-Wl,-Bdynamic" "-lreadline" "-Wl,-Bstatic" "-ltabledict" "-Wl,-Bdynamic" "-lstdc++" "-lIMETable" "-Wl,-Bstatic" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-*.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/home/dudu/fcitx5-tabledict/target/release/deps/rustczsQFK2/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/dudu/fcitx5-tabledict/target/release/build/fcitx5-tabledict-8036650a8c250f58/out" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/dudu/fcitx5-tabledict/target/release/deps/fcitx5_tabledict-ae2ba7c88930000d" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/x86_64-linux-gnu-ld.bfd: cannot find -lreadline: No such file or directory
          collect2: error: ld returned 1 exit status
          

error: could not compile `fcitx5-tabledict` (bin "fcitx5-tabledict") due to 1 previous error

装一下readline的库,包名大概是libreadline-dev。

显示已有:

dudu@debian:~/fcitx5-tabledict$ sudo apt install libreadline
libreadline-dev  libreadline8t64  
dudu@debian:~/fcitx5-tabledict$ sudo apt install libreadline8t64 
libreadline8t64 已经是最新版 (8.3-4)。         
摘要:                    
  升级:0,安装:0,卸载:0,不升级:1