Skip to content
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

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

Closed
infokiller opened this issue May 7, 2016 · 7 comments
Closed

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

infokiller opened this issue May 7, 2016 · 7 comments

Comments

@infokiller
Copy link

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:

  • /usr/lib/libreadline.so*
  • /lib/x86_64-linux-gnu/libreadline.so.*
  • /usr/lib/x86_64-linux-gnu/libreadline.so -> /lib/x86_64-linux-gnu/libreadline.so.6

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
Copy link
Author

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
Copy link
Owner

ardagnir commented May 8, 2016

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
#29 (comment)

@infokiller
Copy link
Author

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
Copy link
Owner

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

@infokiller
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

ardagnir commented Aug 4, 2016

The libdir flag should support this now without extra hackery

@ardagnir ardagnir closed this as completed Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants