This repository has been archived by the owner. It is now read-only.

Fix build erros caused by making sqlite keg_only #17005

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
6 participants
Contributor

samueljohn commented Jan 11, 2013

  • In subversion and gdal, because they used
    HOMEBREW_PREFIX/lib instead of
    Formula.factory('sqlite').opt_prefix
Fix build erros caused by making sqlite keg_only
- In subversion and gdal, because they used
  HOMEBREW_PREFIX/lib instead of
  Formula.factory('sqlite').opt_prefix
Contributor

samueljohn commented Jan 11, 2013

pssst @MikeMcQuaid ...before anybody notices :-)

En passant, I made the whole svn build single threaded because of the weird issues in mxcl#13226

dholm added a commit to dholm/homebrew that referenced this pull request Jan 14, 2013

Fix build errors caused by making sqlite keg_only
- In subversion and gdal, because they used
  HOMEBREW_PREFIX/lib instead of
  Formula.factory('sqlite').opt_prefix

Closes #17005.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>

norioxkimura added a commit to norioxkimura/homebrew that referenced this pull request Jan 16, 2013

Fix build errors caused by making sqlite keg_only
- In subversion and gdal, because they used
  HOMEBREW_PREFIX/lib instead of
  Formula.factory('sqlite').opt_prefix

Closes #17005.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Contributor

michaellopez commented Jan 18, 2013

I'm still having an issue with subversion after doing brew upgrade today which upgraded my sqlite from 3.7.15 to 3.7.15.1 I think. Is there a log I can check to verify this if this information is needed?

$ svn --version
dyld: Library not loaded: /usr/local/lib/libsqlite3.0.8.6.dylib
  Referenced from: /usr/local/lib/libserf-1.0.0.0.dylib
  Reason: image not found
Trace/BPT trap

Doing brew link sqlite does not give me errors:

$ brew link sqlite
Linking /usr/local/Cellar/sqlite/3.7.15.1... 10 symlinks created
$ svn --version
svn, version 1.7.8 (r1419691)
   compiled Jan 18 2013, 12:48:36
...and so on

Am I missing something obvious? Obviously I shouldn't brew link keg_only formulas, right? Do we need to change something in the formula for serf?

Contributor

samueljohn commented Jan 18, 2013

I suggest, you brew rm sqlite svn and then brew install svn.
Reinstalling svn ensures that svn knows sqlite was keg_only and can set the rpath accordingly.

If that does not help, please open a new issue, following the troubleshooting guide.

The current gdal formula is still giving libsqlite errors (using ogr2ogr to convert .shp to GeoJSON):

dyld: Library not loaded: /usr/local/lib/libsqlite3.0.8.6.dylib
  Referenced from: /usr/local/lib/libspatialite.2.dylib
  Reason: image not found
6Trace/BPT trap: 5

I tried installing gdal --with-sqlite and without the flag.

Contributor

Sharpie commented Feb 17, 2013

@futuraprime

The linking error is not in GDAL. Try re-building libspatialite.

Thanks, that's fixed it.

Valorum commented Aug 27, 2013

I am still having this issue..

Chimaera:Library gertjan$ svn --version
dyld: Library not loaded: /usr/local/opt/sqlite/lib/libsqlite3.0.8.6.dylib
  Referenced from: /usr/local/bin/svn
  Reason: image not found
Trace/BPT trap: 5

Did brew update, brew install subversion. Ran into the SQLite SHA1 error, fixed that (and found the fix had been committed at the same time, so rolled back my local change, brew update again to get the new recipe.) brew install subversion, everything goes fine, but then get that error listed above. Not sure how to proceed from here. Anybody?

ETA: When doing brew install subversion, it doesn't do any make or anything like that, just pours it. Is that correct?

Contributor

samueljohn commented Aug 27, 2013

Related mxcl#22132.
brew update and brew install svn --build-from-source should build for you.
If not, try brew reinstall sqlite and then brew install svn --build-from-source

Valorum commented Aug 27, 2013

I don't know what just happened, but ran brew doctor, brew update, and saw the subversion recipe was updated. Did brew uninstall subversion && brew install subversion, and it downloaded a new version then rebuilt the whole thing. Now it works :)

THanks for the answer though, that's good to know!

Contributor

samueljohn commented Aug 27, 2013

cool :-)

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.