ardagnir / athame

Full vim for your shell (bash, zsh, gdb, python, etc)
GNU General Public License v3.0
1.63k stars 34 forks source link

Not working, possibly because of multi arch readline libs #29

Closed infokiller closed 8 years ago

infokiller commented 8 years ago

I installed athame and tested it using ipython but it doesn't seem to work. I used pmap to verify that the ipython process indeed uses the system readline libs. I think the problem might be that I see two distinct readline libraries and one more symbolic links:

Following the installation script, it seems that only the first one was patched (by the modification time of the file).

What's the best way to solve this?

Thanks!

infokiller commented 8 years ago

I was able to force it to use the patched readline version by running:

LD_LIBRARY_PATH=/usr/lib ipython

However, I got the following error:

Athame Failure: No athamerc found.

I checked and noticed that /etc/athamerc didn't have global read permissions. I added them and now I'm getting the following error:

Athame Failure: Vimbed failure.
ardagnir commented 8 years ago

I'll look into this when I get a chance but I think this might be fixed in the newest unstable branch of athame (0.whatever) if you run setup with the correct --libdir. I've done a lot of work on compatibility that hasn't made it into master yet.

Alternately, with master and your path flag tweak, you can try looking in your libraries for vimbed and put it in the other one. (Move it from multiarch to /usr/lib or vice versa) On May 7, 2016 7:22 PM, "infokiller" notifications@github.com wrote:

I was able to force it to use the patched readline version by running:

LD_LIBRARY_PATH=/usr/lib ipython

However, I got the following error:

Athame Failure: No athamerc found.

I checked and noticed that /etc/athamerc didn't have global read permissions. I added them and now I'm getting the following error:

Athame Failure: Vimbed failure.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/ardagnir/athame/issues/29#issuecomment-217676307

infokiller commented 8 years ago

Thanks @ardagnir for the quick response! I'll try the newest unstable branch.

I don't understand your alternative suggestion- what do you mean by looking in my libraries for vimbed?

ardagnir commented 8 years ago

Vimbed is at $libdir/athame_readline. You might need to move it to the multiarch lib.

infokiller commented 8 years ago

This issue was solved once installed vimbed (using my plugin manager). Any idea why that solved it? Shouldn't that be done in the installation script?

ardagnir commented 8 years ago

Vimbed is installed in a lib dir so that it is only loaded by programs that need it at whatever versions they need. Athame is probably telling vim the wrong location for the lib because you changed the env variable, but since you installed a copy of vimbed with your plugin manager, vim is just using that one.

ardagnir commented 8 years ago

The libdir flag should support this now without extra hackery