Sqlite using command line

前端 未结 6 1524
北恋
北恋 2021-01-01 18:18

Sqlite is kinda frustrating. Each time I run a command, I\'m not able to use the up down left right arrows to retrieve my previously typed commands. Is there any way to enab

6条回答
  •  耶瑟儿~
    2021-01-01 18:56

    I'm using Linux Mint and had the same sqlite3 issue, but solved it partly with the answers here. I was initially using the sqlite3 found in anaconda, which didn't have readline support.

    After I renamed the sqlite3 file in anaconda, reinstalling using the autoconf as mentioned above still didn't fix the issue. The ldd command didn't show a link to readline.so:

    $ ldd $(which sqlite3)
    
    linux-vdso.so.1 =>  (0x00007ffebb3a4000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8aceb9e000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8ace980000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8ace5bb000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f8aceda2000)
    

    Then,

    $ sudo dpkg -r sqlite3
    

    followed by a reinstall did the trick.

提交回复
热议问题