Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN using wrong sqlite version

Tags:

sqlite

macos

svn

when running my svn from /usr/local/bin/ it says:

svn: E200029: Couldn't perform atomic initialization svn: E200030: SQLite compiled for 3.7.13, but running with 3.6.12

sqlite3 --version gives me 3.7.13

What went wrong and how can I fix it? I'm on Mac OS X (10.6.8).

//edit1:

/usr/local/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

Let me sum up the fixes and suggestion from the answers below:

(please upvote the corresponding answer)

For Mac users:

  • (re-)install svn via homebrew or whatever you use (you may need to brew link --force sqlite3)

For Fedora users:

  • try yum update sqlite3 or yum install sqlite
like image 586
m02ph3u5 Avatar asked Jun 11 '12 13:06

m02ph3u5


3 Answers

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.

Run configure/make/sudo make install and you should solve.

like image 168
Diegolo Avatar answered Nov 15 '22 00:11

Diegolo


I had brew, svn 1.8, working fine in 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?

brew update didnt fix.

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 sqlite3 ... didnt fix it. And I noticed brew says for this component it doesnt symlink. ok.

BUT, after that reinstall, a further reinstall of svn brew svn uninstall brew svn install

DID fix it. dont know why. Now can svn co successfully.

like image 28
user2591799 Avatar answered Nov 15 '22 00:11

user2591799


After re-linking subversion, I had also to re-link sqlite3

brew link --force sqlite3
like image 1
Peter Keller Avatar answered Nov 14 '22 23:11

Peter Keller