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

Build failure with GHC 7.10 #65

Closed
ethercrow opened this issue Jan 1, 2015 · 7 comments
Closed

Build failure with GHC 7.10 #65

ethercrow opened this issue Jan 1, 2015 · 7 comments

Comments

@ethercrow
Copy link
Contributor

 ~/src/vty % cabal --version
cabal-install version 1.22.0.0
using version 1.22.0.0 of the Cabal library

 ~/src/vty % ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.0.20141222

 ~/src/vty % cabal build
Building vty-5.2.6...
Preprocessing library vty-5.2.6...
[21 of 33] Compiling Graphics.Vty.PictureToSpans ( src/Graphics/Vty/PictureToSpans.hs, dist/build/Graphics/Vty/PictureToSpans.o )
<command line>: can't load .so/.DLL for: libtinfo.so (libtinfo.so: cannot open shared object file: No such file or directory)
@coreyoconnor
Copy link
Contributor

Thanks!
I don't have a 7.10 environment yet. I'll try installing vty once I do. I don't have a system that uses libtinfo. AFAICT libtinfo.so is a alias for ncurses?

Looks like a template haskell environment issue.

Template haskell cannot find the .so for this library. Typically this occurs if the --extra-lib-dirs does not contain libtinfo.so (or libncurses.so in my case).

What are the configure options and where is libtinfo.so location? EG: shared/static?

@ethercrow
Copy link
Contributor Author

I've managed to install vty on that machine (gentoo without libtinfo.so) after cloning terminfo, running autoreconf and cabal-installing it. I'm not sure what's the root cause, maybe a hackage version of terminfo has configure script expecting libtinfo.so to be available.

@coreyoconnor
Copy link
Contributor

Closing in favor of #82.
This is another "bug" caused by requiring a native terminfo library. Too bad I didn't keep a list of all the pain points in setting up build environments properly because of this. haha. There are a lot.

@shanemikel
Copy link

I'm having this problem on OpenSUSE. On some forum I read that curses split into two libraries, and a recommendation to symlink libtinfo to libncurses, but I can't do that. I'd love to see this fixed, as I'm interested in trying http://yi-editor.github.io/

@coreyoconnor
Copy link
Contributor

As stated previously: this is an issue with terminfo library. Not vty. Please file an issue with that project.

@shanemikel
Copy link

I'm not complaining, I'm voting for moving over to the terminfo-hs library... actually I guess that comment belonged in #82

@coreyoconnor
Copy link
Contributor

Ah! My apologies. Yes: definitely vote for #82. :)

On Sun, Dec 27, 2015, 9:49 AM shanemikel notifications@github.com wrote:

I'm not complaining, I'm voting for moving over to the terminfo-hs
library... actually I guess that comment belonged in #82
#82


Reply to this email directly or view it on GitHub
#65 (comment).

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

3 participants