ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

Can't open app in linux ubuntu20.04

Open 33YANG opened this issue 3 years ago • 6 comments

33YANG avatar Dec 09 '22 06:12 33YANG

You can try to run the application (the path of the application) through the terminal, and you may see an error message. I don't have any other computers besides mac, and I hope that more people can participate to make the program more robust.

lencx avatar Dec 09 '22 06:12 lencx

You can try to run the application (the path of the application) through the terminal, and you may see an error message. I don't have any other computers besides mac, and I hope that more people can participate to make the program more robust.

Thanks the reply, I can't open the chat-gpt app with click the icon. so what's the chat-gpt application startup command in terminal

when i type below command

> chat-gpt -h 
chat-gpt: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory

33YANG avatar Dec 09 '22 07:12 33YANG

Sorry for my misremembering, the terminal needs a binary file to run, but the github releases does not have this file. Screenshot 2022-12-09 at 16 04 04

lencx avatar Dec 09 '22 08:12 lencx

That's ok, I could try the windows version in another PC

33YANG avatar Dec 09 '22 08:12 33YANG

I can't solve the problem of app running on linux and windows platforms for the time being. I can only build them through github action. I also hope that more people can participate in this project in the future to continuously improve it.

lencx avatar Dec 09 '22 08:12 lencx

I released a new version, you can try.

lencx avatar Dec 12 '22 13:12 lencx

Ubuntu 18.04 Install:

sudo apt install ./chatgpt.deb -y

Run:

chat-gpt

Error Message:

chat-gpt: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory

kadirnar avatar Dec 26 '22 18:12 kadirnar

@kadirnar I'm very sorry, I don't have a linux environment to verify, if you can, I would like you to clone the project and try to run it locally, I can assist you.

lencx avatar Dec 27 '22 02:12 lencx

@kadirnar You can clone this repository and compile manually. This error message may be related to the ssl library linked during compilation. I have compiled on Ubuntu 20.04 and chat-apt worked well. And the appimage target may cost a lot of time. You can edit the tauri.conf.json as below.

      "targets": [
        "deb",
        "msi",
        "dmg"
      ],

I also found some warning message.

warning: unused variable: `titlebar_menu`
  --> src/app/menu.rs:43:9
   |
43 |     let titlebar_menu = if chat_conf.titlebar {
   |         ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_titlebar_menu`
   |
   = note: `#[warn(unused_variables)]` on by default

I add some cfg attributes.

diff --git a/src-tauri/src/app/menu.rs b/src-tauri/src/app/menu.rs
index 8cf63eb..7b3454a 100644
--- a/src-tauri/src/app/menu.rs
+++ b/src-tauri/src/app/menu.rs
@@ -29,6 +29,7 @@ pub fn init() -> Menu {
 
     let stay_on_top =
         CustomMenuItem::new("stay_on_top".to_string(), "Stay On Top").accelerator("CmdOrCtrl+T");
+    #[cfg(target_os = "macos")]
     let titlebar =
         CustomMenuItem::new("titlebar".to_string(), "Titlebar").accelerator("CmdOrCtrl+B");
     let theme_light = CustomMenuItem::new("theme_light".to_string(), "Light");
@@ -40,6 +41,7 @@ pub fn init() -> Menu {
     } else {
         stay_on_top
     };
+    #[cfg(target_os = "macos")]
     let titlebar_menu = if chat_conf.titlebar {
         titlebar.selected()
     } else {

xueweiwujxw avatar Dec 27 '22 12:12 xueweiwujxw