Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac os x make services can't work #308

Closed
jiamo opened this issue May 4, 2018 · 3 comments
Closed

mac os x make services can't work #308

jiamo opened this issue May 4, 2018 · 3 comments

Comments

@jiamo
Copy link

jiamo commented May 4, 2018

make services will make nginz while in mac os x

../third_party/nginx-zauth-module/zauth_module.c:6:10: fatal error: 'zauth.h' file not found
#include <zauth.h>
         ^~~~~~~~~
1 error generated.

So I will need install libzauth

➜  wire-server git:(develop) ✗ cd libs/libzauth
➜  libzauth git:(develop) ✗ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C libzauth-c dist
cargo build --release
    Finished release [optimized] target(s) in 0.0 secs
mkdir -p deb/usr/local/include
mkdir -p deb/usr/local/lib/pkgconfig
cp src/zauth.h deb/usr/local/include/
sed -e "s~<<VERSION>>~"3.0.0"~" \
		-e "s~<<PREFIX>>~/usr/local~" \
		src/libzauth.pc > deb/usr/local/lib/pkgconfig/libzauth.pc
cp target/release/libzauth.dylib deb/usr/local/lib/
cp libzauth-c/target/release/*.deb .
cp: libzauth-c/target/release/*.deb: No such file or directory
make: *** [dist] Error 1

while I think in mac os x we don't need deb thing any more.

@tiago-loureiro
Copy link
Contributor

So I will need install libzauth

That's correct; dependencies needed for building nginz are shown here

while I think in mac os x we don't need deb thing any more.

That's right, you don't actually need a debian package; however, the error you describe is actually not problematic, libzauth seems to have compiled properly for you; we will improve on this, @neongreen is currently working on polishing this even further but after building/installing libzauth, you should be able to compile nginz.

@tiago-loureiro
Copy link
Contributor

@jiamo Have you tried building nginz with the latest changes on our develop branch?

@jiamo
Copy link
Author

jiamo commented May 23, 2018

Just have a try. success.

@jiamo jiamo closed this as completed May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants