tonyhffong / TermWin.jl

ncurses based data navigators
Other
26 stars 11 forks source link

Error loading library #21

Open ackalker opened 8 years ago

ackalker commented 8 years ago

Using TermWin package on Arch Linux X86_64, Julia version 0.4.5, I get the following error:

julia> using TermWin

julia> ex = :( f(x) = x*x + 2x + 1 )
:(f(x) = begin  # none, line 1:
            x * x + 2x + 1
        end)

julia> tshow(ex)
ERROR: error compiling tshow: error compiling __tshow#33__: error compiling initsession: could not load library "libncurses"
libncurses: cannot open shared object file: No such file or directory

The libncurses library does exist on my system, but /usr/lib/libncurses.so is actually a linker script:

$ cat /usr/lib/libncurses.so
INPUT(-lncursesw)
ackalker commented 8 years ago

I've created a pull request with a suggested fix/workaround. Any comments are very welcome.

tonyhffong commented 8 years ago

Yes, it's very possible that this package has issues in linux. Others have report rendering issue. I'll merge your PR. By any case your fix may also impact https://github.com/tonyhffong/TermWin.jl/issues/13, hopefully in a positive way?

ackalker commented 8 years ago

Display looks fine here, thanks for merging :)