2015年4月16日 星期四

sqlite lacks some libraries.

# which sqlite3
/bin/sqlite3

# sqlite3
sqlite3: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory

Get package "readline-5.2.tar.gz" from gnu, cross compile , install libreadline.so.5.2 on /lib

# cd /lib
# ln -s libreadline.so.5.2 libreadline.so.5
# ln -s libreadline.so.5.2 libreadline.so

# sqlite3
sqlite3: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

Get package "ncurses-5.9.tar.gz" from gun, cross compile , install libtinfo.so.5.9, libncurses.so.5.9 on /lib

# ln -s libncurses.so.5.9 libncurses.so.5
# ln -s libncurses.so.5.9 libncurses.so

# sqlite3
SQLite version 3.8.5 2014-06-04 14:06:34
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> .quit



沒有留言:

張貼留言