brimworks / lua-zip

Lua binding to libzip.
81 stars 25 forks source link

Installation fail? #11

Open slmjkdbtl opened 7 years ago

slmjkdbtl commented 7 years ago
> 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

brimworks commented 7 years ago

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

slmjkdbtl commented 7 years ago

@brimworks Thanks! I will file a report to libzip

jwoertink commented 5 years ago

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.

ogomez92 commented 2 years ago

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