<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">So why does the directory   /usr/include/hiredis   get omitted on OS X?</blockquote>
<div class="gmail_extra"><br></div><div class="gmail_extra">I think this might be a general quirk on OS X. I recall having to manually set the "-I/usr/local/include" flag for any compilations that need local libraries.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Best,</div><div class="gmail_extra"><div><div>--</div>Hao Ye<br><a href="mailto:hye@ucsd.edu" target="_blank">hye@ucsd.edu</a></div>
<br><br><div class="gmail_quote">On Sun, May 11, 2014 at 9:24 AM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Hi Hao,<br>
<br>
Thanks for the quick reply.<br>
<div class=""><br>
On 11 May 2014 at 09:00, Hao Ye wrote:<br>
| Hi Dirk,<br>
|<br>
| Did [2], then [1]. No build errors, but I get the following warnings:<br>
|<br>
| > checking hiredis/hiredis.h usability... configure: WARNING: Hiredis headers not found with via default CXXFLAGS and CPPFLAGS<br>
| > configure: WARNING: manually trying /usr/local/include<br>
| > configure: WARNING: Unsetting ac_cv_header_hiredis_hiredis_h<br>
<br>
</div>Ok, when I do 'make install' (or, in this case, make -n install) with hiredis<br>
I get (showing the relevant two out of maybe twelve lines)<br>
<br>
mkdir -p /usr/local/include/hiredis /usr/local/lib<br>
cp -a hiredis.h async.h adapters /usr/local/include/hiredis<br>
<br>
which is congruent with hiredis' Makefile which has<br>
<br>
# Installation related variables and target<br>
PREFIX?=/usr/local<br>
INSTALL_INCLUDE_PATH= $(PREFIX)/include/hiredis<br>
<br>
So why does the directory   /usr/include/hiredis   get omitted on OS X?<br>
<span class=""><font color="#888888"><br>
Dirk<br>
</font></span><div class=""><div class="h5"><br>
<br>
| OS X 10.9.2<br>
| compiler: Apple LLVM version 5.1 (clang-503.0.40)<br>
| R: 3.0.2<br>
|<br>
| Best,<br>
| --<br>
| Hao Ye<br>
| <a href="mailto:hye@ucsd.edu">hye@ucsd.edu</a><br>
|<br>
| On May 11, 2014, at 8:11 AM, Dirk Eddelbuettel <<a href="mailto:edd@debian.org">edd@debian.org</a>> wrote:<br>
|<br>
| ><br>
| > I'd appreciate if someone running OS X could run a quick test for me.  I am<br>
| > getting RcppRedis (formerly rhiredis) ready for CRAN. As I had been working<br>
| > on this for a bit, I had some email with Simon who had already prepared a<br>
| > tarball of the required hiredis library.<br>
| ><br>
| > However, Simon's tarball contains   usr/local/include/hiredis.h   and by my<br>
| > reckoning based on a number of other projects using hiredis, as well as<br>
| > hiredis's Makefile, this should be   usr/local/include/hiredis/hiredis.h<br>
| > as the standard use is '#include <hiredis/hiredis.h>' which won't work with<br>
| > his current layout.<br>
| ><br>
| > So here is goes:  Could someone on OS X quickly build RcppRedis [1] against<br>
| > either a local 'make; make install' of hiredis [2] -- or against Simon's<br>
| > tarball [3] but WITH the suggested modification from the last paragraph (eg<br>
| >  mkdir /usr/local/include/hiredis<br>
| >  mv /usr/local/include/hiredis.h /usr/local/include/hiredis/<br>
| > You also need the new-ish and small RApiSerialize package from CRAN.<br>
| ><br>
| > My current assumption is that my configure logic in the package is good<br>
| > enough, and this would provide a litmus test I can't run myself for lack of<br>
| > an OS X box.<br>
| ><br>
| > Thanks a lot to whoever has a few minutes to spare on this.<br>
| ><br>
| > Dirk<br>
| ><br>
| ><br>
| > [1] <a href="https://github.com/eddelbuettel/rcppredis" target="_blank">https://github.com/eddelbuettel/rcppredis</a><br>
| > [2] <a href="https://github.com/redis/hiredis" target="_blank">https://github.com/redis/hiredis</a><br>
| > [3] <a href="http://r.research.att.com/libs/hiredis-0.11.0-darwin10-bin2.tar.gz" target="_blank">http://r.research.att.com/libs/hiredis-0.11.0-darwin10-bin2.tar.gz</a><br>
| ><br>
| > --<br>
| > Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
| > _______________________________________________<br>
| > Rcpp-devel mailing list<br>
| > <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
| > <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
|<br>
<br>
--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
</div></div></blockquote></div><br></div></div>