hioshop-admin icon indicating copy to clipboard operation
hioshop-admin copied to clipboard

/home/ubuntu/hioshop/hioshop-admin/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory

Open MZfengdada opened this issue 2 years ago • 5 comments

报错显示没有这个共享库怎么解决呢,报错信息如下: /home/ubuntu/hioshop/hioshop-admin/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory

MZfengdada avatar Nov 09 '23 17:11 MZfengdada

I run “sudo apt install libgtk-3-0” and the problem was resolved

MZfengdada avatar Nov 09 '23 17:11 MZfengdada

However, the problem "error while loading shared libraries: libasound.so.2" appears later

MZfengdada avatar Nov 09 '23 17:11 MZfengdada

I then ran the "sudo apt-get install libasound2" command to fix the problem

MZfengdada avatar Nov 09 '23 17:11 MZfengdada

But there's another problem. Here's the problem: "WARNING in ./~/vue-loader/lib/template-compiler?{"id":"data-v-e0e9a930","hasScoped":true}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/renderer/components/Freight/FreightAddPage.vue (Emitted value instead of an instance of Error) the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope" since 2.5. The new "slot-scope" attribute can also be used on plain elements in addition to

┗ ----------------------------

┏ Electron -------------------

(electron:3864): Gtk-WARNING **: 01:27:54.824: cannot open display:

┗ ----------------------------"

MZfengdada avatar Nov 09 '23 17:11 MZfengdada

sed -i "s/scope=/slot-scope=/g" grep "scope=" -rl ./src/renderer/components

MZfengdada avatar Nov 09 '23 18:11 MZfengdada