Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to get the mongo shell to work with readline under osx lion so it picks up my inputrc and I can get all my funky vim bindings.

I tried:

scons -j 16 --64 --extralib=readline --libpath=/usr/local/lib
 --cpppath=/usr/local/include mongo

I thought this worked as:

otool -L ./mongo

But it shows:

./mongo: /usr/local/Cellar/readline/6.2.1/lib/libreadline.6.2.dylib (compatibility version 6.0.0, current version 6.2.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0) /usr/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/local/lib/libboost_program_options-mt.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)

Readline seems to be linked, but the problem is that when I start ./mongo I don't get any keybindings. I don't have any problems with brews deadline on other shell apps like python, ipython, sqllite3, R, etc

What could be wrong?

share|improve this question

migrated from stackoverflow.com Nov 8 '11 at 17:56

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer 1

Readline was replaced with linenoise in the mongoDB shell back in May 2012 and is no longer supported for mongoDB (https://jira.mongodb.org/browse/SERVER-2792). That was committed in the 1.9 branch which became the latest stable release as of writing (2.0.x)

If you are looking to do keybinding customizations then I'd suggest taking a look there, readline support is unlikely to be re-added (https://jira.mongodb.org/browse/SERVER-4053).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.