PadBuster on MacOS Sierra

Pichaya Morimoto
Feb 15, 2017 · 1 min read

ลง perl module สำหรับใช้ PadBuster ใน MacOS Sierra แก้ปัญหา Apple ไม่ลง openssl header มาให้ เหมือนเมื่อก่อน

$ perl -MCPAN -e ‘install Crypt::SSLeay’
openssl-version.c:2:10: fatal error: ‘openssl/opensslv.h’ file not found
$ brew install openssl
$ vim /.cpan/CPAN/
‘make_arg’ => q[LDFLAGS=-L/usr/local/opt/openssl/lib CPPFLAGS=-I/usr/local/opt/openssl/include CFLAGS=-I/usr/local/opt/openssl/include],
$ perl -MCPAN -e ‘install Crypt::SSLeay’

SSLeay.xs:35:10: fatal error: ‘openssl/ssl.h’ file not found
#include <openssl/ssl.h>
1 error generated.

$ cd ~/.cpan/build/Crypt-SSLeay-0.72-suyCNw/
$ vim Makefile

CCFLAGS = -arch x86_64 -arch i386 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/opt/openssl/include

$ make
$ sudo make install
$ perl

Pichaya Morimoto

Written by

More From Medium

Also tagged Programming

Top on Medium

Ed Yong
Mar 25 · 22 min read


Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade