[Rcpp-devel] [OT] Asking for a quick OS X favour

Hao Ye hye at ucsd.edu
Sun May 11 18:41:51 CEST 2014


>
> So why does the directory   /usr/include/hiredis   get omitted on OS X?


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.

Best,
--
Hao Ye
hye at ucsd.edu


On Sun, May 11, 2014 at 9:24 AM, Dirk Eddelbuettel <edd at debian.org> wrote:

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


More information about the Rcpp-devel mailing list