Sqlite3 Shell arrow key, Browsing History command is not available

Source: Internet
Author: User
Tags readline
Under the Sqlite3 shell, press the UP and DOWN ARROW keys to navigate through the history command, and press the left and RIGHT arrow keys to move the cursor to any character position in the command, so you can modify the wrong statement or the character that was knocked out. So the directional key is the most common function under the sqlite3 shell. Under Debian (including Ubuntu), the Sqlite3 Shell arrow key is not working by default. This problem is intentional because the command-line editing feature is externally dependent, and the maintainer of the Sqlite3 binary package does not falsify the available external libraries, These external libraries are not referenced by default, otherwise the binary package may not be available. command-line editing features depend on the external library is ReadLine, under Debian/ubuntu, usually ReadLine library is already installed by default (such as my Ubuntu 11.10 Desktop version of the default already installed the three package Readline-common, Libreadline5, Libreadline6), but Sqlite3 needs to detect ReadLine's header files during the compile phase, so we have to install the dev package: sudo apt-get install Libreadline6-dev Libreadline-dev Pit Daddy is, I use NetEase source without ReadLine Dev package, Google, find here 11.10 corresponding. deb format package:? https://launchpad.net/ubuntu/oneiric /I386/LIBREADLINE6-DEV/6.2-2UBUNTU1HTTPS://LAUNCHPAD.NET/UBUNTU/ONEIRIC/I386/LIBREADLINE-DEV/6.2-2UBUNTU1 dpkg- I libreadline-dev_6.2-2ubuntu1_i386.debdpkg-i Libreadline6-dev_6.2-2ubuntu1_i386.deb Download with 11.10 version of the Sqlite3 source code (3.7.7), recompile, install, enter the Sqlite3 shell and find that the problem has been resolved. Enjoy it!

Sqlite3 Shell arrow key, Browsing History command is not available

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.