hchunhui / librime-lua

Extending RIME with Lua scripts
BSD 3-Clause "New" or "Revised" License
337 stars 43 forks source link

安装问题 #47

Open byte-voyager opened 4 years ago

byte-voyager commented 4 years ago

Create PATH_TO_RIME_USER_DATA_DIR这个PATH_TO_RIME_USER_DATA_DIR在linux是什么目录??

CoelacanthusHex commented 4 years ago

只是代指你的rime配置目录

byte-voyager commented 4 years ago

只是代指你的rime配置目录

我的是ibus-rime ,那么是否就是~/.config/ibus/rime?

CoelacanthusHex commented 4 years ago

Edit:原来ibus-rime还没遵守XDG规范吗……

byte-voyager commented 4 years ago

XDG

我的 ~/.config/ibus/rime/rime.lua

function date_translator(input, seg)
   if (input == "date") then
      --- Candidate(type, start, end, text, comment)
      yield(Candidate("date", seg.start, seg._end, os.date("%Y年%m月%d日"), " 日期"))
   end
end

function single_char_first_filter(input)
   local l = {}
   for cand in input:iter() do
      if (utf8.len(cand.text) == 1) then
         yield(cand)
      else
         table.insert(l, cand)
      end
   end
   for i, cand in ipairs(l) do
      yield(cand)
   end
end

luna_pinyin_simp.custom.yaml

patch:
    'translator/dictionary': luna_pinyin.extended 
    'speller/algebra':
        - erase/^xx$/
        - derive/([ei])n$/$1ng/            # en => eng, in => ing
        - derive/([ei])ng$/$1n/            # eng => en, ing => in
          #    engine:
          #      translators:
          #        - lua_translator@date_translator
          #    'engine/translators/@before 0':
          #       lua_translator@date_translator
 engine/translators/+:
    - lua_translator@date_translator

输入date时候还是没效果, 第一次配置rime插件,已经编译 make install按照README

CoelacanthusHex commented 4 years ago

luna_pinyin_simp.custom.yaml

patch:
    'translator/dictionary': luna_pinyin.extended 
    'speller/algebra':
        - erase/^xx$/
        - derive/([ei])n$/$1ng/            # en => eng, in => ing
        - derive/([ei])ng$/$1n/            # eng => en, ing => in
          #    engine:
          #      translators:
          #        - lua_translator@date_translator
          #    'engine/translators/@before 0':
          #       lua_translator@date_translator
 engine/translators/+:
    - lua_translator@date_translator

你的配置文件没有左对齐,yaml要求同层级缩进使用空格左对齐

byte-voyager commented 4 years ago

luna_pinyin_simp.custom.yaml

patch:
    'translator/dictionary': luna_pinyin.extended 
    'speller/algebra':
        - erase/^xx$/
        - derive/([ei])n$/$1ng/            # en => eng, in => ing
        - derive/([ei])ng$/$1n/            # eng => en, ing => in
          #    engine:
          #      translators:
          #        - lua_translator@date_translator
          #    'engine/translators/@before 0':
          #       lua_translator@date_translator
 engine/translators/+:
    - lua_translator@date_translator

你的配置文件没有左对齐,yaml要求同层级缩进使用空格左对齐

应该不是这个问题吧,我重新对齐了,如下:

patch:
    'translator/dictionary': luna_pinyin.extended 
    'speller/algebra':
        - erase/^xx$/
        - derive/([ei])n$/$1ng/            # en => eng, in => ing
        - derive/([ei])ng$/$1n/            # eng => en, ing => in
          #    engine:
          #      translators:
          #        - lua_translator@date_translator
          #    'engine/translators/@before 0':
          #       lua_translator@date_translator
     engine/translators/+:
        - lua_translator@date_translator

右上角显示Rime is ready 没有报错

CoelacanthusHex commented 4 years ago

可以传一下log吗?

byte-voyager commented 4 years ago

可以传一下log吗?

找不到log的位置, 没查到 Edit: 使用ibus-daemon -v 输出如下:

I0524 22:05:15.703207 15963 registry.cc:14] registering component: dictionary
I0524 22:05:15.703240 15963 registry.cc:14] registering component: reverse_lookup_dictionary
I0524 22:05:15.703275 15963 registry.cc:14] registering component: user_dictionary
I0524 22:05:15.703303 15963 registry.cc:14] registering component: userdb_recovery_task
I0524 22:05:15.703336 15963 gears_module.cc:42] registering components from module 'gears'.
I0524 22:05:15.703363 15963 registry.cc:14] registering component: ascii_composer
I0524 22:05:15.703392 15963 registry.cc:14] registering component: chord_composer
I0524 22:05:15.703420 15963 registry.cc:14] registering component: express_editor
I0524 22:05:15.703450 15963 registry.cc:14] registering component: fluid_editor
I0524 22:05:15.703480 15963 registry.cc:14] registering component: fluency_editor
I0524 22:05:15.703521 15963 registry.cc:14] registering component: key_binder
I0524 22:05:15.703554 15963 registry.cc:14] registering component: navigator
I0524 22:05:15.703593 15963 registry.cc:14] registering component: punctuator
I0524 22:05:15.703617 15963 registry.cc:14] registering component: recognizer
I0524 22:05:15.703649 15963 registry.cc:14] registering component: selector
I0524 22:05:15.703680 15963 registry.cc:14] registering component: speller
I0524 22:05:15.703711 15963 registry.cc:14] registering component: shape_processor
I0524 22:05:15.703744 15963 registry.cc:14] registering component: abc_segmentor
I0524 22:05:15.703778 15963 registry.cc:14] registering component: affix_segmentor
I0524 22:05:15.703810 15963 registry.cc:14] registering component: ascii_segmentor
I0524 22:05:15.703850 15963 registry.cc:14] registering component: matcher
I0524 22:05:15.703886 15963 registry.cc:14] registering component: punct_segmentor
I0524 22:05:15.703923 15963 registry.cc:14] registering component: fallback_segmentor
I0524 22:05:15.703956 15963 registry.cc:14] registering component: echo_translator
I0524 22:05:15.704002 15963 registry.cc:14] registering component: punct_translator
I0524 22:05:15.704030 15963 registry.cc:14] registering component: table_translator
I0524 22:05:15.704062 15963 registry.cc:14] registering component: script_translator
I0524 22:05:15.704094 15963 registry.cc:14] registering component: r10n_translator
I0524 22:05:15.704125 15963 registry.cc:14] registering component: reverse_lookup_translator
I0524 22:05:15.704157 15963 registry.cc:14] registering component: schema_list_translator
I0524 22:05:15.704188 15963 registry.cc:14] registering component: switch_translator
I0524 22:05:15.704221 15963 registry.cc:14] registering component: history_translator
I0524 22:05:15.704250 15963 registry.cc:14] registering component: simplifier
I0524 22:05:15.704279 15963 registry.cc:14] registering component: uniquifier
I0524 22:05:15.704309 15963 registry.cc:14] registering component: charset_filter
I0524 22:05:15.705025 15963 registry.cc:14] registering component: cjk_minifier
I0524 22:05:15.705126 15963 registry.cc:14] registering component: reverse_lookup_filter
I0524 22:05:15.705169 15963 registry.cc:14] registering component: single_char_filter
I0524 22:05:15.705229 15963 registry.cc:14] registering component: shape_formatter
I0524 22:05:15.705277 15963 levers_module.cc:23] registering components from module 'levers'.
I0524 22:05:15.705314 15963 registry.cc:14] registering component: detect_modifications
I0524 22:05:15.705368 15963 registry.cc:14] registering component: installation_update
I0524 22:05:15.705401 15963 registry.cc:14] registering component: workspace_update
I0524 22:05:15.705437 15963 registry.cc:14] registering component: schema_update
I0524 22:05:15.705469 15963 registry.cc:14] registering component: config_file_update
I0524 22:05:15.705535 15963 registry.cc:14] registering component: prebuild_all_schemas
I0524 22:05:15.705595 15963 registry.cc:14] registering component: user_dict_upgrade
I0524 22:05:15.705636 15963 registry.cc:14] registering component: cleanup_trash
I0524 22:05:15.705668 15963 registry.cc:14] registering component: user_dict_sync
I0524 22:05:15.705699 15963 registry.cc:14] registering component: backup_config_files
I0524 22:05:15.705734 15963 registry.cc:14] registering component: clean_old_log_files
I0524 22:05:15.706352 15963 deployment_tasks.cc:80] updating rime installation info.
I0524 22:05:15.706477 15963 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/installation.yaml'.
I0524 22:05:15.707178 15963 deployment_tasks.cc:98] installation info exists. installation id: e1586314-4eb8-4be3-91a1-4453ee0be418
I0524 22:05:15.707281 15963 deployment_tasks.cc:106] sync dir: /home/baloneo/.config/ibus/rime/sync
I0524 22:05:15.707335 15963 deployment_tasks.cc:108] previous distribution: ibus-rime
I0524 22:05:15.707381 15963 deployment_tasks.cc:111] previous distribution version: 1.4.0
I0524 22:05:15.707420 15963 deployment_tasks.cc:114] previous Rime version: 1.5.3
I0524 22:05:15.707518 15963 deployer.cc:114] starting work thread for 3 tasks.
W0524 22:05:15.707985 15963 config_data.cc:62] nonexistent config file '/home/baloneo/.config/ibus/rime/build/ibus_rime.yaml'.
I0524 22:05:15.708021 15975 deployer.cc:83] running deployment tasks:
I0524 22:05:15.708084 15963 deployment_tasks.cc:394] missing build info
W0524 22:05:15.708256 15963 config_data.cc:62] nonexistent config file '/home/baloneo/.config/ibus/rime/ibus_rime.yaml'.
I0524 22:05:15.708320 15963 auto_patch_config_plugin.cc:28] auto-patch ibus_rime:/__patch: ibus_rime.custom:/patch?
I0524 22:05:15.722092 15975 deployment_tasks.cc:160] updating workspace.
I0524 22:05:15.722215 15975 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/default.yaml'.
I0524 22:05:15.727874 15975 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/default.yaml'.
I0524 22:05:15.730299 15975 deployment_tasks.cc:183] updating schemas.
I0524 22:05:15.730331 15975 deployment_tasks.cc:193] schema: luna_pinyin_simp
I0524 22:05:15.730367 15975 config_data.cc:65] loading config file '/usr/share/rime-data/luna_pinyin_simp.schema.yaml'.
I0524 22:05:15.731148 15975 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.schema.yaml'.
I0524 22:05:15.733669 15975 deployment_tasks.cc:421] source file added: /home/baloneo/.config/ibus/rime/luna_pinyin_simp.custom.yaml
I0524 22:05:15.733698 15975 config_data.cc:65] loading config file '/usr/share/rime-data/luna_pinyin_simp.schema.yaml'.
I0524 22:05:15.734464 15975 auto_patch_config_plugin.cc:28] auto-patch luna_pinyin_simp.schema:/__patch: luna_pinyin_simp.custom:/patch?
I0524 22:05:15.734496 15975 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/luna_pinyin_simp.custom.yaml'.
E0524 22:05:15.734674 15975 config_data.cc:71] Error parsing YAML: yaml-cpp: error at line 12, column 6: end of map not found
I0524 22:05:15.734691 15975 config_compiler.cc:426] optional resource not loaded: luna_pinyin_simp.custom
I0524 22:05:15.734697 15975 config_compiler.cc:539] resolved: Patch(luna_pinyin_simp.custom:patch <optional>)
I0524 22:05:15.734719 15975 config_data.cc:65] loading config file '/usr/share/rime-data/default.yaml'.
I0524 22:05:15.735219 15975 auto_patch_config_plugin.cc:28] auto-patch default:/__patch: default.custom:/patch?
I0524 22:05:15.735249 15975 config_data.cc:65] loading config file '/usr/share/rime-data/punctuation.yaml'.
I0524 22:05:15.736393 15975 auto_patch_config_plugin.cc:28] auto-patch punctuation:/__patch: punctuation.custom:/patch?
W0524 22:05:15.736424 15975 config_data.cc:62] nonexistent config file '/home/baloneo/.config/ibus/rime/punctuation.custom.yaml'.
I0524 22:05:15.736431 15975 config_compiler.cc:426] optional resource not loaded: punctuation.custom
I0524 22:05:15.736436 15975 config_compiler.cc:539] resolved: Patch(punctuation.custom:patch <optional>)
I0524 22:05:15.736446 15975 config_compiler.cc:539] resolved: Include(punctuation:/full_shape)
I0524 22:05:15.736454 15975 config_compiler.cc:539] resolved: PendingChild(default:/punctuator/full_shape)
I0524 22:05:15.736462 15975 config_compiler.cc:539] resolved: Include(punctuation:/half_shape)
I0524 22:05:15.736469 15975 config_compiler.cc:539] resolved: PendingChild(default:/punctuator/half_shape)
I0524 22:05:15.736474 15975 config_compiler.cc:539] resolved: PendingChild(default:/punctuator)
I0524 22:05:15.736490 15975 config_data.cc:65] loading config file '/usr/share/rime-data/key_bindings.yaml'.
I0524 22:05:15.737648 15975 auto_patch_config_plugin.cc:28] auto-patch key_bindings:/__patch: key_bindings.custom:/patch?
W0524 22:05:15.737673 15975 config_data.cc:62] nonexistent config file '/home/baloneo/.config/ibus/rime/key_bindings.custom.yaml'.
I0524 22:05:15.737680 15975 config_compiler.cc:426] optional resource not loaded: key_bindings.custom
I0524 22:05:15.737684 15975 config_compiler.cc:539] resolved: Patch(key_bindings.custom:patch <optional>)
I0524 22:05:15.737694 15975 config_compiler.cc:212] patching __append
I0524 22:05:15.737704 15975 config_compiler.cc:539] resolved: Patch(key_bindings:/emacs_editing)
I0524 22:05:15.737713 15975 config_compiler.cc:212] patching __append
I0524 22:05:15.737718 15975 config_compiler.cc:539] resolved: Patch(key_bindings:/move_by_word_with_tab)
I0524 22:05:15.737725 15975 config_compiler.cc:212] patching __append
I0524 22:05:15.737730 15975 config_compiler.cc:539] resolved: Patch(key_bindings:/paging_with_minus_equal)
I0524 22:05:15.737736 15975 config_compiler.cc:212] patching __append
I0524 22:05:15.737741 15975 config_compiler.cc:539] resolved: Patch(key_bindings:/paging_with_comma_period)
I0524 22:05:15.737749 15975 config_compiler.cc:212] patching __append
I0524 22:05:15.737756 15975 config_compiler.cc:539] resolved: Patch(key_bindings:/numbered_mode_switch)
I0524 22:05:15.737762 15975 config_compiler.cc:539] resolved: PendingChild(default:/key_binder/bindings)
I0524 22:05:15.737769 15975 config_compiler.cc:539] resolved: PendingChild(default:/key_binder)
I0524 22:05:15.737782 15975 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/default.custom.yaml'.
I0524 22:05:15.737866 15975 config_compiler.cc:212] patching menu/page_size
I0524 22:05:15.737885 15975 config_compiler.cc:212] patching schema_list
I0524 22:05:15.737895 15975 config_compiler.cc:539] resolved: Patch(default.custom:patch <optional>)
I0524 22:05:15.737906 15975 legacy_preset_config_plugin.cc:25] interpreting key_binder/import_preset: default
I0524 22:05:15.737927 15975 legacy_preset_config_plugin.cc:52] interpreting punctuator/import_preset: default
I0524 22:05:15.737941 15975 legacy_preset_config_plugin.cc:64] interpreting recognizer/import_preset: default
I0524 22:05:15.737967 15975 build_info_plugin.cc:25] resource 'key_bindings.custom' not loaded.
I0524 22:05:15.737972 15975 build_info_plugin.cc:25] resource 'luna_pinyin_simp.custom' not loaded.
I0524 22:05:15.737982 15975 build_info_plugin.cc:25] resource 'punctuation.custom' not loaded.
I0524 22:05:15.738003 15975 config_data.cc:85] saving config file '/home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.schema.yaml'.
I0524 22:05:15.740058 15975 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.schema.yaml'.
I0524 22:05:15.742887 15975 deployment_tasks.cc:358] preparing dictionary 'luna_pinyin'.
I0524 22:05:15.742928 15975 dict_compiler.cc:41] compiling dictionary for /home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.schema.yaml
I0524 22:05:15.743083 15975 dict_compiler.cc:56] dict name: luna_pinyin
I0524 22:05:15.743096 15975 dict_compiler.cc:57] dict version: 2020.02.08
I0524 22:05:15.805176 15975 table.cc:299] loading table file: /home/baloneo/.config/ibus/rime/build/luna_pinyin.table.bin
I0524 22:05:15.805372 15975 prism.cc:77] loading prism file: /home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.prism.bin
I0524 22:05:15.805419 15975 prism.cc:107] found double array image of size 1792.
I0524 22:05:15.805449 15975 dict_compiler.cc:109] /home/baloneo/.config/ibus/rime/luna_pinyin.dict.yaml[1 file(s)] (2553935776)
I0524 22:05:15.805459 15975 dict_compiler.cc:111] /home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.schema.yaml (2612097147)
I0524 22:05:15.805493 15975 reverse_lookup_dictionary.cc:33] loading reversedb: /home/baloneo/.config/ibus/rime/build/luna_pinyin.reverse.bin
I0524 22:05:15.805573 15975 deployment_tasks.cc:376] dictionary 'luna_pinyin' is ready.
I0524 22:05:15.805696 15975 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.schema.yaml'.
I0524 22:05:15.808607 15975 deployment_tasks.cc:241] finished updating schemas: 1 success, 0 failure.
I0524 22:05:15.808651 15975 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/user.yaml'.
I0524 22:05:15.808754 15975 config_data.cc:199] write: var/last_build_time
I0524 22:05:15.808773 15975 config_data.cc:85] saving config file '/home/baloneo/.config/ibus/rime/user.yaml'.
I0524 22:05:15.808997 15975 deployment_tasks.cc:591] clean up trash.
I0524 22:05:15.809103 15975 deployer.cc:95] 3 tasks ran: 3 success, 0 failure.
W0524 22:05:15.812641 15975 config_data.cc:62] nonexistent config file '/home/baloneo/.config/ibus/rime/build/ibus_rime.yaml'.
CoelacanthusHex commented 4 years ago

可以传一下log吗?

找不到log的位置, 没查到

/tmp/rime.ibus.ERROR 大概还有个/tmp/rime.ibus.INFO

byte-voyager commented 4 years ago

可以传一下log吗?

找不到log的位置, 没查到

/tmp/rime.ibus.ERROR 大概还有个/tmp/rime.ibus.INFO

这个我找了,确实没有, ls tmp

➜  rime git:(master) ✗ ls /tmp
 appInsights-nodeAIF-d9b70cd4-b9f9-4d70-929b-a071c400b217
 fcitx-socket-:0
 mongodb-27017.sock
 net-export
 package-14398gz8eM3qRT9Zx
 pamac
 qipc_sharedmemory_MSMNotifier1982c3c75cbed4786bc185973fce6242a7b208b8
 qipc_systemsem_MSMNotifier1982c3c75cbed4786bc185973fce6242a7b208b8
 ssh-fsewG4w9xKnB
 systemd-private-1bfc0b5cebb34afa87eb24dc5681311a-colord.service-Svwwnf
 systemd-private-1bfc0b5cebb34afa87eb24dc5681311a-memcached.service-01jshi
 systemd-private-1bfc0b5cebb34afa87eb24dc5681311a-ModemManager.service-777sNg
 systemd-private-1bfc0b5cebb34afa87eb24dc5681311a-redis.service-NxKI2e
 systemd-private-1bfc0b5cebb34afa87eb24dc5681311a-systemd-logind.service-Ns0C3g
 systemd-private-1bfc0b5cebb34afa87eb24dc5681311a-systemd-timesyncd.service-ULYw9e
 systemd-private-1bfc0b5cebb34afa87eb24dc5681311a-upower.service-6DEyvj
'VSCode Crashes'
CoelacanthusHex commented 4 years ago

有点奇怪 你那个fcitx-socket是怎么回事? 你试试给fcitx-rime用同样的配置有效吗?

CoelacanthusHex commented 4 years ago

在ibus_rime.yaml里加入

plugins:
  - librime-lua.so

modules:
  - lua

没有的话创建这个文件

Edit:在rime配置目录

CoelacanthusHex commented 4 years ago

I0524 22:05:15.734496 15975 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/luna_pinyin_simp.custom.yaml'. E0524 22:05:15.734674 15975 config_data.cc:71] Error parsing YAML: yaml-cpp: error at line 12, column 6: end of map not found

你配置文件有语法错误

Ace-Who commented 4 years ago

YAML 的缩进仍然不对。

byte-voyager commented 4 years ago

YAML 的缩进仍然不对。

没有报错,还是不对吗

CoelacanthusHex commented 4 years ago

YAML 的缩进仍然不对。

没有报错,还是不对吗

我贴的不是报错吗!

Edit:建议先用yamllint检验下yaml语法正确性

Ace-Who commented 4 years ago

仔细点,第 12 行缩进,多了一个空格。你需要一个好的编辑器。

CoelacanthusHex commented 4 years ago

仔细点,第 12 行缩进,多了一个空格。你需要一个好的编辑器。

@Baloneo 也许你需要等宽字体+好的编辑器+4/8空格缩进+yamllint

byte-voyager commented 4 years ago

仔细点,第 12 行缩进,多了一个空格。你需要一个好的编辑器。

@Baloneo 也许你需要等宽字体+好的编辑器+4/8空格缩进+yamllint

➜ rime git:(master) ✗ yamllint luna_pinyin_simp.custom.yaml luna_pinyin_simp.custom.yaml 1:1 warning missing document start "---" (document-start) 7:11 warning comment not indented like content (comments-indentation)

byte-voyager commented 4 years ago
➜  ~ ibus-daemon -v

(ibus-ui-gtk3:18572): IBUS-WARNING **: 22:26:09.738: panel.vala:255: If you launch KDE5 on xterm, export XDG_CURRENT_DESKTOP=KDE before launch KDE5.

(ibus-ui-gtk3:18572): IBUS-WARNING **: 22:26:09.819: ibus_bus_call_sync: org.freedesktop.DBus.Properties.Get: GDBus.Error:org.freedesktop.DBus.Error.Failed: No global engine.
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0524 22:26:09.910632 18591 core_module.cc:20] registering core components.
I0524 22:26:09.910847 18591 registry.cc:14] registering component: config_builder
I0524 22:26:09.910872 18591 registry.cc:14] registering component: config
I0524 22:26:09.910883 18591 registry.cc:14] registering component: schema
I0524 22:26:09.910898 18591 registry.cc:14] registering component: user_config
I0524 22:26:09.910912 18591 dict_module.cc:25] registering components from module 'dict'.
I0524 22:26:09.910920 18591 registry.cc:14] registering component: tabledb
I0524 22:26:09.910936 18591 registry.cc:14] registering component: stabledb
I0524 22:26:09.910949 18591 registry.cc:14] registering component: plain_userdb
I0524 22:26:09.910959 18591 registry.cc:14] registering component: userdb
I0524 22:26:09.910990 18591 registry.cc:14] registering component: corrector
I0524 22:26:09.911024 18591 registry.cc:14] registering component: dictionary
I0524 22:26:09.911058 18591 registry.cc:14] registering component: reverse_lookup_dictionary
I0524 22:26:09.911082 18591 registry.cc:14] registering component: user_dictionary
I0524 22:26:09.911092 18591 registry.cc:14] registering component: userdb_recovery_task
I0524 22:26:09.911110 18591 gears_module.cc:42] registering components from module 'gears'.
I0524 22:26:09.911121 18591 registry.cc:14] registering component: ascii_composer
I0524 22:26:09.911129 18591 registry.cc:14] registering component: chord_composer
I0524 22:26:09.911140 18591 registry.cc:14] registering component: express_editor
I0524 22:26:09.911149 18591 registry.cc:14] registering component: fluid_editor
I0524 22:26:09.911159 18591 registry.cc:14] registering component: fluency_editor
I0524 22:26:09.911166 18591 registry.cc:14] registering component: key_binder
I0524 22:26:09.911177 18591 registry.cc:14] registering component: navigator
I0524 22:26:09.911186 18591 registry.cc:14] registering component: punctuator
I0524 22:26:09.911196 18591 registry.cc:14] registering component: recognizer
I0524 22:26:09.911206 18591 registry.cc:14] registering component: selector
I0524 22:26:09.911216 18591 registry.cc:14] registering component: speller
I0524 22:26:09.911226 18591 registry.cc:14] registering component: shape_processor
I0524 22:26:09.911237 18591 registry.cc:14] registering component: abc_segmentor
I0524 22:26:09.911247 18591 registry.cc:14] registering component: affix_segmentor
I0524 22:26:09.911257 18591 registry.cc:14] registering component: ascii_segmentor
I0524 22:26:09.911264 18591 registry.cc:14] registering component: matcher
I0524 22:26:09.911275 18591 registry.cc:14] registering component: punct_segmentor
I0524 22:26:09.911288 18591 registry.cc:14] registering component: fallback_segmentor
I0524 22:26:09.911299 18591 registry.cc:14] registering component: echo_translator
I0524 22:26:09.911312 18591 registry.cc:14] registering component: punct_translator
I0524 22:26:09.911327 18591 registry.cc:14] registering component: table_translator
I0524 22:26:09.911337 18591 registry.cc:14] registering component: script_translator
I0524 22:26:09.911348 18591 registry.cc:14] registering component: r10n_translator
I0524 22:26:09.911361 18591 registry.cc:14] registering component: reverse_lookup_translator
I0524 22:26:09.911372 18591 registry.cc:14] registering component: schema_list_translator
I0524 22:26:09.911386 18591 registry.cc:14] registering component: switch_translator
I0524 22:26:09.911412 18591 registry.cc:14] registering component: history_translator
I0524 22:26:09.911422 18591 registry.cc:14] registering component: simplifier
I0524 22:26:09.911432 18591 registry.cc:14] registering component: uniquifier
I0524 22:26:09.911442 18591 registry.cc:14] registering component: charset_filter
I0524 22:26:09.911451 18591 registry.cc:14] registering component: cjk_minifier
I0524 22:26:09.911461 18591 registry.cc:14] registering component: reverse_lookup_filter
I0524 22:26:09.911471 18591 registry.cc:14] registering component: single_char_filter
I0524 22:26:09.911480 18591 registry.cc:14] registering component: shape_formatter
I0524 22:26:09.911506 18591 levers_module.cc:23] registering components from module 'levers'.
I0524 22:26:09.911520 18591 registry.cc:14] registering component: detect_modifications
I0524 22:26:09.911531 18591 registry.cc:14] registering component: installation_update
I0524 22:26:09.911541 18591 registry.cc:14] registering component: workspace_update
I0524 22:26:09.911551 18591 registry.cc:14] registering component: schema_update
I0524 22:26:09.911561 18591 registry.cc:14] registering component: config_file_update
I0524 22:26:09.911573 18591 registry.cc:14] registering component: prebuild_all_schemas
I0524 22:26:09.911586 18591 registry.cc:14] registering component: user_dict_upgrade
I0524 22:26:09.911602 18591 registry.cc:14] registering component: cleanup_trash
I0524 22:26:09.911615 18591 registry.cc:14] registering component: user_dict_sync
I0524 22:26:09.911638 18591 registry.cc:14] registering component: backup_config_files
I0524 22:26:09.911651 18591 registry.cc:14] registering component: clean_old_log_files
I0524 22:26:09.911927 18591 deployment_tasks.cc:80] updating rime installation info.
I0524 22:26:09.911957 18591 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/installation.yaml'.
I0524 22:26:09.912222 18591 deployment_tasks.cc:98] installation info exists. installation id: e1586314-4eb8-4be3-91a1-4453ee0be418
I0524 22:26:09.912247 18591 deployment_tasks.cc:106] sync dir: /home/baloneo/.config/ibus/rime/sync
I0524 22:26:09.912261 18591 deployment_tasks.cc:108] previous distribution: ibus-rime
I0524 22:26:09.912273 18591 deployment_tasks.cc:111] previous distribution version: 1.4.0
I0524 22:26:09.912283 18591 deployment_tasks.cc:114] previous Rime version: 1.5.3
I0524 22:26:09.913703 18591 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/user.yaml'.
I0524 22:26:09.913920 18591 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/ibus_rime.yaml'.
I0524 22:26:09.914361 18591 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/default.yaml'.
I0524 22:26:09.916637 18591 engine.cc:71] starting engine.
I0524 22:26:09.916719 18591 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/user.yaml'.
I0524 22:26:09.917073 18591 engine.cc:126] updated option: ascii_punct
I0524 22:26:09.917124 18591 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.schema.yaml'.
I0524 22:26:09.919863 18591 engine.cc:126] updated option: _auto_commit
I0524 22:26:09.919976 18591 table_db.cc:80] stabledb 'custom_phrase.txt' does not exist.
I0524 22:26:09.920074 18591 dictionary.cc:261] loading dictionary 'luna_pinyin.extended'.
I0524 22:26:09.920085 18591 table.cc:299] loading table file: /home/baloneo/.config/ibus/rime/build/luna_pinyin.extended.table.bin
I0524 22:26:09.920229 18591 prism.cc:77] loading prism file: /home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.prism.bin
I0524 22:26:09.920264 18591 prism.cc:107] found double array image of size 1024.
E0524 22:26:09.935385 18591 engine.cc:349] error creating translator: 'lua_translator'
I0524 22:26:09.935443 18591 engine.cc:126] updated option: ascii_mode
I0524 22:26:09.935461 18591 engine.cc:126] updated option: zh_simp
I0524 22:26:09.935493 18591 engine.cc:126] updated option: soft_cursor

(ibus-ui-gtk3:18572): Gdk-CRITICAL **: 22:26:09.951: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
I0524 22:26:24.241721 18591 engine.cc:92] engine disposed.
I0524 22:26:24.243108 18591 level_db.cc:299] closed db 'luna_pinyin.userdb'.
I0524 22:26:24.244714 18591 core_module.cc:20] registering core components.
I0524 22:26:24.244864 18591 registry.cc:14] registering component: config_builder
I0524 22:26:24.244918 18591 registry.cc:14] registering component: config
I0524 22:26:24.244958 18591 registry.cc:14] registering component: schema
I0524 22:26:24.244997 18591 registry.cc:14] registering component: user_config
I0524 22:26:24.245045 18591 dict_module.cc:25] registering components from module 'dict'.
I0524 22:26:24.245088 18591 registry.cc:14] registering component: tabledb
I0524 22:26:24.245141 18591 registry.cc:14] registering component: stabledb
I0524 22:26:24.245185 18591 registry.cc:14] registering component: plain_userdb
I0524 22:26:24.245224 18591 registry.cc:14] registering component: userdb
I0524 22:26:24.245283 18591 registry.cc:14] registering component: corrector
I0524 22:26:24.245330 18591 registry.cc:14] registering component: dictionary
I0524 22:26:24.245379 18591 registry.cc:14] registering component: reverse_lookup_dictionary
I0524 22:26:24.245437 18591 registry.cc:14] registering component: user_dictionary
I0524 22:26:24.245487 18591 registry.cc:14] registering component: userdb_recovery_task
I0524 22:26:24.245540 18591 gears_module.cc:42] registering components from module 'gears'.
I0524 22:26:24.245582 18591 registry.cc:14] registering component: ascii_composer
I0524 22:26:24.245625 18591 registry.cc:14] registering component: chord_composer
I0524 22:26:24.245676 18591 registry.cc:14] registering component: express_editor
I0524 22:26:24.245781 18591 registry.cc:14] registering component: fluid_editor
I0524 22:26:24.245837 18591 registry.cc:14] registering component: fluency_editor
I0524 22:26:24.245888 18591 registry.cc:14] registering component: key_binder
I0524 22:26:24.245970 18591 registry.cc:14] registering component: navigator
I0524 22:26:24.246029 18591 registry.cc:14] registering component: punctuator
I0524 22:26:24.246078 18591 registry.cc:14] registering component: recognizer
I0524 22:26:24.246121 18591 registry.cc:14] registering component: selector
I0524 22:26:24.246174 18591 registry.cc:14] registering component: speller
I0524 22:26:24.246219 18591 registry.cc:14] registering component: shape_processor
I0524 22:26:24.246259 18591 registry.cc:14] registering component: abc_segmentor
I0524 22:26:24.246304 18591 registry.cc:14] registering component: affix_segmentor
I0524 22:26:24.246351 18591 registry.cc:14] registering component: ascii_segmentor
I0524 22:26:24.246399 18591 registry.cc:14] registering component: matcher
I0524 22:26:24.246448 18591 registry.cc:14] registering component: punct_segmentor
I0524 22:26:24.246495 18591 registry.cc:14] registering component: fallback_segmentor
I0524 22:26:24.246546 18591 registry.cc:14] registering component: echo_translator
I0524 22:26:24.246592 18591 registry.cc:14] registering component: punct_translator
I0524 22:26:24.246640 18591 registry.cc:14] registering component: table_translator
I0524 22:26:24.246690 18591 registry.cc:14] registering component: script_translator
I0524 22:26:24.246742 18591 registry.cc:14] registering component: r10n_translator
I0524 22:26:24.246788 18591 registry.cc:14] registering component: reverse_lookup_translator
I0524 22:26:24.246837 18591 registry.cc:14] registering component: schema_list_translator
I0524 22:26:24.246886 18591 registry.cc:14] registering component: switch_translator
I0524 22:26:24.246939 18591 registry.cc:14] registering component: history_translator
I0524 22:26:24.246986 18591 registry.cc:14] registering component: simplifier
I0524 22:26:24.247028 18591 registry.cc:14] registering component: uniquifier
I0524 22:26:24.247082 18591 registry.cc:14] registering component: charset_filter
I0524 22:26:24.247130 18591 registry.cc:14] registering component: cjk_minifier
I0524 22:26:24.247175 18591 registry.cc:14] registering component: reverse_lookup_filter
I0524 22:26:24.247220 18591 registry.cc:14] registering component: single_char_filter
I0524 22:26:24.247270 18591 registry.cc:14] registering component: shape_formatter
I0524 22:26:24.247339 18591 levers_module.cc:23] registering components from module 'levers'.
I0524 22:26:24.247390 18591 registry.cc:14] registering component: detect_modifications
I0524 22:26:24.247437 18591 registry.cc:14] registering component: installation_update
I0524 22:26:24.247485 18591 registry.cc:14] registering component: workspace_update
I0524 22:26:24.247539 18591 registry.cc:14] registering component: schema_update
I0524 22:26:24.247592 18591 registry.cc:14] registering component: config_file_update
I0524 22:26:24.247647 18591 registry.cc:14] registering component: prebuild_all_schemas
I0524 22:26:24.247700 18591 registry.cc:14] registering component: user_dict_upgrade
I0524 22:26:24.247758 18591 registry.cc:14] registering component: cleanup_trash
I0524 22:26:24.247803 18591 registry.cc:14] registering component: user_dict_sync
I0524 22:26:24.247835 18591 registry.cc:14] registering component: backup_config_files
I0524 22:26:24.247880 18591 registry.cc:14] registering component: clean_old_log_files
I0524 22:26:24.248669 18591 deployment_tasks.cc:80] updating rime installation info.
I0524 22:26:24.248821 18591 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/installation.yaml'.
I0524 22:26:24.249408 18591 deployment_tasks.cc:98] installation info exists. installation id: e1586314-4eb8-4be3-91a1-4453ee0be418
I0524 22:26:24.249491 18591 deployment_tasks.cc:106] sync dir: /home/baloneo/.config/ibus/rime/sync
I0524 22:26:24.249579 18591 deployment_tasks.cc:108] previous distribution: ibus-rime
I0524 22:26:24.249639 18591 deployment_tasks.cc:111] previous distribution version: 1.4.0
I0524 22:26:24.249682 18591 deployment_tasks.cc:114] previous Rime version: 1.5.3
I0524 22:26:24.249784 18591 deployer.cc:114] starting work thread for 3 tasks.
I0524 22:26:24.250289 18591 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/ibus_rime.yaml'.
I0524 22:26:24.250316 18610 deployer.cc:83] running deployment tasks:
I0524 22:26:24.276734 18610 deployment_tasks.cc:160] updating workspace.
I0524 22:26:24.276960 18610 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/default.yaml'.
I0524 22:26:24.289335 18610 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/default.yaml'.
I0524 22:26:24.299374 18610 deployment_tasks.cc:183] updating schemas.
I0524 22:26:24.299543 18610 deployment_tasks.cc:193] schema: luna_pinyin_simp
I0524 22:26:24.299679 18610 config_data.cc:65] loading config file '/usr/share/rime-data/luna_pinyin_simp.schema.yaml'.
I0524 22:26:24.303189 18610 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.schema.yaml'.
I0524 22:26:24.318084 18610 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.schema.yaml'.
I0524 22:26:24.325799 18610 deployment_tasks.cc:358] preparing dictionary 'luna_pinyin.extended'.
I0524 22:26:24.326014 18610 dict_compiler.cc:41] compiling dictionary for /home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.schema.yaml
I0524 22:26:24.326735 18610 dict_compiler.cc:56] dict name: luna_pinyin.extended
I0524 22:26:24.326810 18610 dict_compiler.cc:57] dict version: 2014.09.07
I0524 22:26:24.593034 18610 table.cc:299] loading table file: /home/baloneo/.config/ibus/rime/build/luna_pinyin.extended.table.bin
I0524 22:26:24.593338 18610 prism.cc:77] loading prism file: /home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.prism.bin
I0524 22:26:24.593382 18610 prism.cc:107] found double array image of size 1024.
I0524 22:26:24.593410 18610 dict_compiler.cc:109] /home/baloneo/.config/ibus/rime/luna_pinyin.extended.dict.yaml[12 file(s)] (2327021180)
I0524 22:26:24.593425 18610 dict_compiler.cc:111] /home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.schema.yaml (135757447)
I0524 22:26:24.593461 18610 reverse_lookup_dictionary.cc:33] loading reversedb: /home/baloneo/.config/ibus/rime/build/luna_pinyin.extended.reverse.bin
I0524 22:26:24.593575 18610 deployment_tasks.cc:376] dictionary 'luna_pinyin.extended' is ready.
I0524 22:26:24.593758 18610 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/luna_pinyin_simp.schema.yaml'.
I0524 22:26:24.596611 18610 deployment_tasks.cc:241] finished updating schemas: 1 success, 0 failure.
I0524 22:26:24.596675 18610 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/user.yaml'.
I0524 22:26:24.596827 18610 config_data.cc:199] write: var/last_build_time
I0524 22:26:24.596850 18610 config_data.cc:85] saving config file '/home/baloneo/.config/ibus/rime/user.yaml'.
I0524 22:26:24.597172 18610 deployment_tasks.cc:591] clean up trash.
I0524 22:26:24.597282 18610 deployer.cc:95] 3 tasks ran: 3 success, 0 failure.
I0524 22:26:24.601101 18610 config_data.cc:65] loading config file '/home/baloneo/.config/ibus/rime/build/ibus_rime.yaml'.

E0524 22:26:09.935385 18591 engine.cc:349] error creating translator: 'lua_translator'

CoelacanthusHex commented 4 years ago

E0524 22:26:09.935385 18591 engine.cc:349] error creating translator: 'lua_translator'

看样子插件没加载……

Edit:重新考虑你的编译安装过程是否有问题

byte-voyager commented 4 years ago

E0524 22:26:09.935385 18591 engine.cc:349] error creating translator: 'lua_translator'

看样子插件没加载……

我是下载了 librime然后make merged-plugins sudo make install

➜  librime-master cd plugins 
➜  plugins ls
CMakeLists.txt  lua  plugin.cc
➜  plugins ls lua
appveyor.install.bat  appveyor.rime-install.bat  appveyor.yml  CMakeLists.txt  README.md  sample  src  travis-install.sh

make install 是成功的

byte-voyager commented 4 years ago

我再研究研究吧,非常感谢!

  rime git:(master) ✗ ldd /usr/lib/librime.so
    linux-vdso.so.1 (0x00007ffca7d01000)
    libboost_filesystem.so.1.72.0 => /usr/lib/libboost_filesystem.so.1.72.0 (0x00007efe02469000)
    libboost_regex.so.1.72.0 => /usr/lib/libboost_regex.so.1.72.0 (0x00007efe02368000)
    libboost_system.so.1.72.0 => /usr/lib/libboost_system.so.1.72.0 (0x00007efe02363000)
    libglog.so.0 => /usr/lib/libglog.so.0 (0x00007efe02330000)
    libyaml-cpp.so.0.6 => /usr/lib/libyaml-cpp.so.0.6 (0x00007efe022cc000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007efe022aa000)
    libleveldb.so.1 => /usr/lib/libleveldb.so.1 (0x00007efe0224a000)
    libmarisa.so.0 => /usr/lib/libmarisa.so.0 (0x00007efe02221000)
    libopencc.so.2 => /usr/lib/libopencc.so.2 (0x00007efe021d6000)
    libluajit-5.1.so.2 => /usr/lib/libluajit-5.1.so.2 (0x00007efe02165000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007efe01f7c000)
    libm.so.6 => /usr/lib/libm.so.6 (0x00007efe01e36000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007efe01e1a000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007efe01c54000)
    /usr/lib64/ld-linux-x86-64.so.2 (0x00007efe027af000)
    librt.so.1 => /usr/lib/librt.so.1 (0x00007efe01c49000)
    libicudata.so.67 => /usr/lib/libicudata.so.67 (0x00007efe00132000)
    libicui18n.so.67 => /usr/lib/libicui18n.so.67 (0x00007efdffe32000)
    libicuuc.so.67 => /usr/lib/libicuuc.so.67 (0x00007efdffc4b000)
    libsnappy.so.1 => /usr/lib/libsnappy.so.1 (0x00007efdffc3e000)
    libtcmalloc.so.4 => /usr/lib/libtcmalloc.so.4 (0x00007efdffa47000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0x00007efdffa42000)
➜  rime git:(master) ✗ ldd /usr/lib/librime.so |grep lua
    libluajit-5.1.so.2 => /usr/lib/libluajit-5.1.so.2 (0x00007fce4c5ff000)
➜  rime git:(master) ✗ 
ASC8384 commented 3 years ago

我再研究研究吧,非常感谢!

  rime git:(master) ✗ ldd /usr/lib/librime.so
  linux-vdso.so.1 (0x00007ffca7d01000)
  libboost_filesystem.so.1.72.0 => /usr/lib/libboost_filesystem.so.1.72.0 (0x00007efe02469000)
  libboost_regex.so.1.72.0 => /usr/lib/libboost_regex.so.1.72.0 (0x00007efe02368000)
  libboost_system.so.1.72.0 => /usr/lib/libboost_system.so.1.72.0 (0x00007efe02363000)
  libglog.so.0 => /usr/lib/libglog.so.0 (0x00007efe02330000)
  libyaml-cpp.so.0.6 => /usr/lib/libyaml-cpp.so.0.6 (0x00007efe022cc000)
  libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007efe022aa000)
  libleveldb.so.1 => /usr/lib/libleveldb.so.1 (0x00007efe0224a000)
  libmarisa.so.0 => /usr/lib/libmarisa.so.0 (0x00007efe02221000)
  libopencc.so.2 => /usr/lib/libopencc.so.2 (0x00007efe021d6000)
  libluajit-5.1.so.2 => /usr/lib/libluajit-5.1.so.2 (0x00007efe02165000)
  libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007efe01f7c000)
  libm.so.6 => /usr/lib/libm.so.6 (0x00007efe01e36000)
  libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007efe01e1a000)
  libc.so.6 => /usr/lib/libc.so.6 (0x00007efe01c54000)
  /usr/lib64/ld-linux-x86-64.so.2 (0x00007efe027af000)
  librt.so.1 => /usr/lib/librt.so.1 (0x00007efe01c49000)
  libicudata.so.67 => /usr/lib/libicudata.so.67 (0x00007efe00132000)
  libicui18n.so.67 => /usr/lib/libicui18n.so.67 (0x00007efdffe32000)
  libicuuc.so.67 => /usr/lib/libicuuc.so.67 (0x00007efdffc4b000)
  libsnappy.so.1 => /usr/lib/libsnappy.so.1 (0x00007efdffc3e000)
  libtcmalloc.so.4 => /usr/lib/libtcmalloc.so.4 (0x00007efdffa47000)
  libdl.so.2 => /usr/lib/libdl.so.2 (0x00007efdffa42000)
➜  rime git:(master) ✗ ldd /usr/lib/librime.so |grep lua
  libluajit-5.1.so.2 => /usr/lib/libluajit-5.1.so.2 (0x00007fce4c5ff000)
➜  rime git:(master) ✗ 

请问您解决了吗

byte-voyager commented 3 years ago

我再研究研究吧,非常感谢!

  rime git:(master) ✗ ldd /usr/lib/librime.so
    linux-vdso.so.1 (0x00007ffca7d01000)
    libboost_filesystem.so.1.72.0 => /usr/lib/libboost_filesystem.so.1.72.0 (0x00007efe02469000)
    libboost_regex.so.1.72.0 => /usr/lib/libboost_regex.so.1.72.0 (0x00007efe02368000)
    libboost_system.so.1.72.0 => /usr/lib/libboost_system.so.1.72.0 (0x00007efe02363000)
    libglog.so.0 => /usr/lib/libglog.so.0 (0x00007efe02330000)
    libyaml-cpp.so.0.6 => /usr/lib/libyaml-cpp.so.0.6 (0x00007efe022cc000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007efe022aa000)
    libleveldb.so.1 => /usr/lib/libleveldb.so.1 (0x00007efe0224a000)
    libmarisa.so.0 => /usr/lib/libmarisa.so.0 (0x00007efe02221000)
    libopencc.so.2 => /usr/lib/libopencc.so.2 (0x00007efe021d6000)
    libluajit-5.1.so.2 => /usr/lib/libluajit-5.1.so.2 (0x00007efe02165000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007efe01f7c000)
    libm.so.6 => /usr/lib/libm.so.6 (0x00007efe01e36000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007efe01e1a000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007efe01c54000)
    /usr/lib64/ld-linux-x86-64.so.2 (0x00007efe027af000)
    librt.so.1 => /usr/lib/librt.so.1 (0x00007efe01c49000)
    libicudata.so.67 => /usr/lib/libicudata.so.67 (0x00007efe00132000)
    libicui18n.so.67 => /usr/lib/libicui18n.so.67 (0x00007efdffe32000)
    libicuuc.so.67 => /usr/lib/libicuuc.so.67 (0x00007efdffc4b000)
    libsnappy.so.1 => /usr/lib/libsnappy.so.1 (0x00007efdffc3e000)
    libtcmalloc.so.4 => /usr/lib/libtcmalloc.so.4 (0x00007efdffa47000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0x00007efdffa42000)
➜  rime git:(master) ✗ ldd /usr/lib/librime.so |grep lua
    libluajit-5.1.so.2 => /usr/lib/libluajit-5.1.so.2 (0x00007fce4c5ff000)
➜  rime git:(master) ✗ 

请问您解决了吗

没有解决

ASC8384 commented 3 years ago

我再研究研究吧,非常感谢!

  rime git:(master) ✗ ldd /usr/lib/librime.so
  linux-vdso.so.1 (0x00007ffca7d01000)
  libboost_filesystem.so.1.72.0 => /usr/lib/libboost_filesystem.so.1.72.0 (0x00007efe02469000)
  libboost_regex.so.1.72.0 => /usr/lib/libboost_regex.so.1.72.0 (0x00007efe02368000)
  libboost_system.so.1.72.0 => /usr/lib/libboost_system.so.1.72.0 (0x00007efe02363000)
  libglog.so.0 => /usr/lib/libglog.so.0 (0x00007efe02330000)
  libyaml-cpp.so.0.6 => /usr/lib/libyaml-cpp.so.0.6 (0x00007efe022cc000)
  libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007efe022aa000)
  libleveldb.so.1 => /usr/lib/libleveldb.so.1 (0x00007efe0224a000)
  libmarisa.so.0 => /usr/lib/libmarisa.so.0 (0x00007efe02221000)
  libopencc.so.2 => /usr/lib/libopencc.so.2 (0x00007efe021d6000)
  libluajit-5.1.so.2 => /usr/lib/libluajit-5.1.so.2 (0x00007efe02165000)
  libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007efe01f7c000)
  libm.so.6 => /usr/lib/libm.so.6 (0x00007efe01e36000)
  libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007efe01e1a000)
  libc.so.6 => /usr/lib/libc.so.6 (0x00007efe01c54000)
  /usr/lib64/ld-linux-x86-64.so.2 (0x00007efe027af000)
  librt.so.1 => /usr/lib/librt.so.1 (0x00007efe01c49000)
  libicudata.so.67 => /usr/lib/libicudata.so.67 (0x00007efe00132000)
  libicui18n.so.67 => /usr/lib/libicui18n.so.67 (0x00007efdffe32000)
  libicuuc.so.67 => /usr/lib/libicuuc.so.67 (0x00007efdffc4b000)
  libsnappy.so.1 => /usr/lib/libsnappy.so.1 (0x00007efdffc3e000)
  libtcmalloc.so.4 => /usr/lib/libtcmalloc.so.4 (0x00007efdffa47000)
  libdl.so.2 => /usr/lib/libdl.so.2 (0x00007efdffa42000)
➜  rime git:(master) ✗ ldd /usr/lib/librime.so |grep lua
  libluajit-5.1.so.2 => /usr/lib/libluajit-5.1.so.2 (0x00007fce4c5ff000)
➜  rime git:(master) ✗ 

请问您解决了吗

没有解决

我这儿在重启后可以正常输出了。

ldd /usr/lib/x86_64-linux-gnu/librime.so | grep lua
        liblua5.3.so.0 => /lib/x86_64-linux-gnu/liblua5.3.so.0 (0x00007fb487cdd000)

图片

ASC8384 commented 3 years ago

@Baloneo 您或许可以参考下这篇文章

YaoLiMuMu commented 1 year ago

我也是这种情况, 搞了半天是动态库文件没有加载, 要系统重启后才生效, 这是什么原因? 可能是需要ldconfig下, 链接新生成的so文件.

shewer commented 1 year ago

哇 用 luajit