New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX sqlite3 readline support seems broken #307

Open
pearsonca opened this Issue Apr 15, 2015 · 10 comments

Comments

Projects
None yet
@pearsonca

pearsonca commented Apr 15, 2015

After installing Anaconda, I noticed that I no longer had readline support in sqlite3. I checked which sqlite3 and indeed it now points the Anaconda version. When I invoke the version @ /usr/bin/sqlite3 (not sure the provenance of that - I think I obtained it via homebrew), readline support is fine.

@pearsonca

This comment has been minimized.

Show comment
Hide comment
@pearsonca

pearsonca Apr 15, 2015

Extra info:

me$ otool -L $(which sqlite3)
/Volumes/Data/me/anaconda/bin/sqlite3:
    @loader_path/../lib/libsqlite3.0.dylib (compatibility version 9.0.0, current version 9.6.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)
me$ otool -L $(which /usr/bin/sqlite3)
/usr/bin/sqlite3:
    /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
    /usr/lib/libsqlite3.dylib (compatibility version 9.0.0, current version 168.0.0)
    /usr/lib/libedit.3.dylib (compatibility version 2.0.0, current version 3.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)

pearsonca commented Apr 15, 2015

Extra info:

me$ otool -L $(which sqlite3)
/Volumes/Data/me/anaconda/bin/sqlite3:
    @loader_path/../lib/libsqlite3.0.dylib (compatibility version 9.0.0, current version 9.6.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)
me$ otool -L $(which /usr/bin/sqlite3)
/usr/bin/sqlite3:
    /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
    /usr/lib/libsqlite3.dylib (compatibility version 9.0.0, current version 168.0.0)
    /usr/lib/libedit.3.dylib (compatibility version 2.0.0, current version 3.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
@ahmadia

This comment has been minimized.

Show comment
Hide comment
@ahmadia

ahmadia Apr 15, 2015

/usr/bin/sqlite3 (not sure the provenance of that - I think I obtained it via homebrew)

It's almost certainly not homebrew's, since homebrew installs into /usr/local/bin. I'm guessing it is installed by the system (or the XCode SDK). Here is the OS X man page.

ahmadia commented Apr 15, 2015

/usr/bin/sqlite3 (not sure the provenance of that - I think I obtained it via homebrew)

It's almost certainly not homebrew's, since homebrew installs into /usr/local/bin. I'm guessing it is installed by the system (or the XCode SDK). Here is the OS X man page.

@krader1961

This comment has been minimized.

Show comment
Hide comment
@krader1961

krader1961 Jun 9, 2015

I noticed this recently as well. I have sqlite3 installed via HomeBrew and Anaconda. Until a few days ago when I updated both environments I didn't notice a problem with readline support in the sqlite3 interactive CLI. Now I see that the Anaconda verision

3.8.4.1 2014-03-11 15:27:36 018d317b1257ce68a92908b05c9c7cf1494050d0

does not support readline while the Homebrew version

3.8.10.2 2015-05-20 18:17:19 2ef4f3a5b1d1d0c4338f8243d40a2452cc1f7fe4

does support readline. I don't know if I've ever tried to use readline support in the Anaconda version. Primarily because I don't always pay attention to whether an Anaconda environment is active when I run a command like sqlite3. Yet, based on my ~/conda/pkgs directory it appears I've had an Anaconda version of sqlite3 installed for at least year. Which makes it unlikely I wouldn't have noticed this change in behavior until the past few weeks.

krader1961 commented Jun 9, 2015

I noticed this recently as well. I have sqlite3 installed via HomeBrew and Anaconda. Until a few days ago when I updated both environments I didn't notice a problem with readline support in the sqlite3 interactive CLI. Now I see that the Anaconda verision

3.8.4.1 2014-03-11 15:27:36 018d317b1257ce68a92908b05c9c7cf1494050d0

does not support readline while the Homebrew version

3.8.10.2 2015-05-20 18:17:19 2ef4f3a5b1d1d0c4338f8243d40a2452cc1f7fe4

does support readline. I don't know if I've ever tried to use readline support in the Anaconda version. Primarily because I don't always pay attention to whether an Anaconda environment is active when I run a command like sqlite3. Yet, based on my ~/conda/pkgs directory it appears I've had an Anaconda version of sqlite3 installed for at least year. Which makes it unlikely I wouldn't have noticed this change in behavior until the past few weeks.

@ncoghlan

This comment has been minimized.

Show comment
Hide comment
@ncoghlan

ncoghlan Jul 6, 2015

I recently saw this at a Software Carpentry workshop on an attendees's Ubuntu system, so this may not be Mac OS X specific - the Anaconda built sqlite3 may simply not have readline support enabled properly.

ncoghlan commented Jul 6, 2015

I recently saw this at a Software Carpentry workshop on an attendees's Ubuntu system, so this may not be Mac OS X specific - the Anaconda built sqlite3 may simply not have readline support enabled properly.

@gokceneraslan

This comment has been minimized.

Show comment
Hide comment
@gokceneraslan

gokceneraslan May 26, 2016

This is not OS X specific, also reproducible on Linux. Please update the title and rebuild it with readline support :)

gokceneraslan commented May 26, 2016

This is not OS X specific, also reproducible on Linux. Please update the title and rebuild it with readline support :)

@dpshelio

This comment has been minimized.

Show comment
Hide comment
@dpshelio

dpshelio Jun 27, 2016

Same problem here, I've seen it in OS X and Linux. Using the shipped one with either works as expected, with the one from Anaconda doesn't show the readline support.

dpshelio commented Jun 27, 2016

Same problem here, I've seen it in OS X and Linux. Using the shipped one with either works as expected, with the one from Anaconda doesn't show the readline support.

@ilanschnell

This comment has been minimized.

Show comment
Hide comment
@ilanschnell

ilanschnell Jun 27, 2016

Contributor

We don't compile sqlite with readline support, see https://github.com/ContinuumIO/anaconda-recipes/blob/master/sqlite/build.sh#L11
We should probably consider doing so.

Contributor

ilanschnell commented Jun 27, 2016

We don't compile sqlite with readline support, see https://github.com/ContinuumIO/anaconda-recipes/blob/master/sqlite/build.sh#L11
We should probably consider doing so.

@saiwing-yeung

This comment has been minimized.

Show comment
Hide comment
@saiwing-yeung

saiwing-yeung Jun 27, 2016

Please support readline~

saiwing-yeung commented Jun 27, 2016

Please support readline~

@jakirkham

This comment has been minimized.

Show comment
Hide comment
@jakirkham

jakirkham Sep 23, 2016

We are trying to do this at conda-forge in PR ( conda-forge/sqlite-feedstock#7 ), but it appears to be a real pain to make sure readline is picked up from the environment and not the system. Suggestions welcome.

jakirkham commented Sep 23, 2016

We are trying to do this at conda-forge in PR ( conda-forge/sqlite-feedstock#7 ), but it appears to be a real pain to make sure readline is picked up from the environment and not the system. Suggestions welcome.

@plison

This comment has been minimized.

Show comment
Hide comment
@plison

plison Feb 24, 2017

Any updates on this?

plison commented Feb 24, 2017

Any updates on this?

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