lua-zip icon indicating copy to clipboard operation
lua-zip copied to clipboard

Installation fail?

Open slmjkdbtl opened this issue 8 years ago • 4 comments

> sudo luarocks install --server=http://luarocks.org/dev lua-zip

Installing http://luarocks.org/dev/lua-zip-git-1.rockspec...
Using http://luarocks.org/dev/lua-zip-git-1.rockspec... switching to 'build' mode
Cloning into 'lua-zip'...
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 11 (delta 0), reused 7 (delta 0), pack-reused 0
Receiving objects: 100% (11/11), 12.91 KiB | 6.45 MiB/s, done.
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/local/include -c lua_zip.c -o lua_zip.o -I/usr/local/include
In file included from lua_zip.c:3:
/usr/local/include/zip.h:59:10: fatal error: 'zipconf.h' file not found
#include <zipconf.h>
         ^
1 error generated.

Error: Build error: Failed compiling object lua_zip.o

libzip is installed via brew

slmjkdbtl avatar Aug 16 '17 05:08 slmjkdbtl

It appears that brew install libzip is not installing zipconf.h. A quick fix for you is to run these commands:

cp /usr/local/Cellar/libzip/1.2.0/lib/libzip/include/zipconf.h /usr/local/Cellar/libzip/1.2.0/include/zipconf.h
ln -sf ../Cellar/libzip/1.2.0/include/zipconf.h /usr/local/include/zipconf.h

...a more permanent fix is to file a bug report with the brew "libzip" Formula.

Thanks, -Brian

brimworks avatar Aug 16 '17 15:08 brimworks

@brimworks Thanks! I will file a report to libzip

slmjkdbtl avatar Aug 16 '17 16:08 slmjkdbtl

I just ran in to this. I did brew upgrade libzip thenluarocks install love-release for macOS 10.14.5 and it installed. Just FYI for anyone else that happens to come across this.

jwoertink avatar Jul 08 '19 01:07 jwoertink

not working for me.. Using an M1 mac, please help

ogomez92 avatar Dec 12 '21 07:12 ogomez92