On Sun, 31 May 2009, Matthew Brand wrote:
> Package zbuffer on 64-bit Ubuntu does not run "out-of-the-box" (for me
> it doesn't).
>
> 1. Need to change line 19 of zbuffer.ijs to:
> libf=. libp{:: 'zlibapi'; 'libzlib'; 'zlibwapi';''
> libf=. libp{:: 'zlibapi64'; 'libzlib'; 'zlibwapi';''
>
> however....
>
> 2. The library shipped does not contain the uncompress function:
> m...@mb-laptop:~/j64-602/addons/arc/zip/lib$ nm zlibapi.so | grep uncomp
> m...@mb-laptop:~/j64-602/addons/arc/zip/lib$ nm zlibapi64.so | grep uncomp
> m...@mb-laptop:~/j64-602/addons/arc/zip/lib$ nm /usr/local/lib/libz.so |
> grep uncomp
> 0000000000004b90 T uncompress
>
> Therefore I change line 21 of zbuffer.ijs to:
> LIB=: jpath ADDONDIR,'lib/',libf,'.',libe
> LIB =: '/usr/local/lib/libz.so'
>
> And the following works:
> load 'arc/zip/zbuffer'
> comp =: 3!:1@(#;zput)@(3!:1) : ( c...@] (1!:2) [) NB.
> compress anything.
> ucomp =: 3!:2@(0&{:: zget (1&{::))@(3!:2)`(ucomp@(1!:1))@.(32&=@(3!:0))
>
> ucomp comp i.10
> 0 1 2 3 4 5 6 7 8 9
>
> I do not understand why "libz" and "zlib" are used interchangeably but
> they appear to be meant to be the same thing.
>
> Does anybody else with 64-bit Linux have this problem?
I don't have this problem because I use zlib to compress text but I
don't use zbuffer addon. The zlibapi is written by Oleg and contain
additional api to read/write directory data inside zip files.
Therefore if you only intend to use zlib, you don't need that addon
for working. For example the publish addon use zlib for writing pdf
files.
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩038 李白 關山月
明月出天山 蒼茫雲海間 長風幾萬里 吹度玉門關 漢下白登道 胡窺青海灣
由來征戰地 不見有人還 戍客望邊色 思歸多苦顏 高樓當此夜 歎息未應閑
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm