Fw: does not work out of the box in debian

José Ronquillo josrr at ymail.com
Tue Aug 30 12:55:34 UTC 2016



Hello, i was trying to load cl-ncurses with sbcl in a debian box without success. The problem seems to be that uffi can't find libncurses.so.  In my box this library file is located in this places:
/lib/i386-linux-gnu/libncurses.so.5
/lib/i386-linux-gnu/libncurses.so.5.9
/lib/x86_64-linux-gnu/libncurses.so.5
/lib/x86_64-linux-gnu/libncurses.so.5.9
/usr/lib/x86_64-linux-gnu/libncurses.so

But, package.lisp does not search in any of those paths.  Also it only seems to load .so files.  But in my case the file /usr/lib/x86_64-linux-gnu/libncurses.so is only an ASCII file which content is one line:INPUT(libncurses.so.5 -ltinfo)
Any ideas of what to do?  I tried something like this:
(defun collect-paths (file)
  (with-open-file (s file)
    (loop for line = (read-line s nil nil)
       while line
       if (not (equal (elt line 0) #\#))
       collect line)))
(defvar *ncurses-search-paths*
  #+(and linux (or X86_64 X86-64)) (collect-paths #P"/etc/ld.so.conf.d/x86_64-linux-gnu.conf")
  #+(and linux (not X86_64) (not X86-64)) (collect-paths #P"/etc/ld.so.conf.d/i386-linux-gnu.conf")
  #+(and (not win32) (not linux)) '("/usr/local/lib64/" "/usr/local/lib/" "/lib64/" "/lib/" "/usr/lib64/" "/usr/lib/")
  #+win32 '("/users/jacob/src/pdc31dll/"))
Thanks in advance.






   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-ncurses-devel/attachments/20160830/0897e32d/attachment.html>


More information about the cl-ncurses-devel mailing list