簡體   English   中英

無法打開sqlite3“此腳本只是sqlite3的包裝”

[英]Can't open sqlite3 “This script is just a wrapper for sqlite3”

我在Mac OS 10.6的sqlite3中使用箭頭鍵時遇到問題。 我下載了sqlite-autoconf-3080403.tar.gz。 我做了

./configure
make
sudo make install

盡管我的機器未配置新的sqlite3,但我在/ usr / bin / sqlite3中刪除了舊的sqlite3並移動了新的sqlite3。

然后當我做

sqlite3

我收到此消息:

error: '/usr/bin/.libs/sqlite3' does not exist
This script is just a wrapper for sqlite3.
See the libtool documentation for more information

然后我嘗試使用brew升級sqlite,但那時可能為時已晚,因為我仍然收到相同的錯誤味精。 有誰知道如何解決這一問題? 提前致謝!

順便說一句,當我在解壓縮的sqlite-autoconf文件夾中時,可以使用sqlite3。

我通過在終端中鍵入以下命令解決了自己的問題:

$ export PATH=/usr/local/Cellar/sqlite:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

我發現這些文章很有幫助:

已安裝sqlite3 v3.8,但Mac終端默認仍運行舊版本3.6

Brew醫生說:“警告:/ usr / local / include不可寫。”

以我笨拙的經驗,永遠不要做:

rm /usr/bin/sqlite3

如果您使用的是Mac OS,請改用brew。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM