macos SVN使用错误的sqlite版本
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10981391/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
SVN using wrong sqlite version
提问by m02ph3u5
when running my svn from /usr/local/bin/ it says:
从 /usr/local/bin/ 运行我的 svn 时,它说:
svn: E200029: Couldn't perform atomic initialization svn: E200030: SQLite compiled for 3.7.13, but running with 3.6.12
svn: E200029: 无法执行原子初始化 svn: E200030: SQLite 针对 3.7.13 编译,但在 3.6.12 上运行
sqlite3 --version gives me 3.7.13
sqlite3 --version 给了我 3.7.13
What went wrong and how can I fix it? I'm on Mac OS X (10.6.8).
出了什么问题,我该如何解决?我在 Mac OS X (10.6.8) 上。
//edit1:
//编辑1:
/usr/local/bin/sqlite3 --version 3.7.13
/usr/local/bin/sqlite3 --version 3.7.13
/usr/bin/sqlite3 --version 3.7.13
/usr/bin/sqlite3 --version 3.7.13
//edit2: I "fixed" this by installing svn via homebrew and using /usr/local/bin/svn explicitly
//edit2:我通过自制软件安装 svn 并明确使用 /usr/local/bin/svn 来“修复”这个问题
Let me sum up the fixes and suggestion from the answers below:
让我总结一下以下答案中的修复和建议:
(please upvote the corresponding answer)
(请为相应的答案点赞)
For Mac users:
对于 Mac 用户:
- (re-)install svn via homebrew or whatever you use (you may need to
brew link --force sqlite3
)
- (重新)通过自制软件或您使用的任何工具安装 svn(您可能需要
brew link --force sqlite3
)
For Fedora users:
对于 Fedora 用户:
- try
yum update sqlite3
oryum install sqlite
- 尝试
yum update sqlite3
或yum install sqlite
回答by Diegolo
I experienced the same issue, I solved downloading http://www.sqlite.org/sqlite-amalgamation-3.7.6.3.tar.gz, unpacking the archive using tar/gunzip and coping sqlite3.c from the resulting directory into $svn-src-folder/sqlite-amalgamation/sqlite3.c.
我遇到了同样的问题,我解决了下载http://www.sqlite.org/sqlite-amalgamation-3.7.6.3.tar.gz,使用 tar/gunzip 解压缩存档并将 sqlite3.c 从结果目录复制到 $svn -src-folder/sqlite-amlgamation/sqlite3.c。
Run configure/make/sudo make install and you should solve.
运行 configure/make/sudo make install 就可以解决了。
回答by user2591799
I had brew, svn 1.8, working fine in OSX 10.8.
我有 brew,svn 1.8,在 OSX 10.8 中工作正常。
I upgraded to 10.9, broke. For some reason the symlinks brew makes in /usr/local/bin
were removed by the 10.9 installation?
我升级到10.9,坏了。出于某种原因/usr/local/bin
,10.9 安装删除了brew 制作的符号链接?
brew update
didnt fix.
brew update
没修。
brew install svn
fixed svn, or so I thought.
Then actually using svn 1.8 (/usr/local/bin
first in my path) I also had the above sqlite error message. A newer sqlite being in /usr/local/Cellar
, but not symlinked in /usr/local/bin
or anything.
brew install svn
固定 svn,或者我是这么想的。然后实际上使用 svn 1.8(/usr/local/bin
在我的路径中的第一个)我也有上面的 sqlite 错误消息。一个较新的 sqlite 在 中/usr/local/Cellar
,但没有符号链接/usr/local/bin
或任何东西。
brew install sqlite3
... didnt fix it. And I noticed brew says for this component it doesnt symlink. ok.
brew install sqlite3
……没修好。我注意到 brew 说这个组件没有符号链接。行。
BUT, after that reinstall, a further reinstall of svn brew svn uninstall brew svn install
但是,在重新安装之后,进一步重新安装 svn brew svn uninstall brew svn install
DID fix it. dont know why. Now can svn co successfully.
确实修复了它。不知道为什么。现在可以 svn co 成功。
回答by Peter Keller
After re-linking subversion, I had also to re-link sqlite3
重新链接颠覆后,我也不得不重新链接 sqlite3
brew link --force sqlite3
回答by Matej Bri?kár
For me, yum install sqlite
in fedora fixed the problem.
对我来说,yum install sqlite
在 Fedora 中解决了这个问题。
回答by TigerFan
update sqlite3!!
更新sqlite3!!
I had similar issue on Fedora Core 20
我在 Fedora Core 20 上遇到过类似的问题
Did the following:
做了以下事情:
yum update sqlite3
回答by peterpengnz
It means subversion was compiled with SQLite version 3.7.13, but now you are running SQLite 3.6.12.
这意味着 subversion 是使用 SQLite 3.7.13 版编译的,但现在您正在运行 SQLite 3.6.12。
All you need to do is recompile/reinstall your subversion again.
您需要做的就是再次重新编译/重新安装您的 subversion。