Re: [R] Trying to install rjags on Mac OS X 10.5

From: Vincent <vincent.nijs_at_gmail.com>
Date: Sun, 30 Dec 2007 11:07:55 -0800 (PST)

I had the same issue on my Mac. After install pkg-config from MacPorts Martyn suggested to add the following 2 lines to my .bashrc file:

export LD_LIBRARY_PATH="/usr/local/lib"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"

Everything worked after that.

Best,

Vincent

On Dec 30, 11:56 am, Lindsay Stirton
<Lindsay.Stir..._at_manchester.ac.uk> wrote:
> Quoting Prof Brian Ripley <rip..._at_stats.ox.ac.uk>:
>
> > and on my Mac the pkg-config files are in /usr/local/lib/pkgconfig
> > and /usr/lib/pkgconfig. Most likely it would work if PKG_CONFIG_PATH
> > is not set, so try that first.
>
> Thanks--but this still doesn't seem to get me anywhere (see below).
>
> Macintosh:Desktop ljs$ which jags
> /usr/local/bin/jags
> Macintosh:Desktop ljs$ whereis jags
> Macintosh:Desktop ljs$
>
> Last login: Sun Dec 30 17:40:41 on ttys001
> Macintosh:~ ljs$ echo $PKG_CONFIG_PATH
>
> Macintosh:~ ljs$ cd Desktop/
> Macintosh:Desktop ljs$ sudo R CMD INSTALL rjags_1.0.1-1.tar.gz
> * Installing to library '/Library/Frameworks/R.framework/Resources/library'
> * Installing *source* package 'rjags' ...
> checking for pkg-config... /opt/local/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for JAGS... configure: error: Package requirements (jags =
> 1.0.1) were
> not met:
>
> No package 'jags' found
>
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
>
> ERROR: configuration failed for package 'rjags'
> ** Removing '/Library/Frameworks/R.framework/Resources/library/rjags'
> Macintosh:Desktop ljs$
>
> Would I be right in thinking that the problem is not in fiding the path to
> pkg-config but in finding JAGS? I have
>
> Macintosh:Desktop ljs$ which jags
> /usr/local/bin/jags
>
> Best wishes,
>
> Lindsay Stirton
>
> ______________________________________________
> R-h...@r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 31 Dec 2007 - 08:42:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 31 Dec 2007 - 09:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.