user1878: I get the error below when I try to make vanitygen according to the instructions listed in "install"
Error from make (short version)
27 warnings generated.
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
pattern.c:32:10: fatal error: 'pcre.h' file not found
#include <pcre.h>
         ^
1 error generated.

Full output of make
my-MacBook-Pro:git-vanitygen admin$ make
cc -ggdb -O3 -Wall   -c -o vanitygen.o vanitygen.c
vanitygen.c:76:11: warning: 'EC_KEY_get0_group' is deprecated
      [-Wdeprecated-declarations]
        pgroup = EC_KEY_get0_group(pkey);
                 ^
vanitygen.c:77:9: warning: 'EC_GROUP_get0_generator' is deprecated
      [-Wdeprecated-declarations]
        pgen = EC_GROUP_get0_generator(pgroup);
               ^
vanitygen.c:80:13: warning: 'EC_POINT_new' is deprecated
      [-Wdeprecated-declarations]
                ppnt[i] = EC_POINT_new(pgroup);
                          ^
vanitygen.c:86:14: warning: 'EC_POINT_new' is deprecated
      [-Wdeprecated-declarations]
        pbatchinc = EC_POINT_new(pgroup);
                    ^
vanitygen.c:92:2: warning: 'BN_set_word' is deprecated
      [-Wdeprecated-declarations]
        BN_set_word(&vxcp->vxc_bntmp, ptarraysize);
        ^
vanitygen.c:93:2: warning: 'EC_POINT_mul' is deprecated
      [-Wdeprecated-declarations]
        EC_POINT_mul(pgroup, pbatchinc, &vxcp->vxc_bntmp, NULL, NULL,
        ^
vanitygen.c:95:2: warning: 'EC_POINT_make_affine' is deprecated
      [-Wdeprecated-declarations]
        EC_POINT_make_affine(pgroup, pbatchinc, vxcp->vxc_bnctx);
        ^
vanitygen.c:124:4: warning: 'EC_KEY_generate_key' is deprecated
      [-Wdeprecated-declarations]
                        EC_KEY_generate_key(pkey);
                        ^
vanitygen.c:128:4: warning: 'EC_GROUP_get_order' is deprecated
      [-Wdeprecated-declarations]
                        EC_GROUP_get_order(pgroup, &vxcp->vxc_bntmp,
                        ^
vanitygen.c:130:4: warning: 'BN_sub' is deprecated [-Wdeprecated-declarations]
                        BN_sub(&vxcp->vxc_bntmp2,
                        ^
vanitygen.c:132:11: warning: 'EC_KEY_get0_private_key' is deprecated
      [-Wdeprecated-declarations]
                               EC_KEY_get0_private_key(pkey));
                               ^
vanitygen.c:133:15: warning: 'BN_get_word' is deprecated
      [-Wdeprecated-declarations]
                        rekey_at = BN_get_word(&vxcp->vxc_bntmp2);
                                   ^
vanitygen.c:138:4: warning: 'EC_POINT_copy' is deprecated
      [-Wdeprecated-declarations]
                        EC_POINT_copy(ppnt[0], EC_KEY_get0_public_key(pkey));
                        ^
vanitygen.c:138:27: warning: 'EC_KEY_get0_public_key' is deprecated
      [-Wdeprecated-declarations]
                        EC_POINT_copy(ppnt[0], EC_KEY_get0_public_key(pkey));
                                               ^
vanitygen.c:145:5: warning: 'EC_POINT_add' is deprecated
      [-Wdeprecated-declarations]
                                EC_POINT_add(pgroup,
                                ^
vanitygen.c:154:5: warning: 'EC_POINT_add' is deprecated
      [-Wdeprecated-declarations]
                                EC_POINT_add(pgroup,
                                ^
vanitygen.c:173:5: warning: 'EC_POINT_add' is deprecated
      [-Wdeprecated-declarations]
                                EC_POINT_add(pgroup,
                                ^
vanitygen.c:192:3: warning: 'EC_POINTs_make_affine' is deprecated
      [-Wdeprecated-declarations]
                EC_POINTs_make_affine(pgroup, nbatch, ppnt, vxcp->vxc_bnctx);
                ^
vanitygen.c:196:10: warning: 'EC_POINT_point2oct' is deprecated
      [-Wdeprecated-declarations]
                        len = EC_POINT_point2oct(pgroup, ppnt[i],
                              ^
vanitygen.c:203:4: warning: 'SHA256' is deprecated [-Wdeprecated-declarations]
                        SHA256(hash_buf, hash_len, hash1);
                        ^
vanitygen.c:204:4: warning: 'RIPEMD160' is deprecated
      [-Wdeprecated-declarations]
                        RIPEMD160(hash1, sizeof(hash1), &vxcp->vxc_binres[1]);
                        ^
vanitygen.c:236:4: warning: 'EC_POINT_free' is deprecated
      [-Wdeprecated-declarations]
                        EC_POINT_free(ppnt[i]);
                        ^
vanitygen.c:238:3: warning: 'EC_POINT_free' is deprecated
      [-Wdeprecated-declarations]
                EC_POINT_free(pbatchinc);
                ^
vanitygen.c:419:18: warning: 'EC_POINT_hex2point' is deprecated
      [-Wdeprecated-declarations]
                        pubkey_base = EC_POINT_hex2point(
                                      ^
vanitygen.c:420:5: warning: 'EC_KEY_get0_group' is deprecated
      [-Wdeprecated-declarations]
                                EC_KEY_get0_group(pkey),
                                ^
vanitygen.c:422:4: warning: 'EC_KEY_free' is deprecated
      [-Wdeprecated-declarations]
                        EC_KEY_free(pkey);
                        ^
vanitygen.c:528:9: warning: 'RAND_load_file' is deprecated
      [-Wdeprecated-declarations]
                opt = RAND_load_file(seedfile, opt);
                      ^
27 warnings generated.
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
pattern.c:32:10: fatal error: 'pcre.h' file not found
#include <pcre.h>
         ^
1 error generated.
make: *** [pattern.o] Error 1


UPDATE 
I suspect that PCRE that is listed also has a OSX port that is listed here, and when I compile according to the instructions I get this error:
make  install-am
 ./install-sh -c -d '/usr/local/lib'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   libpcre.la libpcreposix.la libpcrecpp.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libpcre.1.dylib /usr/local/lib/libpcre.1.dylib
install: /usr/local/lib/libpcre.1.dylib: Permission denied
make[2]: *** [install-libLTLIBRARIES] Error 71
make[1]: *** [install-am] Error 2
make: *** [install] Error 2


user7053: just in case anyone still looking for an answer: in pattern.c just put the full path to pcre.h (use locate pcre.h to find a path for it; if you don't have the file just install pcre package first). It should compile fine afterwards.

user1409: I would recommend using Homebrew or MacPorts to manage this dependency. 
The Homebrew package is simply pcre or pcre++.
brew install pcre pcre++

The MacPorts packages are pcre and pcrexx.
sudo port install pcre pcrexx


1878: <p>I get the error below when I try to <a href="https://github.com/samr7/vanitygen/blob/master/INSTALL" rel="nofollow">make vanitygen according to the instructions listed in "install"</a></p>

<p><strong>Error from make</strong> (short version)</p>

<pre><code>27 warnings generated.
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
pattern.c:32:10: fatal error: 'pcre.h' file not found
#include &lt;pcre.h&gt;
         ^
1 error generated.
</code></pre>

<p><strong>Full output of make</strong></p>

<pre><code>my-MacBook-Pro:git-vanitygen admin$ make
cc -ggdb -O3 -Wall   -c -o vanitygen.o vanitygen.c
vanitygen.c:76:11: warning: 'EC_KEY_get0_group' is deprecated
      [-Wdeprecated-declarations]
        pgroup = EC_KEY_get0_group(pkey);
                 ^
vanitygen.c:77:9: warning: 'EC_GROUP_get0_generator' is deprecated
      [-Wdeprecated-declarations]
        pgen = EC_GROUP_get0_generator(pgroup);
               ^
vanitygen.c:80:13: warning: 'EC_POINT_new' is deprecated
      [-Wdeprecated-declarations]
                ppnt[i] = EC_POINT_new(pgroup);
                          ^
vanitygen.c:86:14: warning: 'EC_POINT_new' is deprecated
      [-Wdeprecated-declarations]
        pbatchinc = EC_POINT_new(pgroup);
                    ^
vanitygen.c:92:2: warning: 'BN_set_word' is deprecated
      [-Wdeprecated-declarations]
        BN_set_word(&amp;vxcp-&gt;vxc_bntmp, ptarraysize);
        ^
vanitygen.c:93:2: warning: 'EC_POINT_mul' is deprecated
      [-Wdeprecated-declarations]
        EC_POINT_mul(pgroup, pbatchinc, &amp;vxcp-&gt;vxc_bntmp, NULL, NULL,
        ^
vanitygen.c:95:2: warning: 'EC_POINT_make_affine' is deprecated
      [-Wdeprecated-declarations]
        EC_POINT_make_affine(pgroup, pbatchinc, vxcp-&gt;vxc_bnctx);
        ^
vanitygen.c:124:4: warning: 'EC_KEY_generate_key' is deprecated
      [-Wdeprecated-declarations]
                        EC_KEY_generate_key(pkey);
                        ^
vanitygen.c:128:4: warning: 'EC_GROUP_get_order' is deprecated
      [-Wdeprecated-declarations]
                        EC_GROUP_get_order(pgroup, &amp;vxcp-&gt;vxc_bntmp,
                        ^
vanitygen.c:130:4: warning: 'BN_sub' is deprecated [-Wdeprecated-declarations]
                        BN_sub(&amp;vxcp-&gt;vxc_bntmp2,
                        ^
vanitygen.c:132:11: warning: 'EC_KEY_get0_private_key' is deprecated
      [-Wdeprecated-declarations]
                               EC_KEY_get0_private_key(pkey));
                               ^
vanitygen.c:133:15: warning: 'BN_get_word' is deprecated
      [-Wdeprecated-declarations]
                        rekey_at = BN_get_word(&amp;vxcp-&gt;vxc_bntmp2);
                                   ^
vanitygen.c:138:4: warning: 'EC_POINT_copy' is deprecated
      [-Wdeprecated-declarations]
                        EC_POINT_copy(ppnt[0], EC_KEY_get0_public_key(pkey));
                        ^
vanitygen.c:138:27: warning: 'EC_KEY_get0_public_key' is deprecated
      [-Wdeprecated-declarations]
                        EC_POINT_copy(ppnt[0], EC_KEY_get0_public_key(pkey));
                                               ^
vanitygen.c:145:5: warning: 'EC_POINT_add' is deprecated
      [-Wdeprecated-declarations]
                                EC_POINT_add(pgroup,
                                ^
vanitygen.c:154:5: warning: 'EC_POINT_add' is deprecated
      [-Wdeprecated-declarations]
                                EC_POINT_add(pgroup,
                                ^
vanitygen.c:173:5: warning: 'EC_POINT_add' is deprecated
      [-Wdeprecated-declarations]
                                EC_POINT_add(pgroup,
                                ^
vanitygen.c:192:3: warning: 'EC_POINTs_make_affine' is deprecated
      [-Wdeprecated-declarations]
                EC_POINTs_make_affine(pgroup, nbatch, ppnt, vxcp-&gt;vxc_bnctx);
                ^
vanitygen.c:196:10: warning: 'EC_POINT_point2oct' is deprecated
      [-Wdeprecated-declarations]
                        len = EC_POINT_point2oct(pgroup, ppnt[i],
                              ^
vanitygen.c:203:4: warning: 'SHA256' is deprecated [-Wdeprecated-declarations]
                        SHA256(hash_buf, hash_len, hash1);
                        ^
vanitygen.c:204:4: warning: 'RIPEMD160' is deprecated
      [-Wdeprecated-declarations]
                        RIPEMD160(hash1, sizeof(hash1), &amp;vxcp-&gt;vxc_binres[1]);
                        ^
vanitygen.c:236:4: warning: 'EC_POINT_free' is deprecated
      [-Wdeprecated-declarations]
                        EC_POINT_free(ppnt[i]);
                        ^
vanitygen.c:238:3: warning: 'EC_POINT_free' is deprecated
      [-Wdeprecated-declarations]
                EC_POINT_free(pbatchinc);
                ^
vanitygen.c:419:18: warning: 'EC_POINT_hex2point' is deprecated
      [-Wdeprecated-declarations]
                        pubkey_base = EC_POINT_hex2point(
                                      ^
vanitygen.c:420:5: warning: 'EC_KEY_get0_group' is deprecated
      [-Wdeprecated-declarations]
                                EC_KEY_get0_group(pkey),
                                ^
vanitygen.c:422:4: warning: 'EC_KEY_free' is deprecated
      [-Wdeprecated-declarations]
                        EC_KEY_free(pkey);
                        ^
vanitygen.c:528:9: warning: 'RAND_load_file' is deprecated
      [-Wdeprecated-declarations]
                opt = RAND_load_file(seedfile, opt);
                      ^
27 warnings generated.
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
pattern.c:32:10: fatal error: 'pcre.h' file not found
#include &lt;pcre.h&gt;
         ^
1 error generated.
make: *** [pattern.o] Error 1
</code></pre>

<hr>

<p><strong>UPDATE</strong> </p>

<p>I suspect that PCRE that is listed <a href="http://www.pcre.org" rel="nofollow">also has a OSX port that is listed here</a>, and when I compile according to the instructions I get this error:</p>

<pre><code>make  install-am
 ./install-sh -c -d '/usr/local/lib'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   libpcre.la libpcreposix.la libpcrecpp.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libpcre.1.dylib /usr/local/lib/libpcre.1.dylib
install: /usr/local/lib/libpcre.1.dylib: Permission denied
make[2]: *** [install-libLTLIBRARIES] Error 71
make[1]: *** [install-am] Error 2
make: *** [install] Error 2
</code></pre>
 7053: <p>just in case anyone still looking for an answer: in pattern.c just put the full path to pcre.h (use locate pcre.h to find a path for it; if you don't have the file just install pcre package first). It should compile fine afterwards.</p>
 1409: <p>I would recommend using Homebrew or MacPorts to manage this dependency. </p>

<p>The Homebrew package is simply <code>pcre</code> or <code>pcre++</code>.</p>

<pre><code>brew install pcre pcre++
</code></pre>

<p>The MacPorts packages are <code>pcre</code> and <code>pcrexx</code>.</p>

<pre><code>sudo port install pcre pcrexx
</code></pre>
