ldconfig worked a treat. Thanks Michael & Dirk - I really appreciate your help.
On 27 May 2010 14:24, Dirk Eddelbuettel <e...@debian.org> wrote: > > On 27 May 2010 at 09:06, Michael Rutter wrote: > | > | > | On 05/27/2010 07:31 AM, Dirk Eddelbuettel wrote: > | > > | > On 27 May 2010 at 07:15, Michael Rutter wrote: > | > | > | > | > | > | On 05/27/2010 05:23 AM, Scott Brogan wrote: > | > |> I've not been able to install rjags successfully in Ubuntu 10.04 : > | > |> > | > |> ** testing if installed package can be loaded > | > |> Error : .onLoad failed in loadNamespace() for 'rjags', details: > | > |> call: dyn.load(file, DLLpath = DLLpath, ...) > | > |> error: unable to load shared library > | > |> '/home/scott/R/i486-pc-linux-gnu-library/2.11/rjags/libs/rjags.so': > | > |> libjags.so.2: cannot open shared object file: No such file or > directory > | > |> ERROR: loading failed > | > |> > | > |> I've tried with different versions of both JAGS& rjags; lastly with > R > | > |> 2.11.0, JAGS 2.1.0,& rjags_2.1.0-4. Could anyone help ? > | > |> > | > | > | > | Scott, > | > | > | > | I also had trouble installing rjags in 10.04. I got the same error you > | > | did, even though I could see the .so files. The fix (I think, I tried > | > | lots of things) was to run 'ldconfig', then launch R and install the > | > | package. Apparently, my jags install did not update the libraries. > | > > | > Excellent -- bug in my package as I do 'catch-all' package jags (as > opposed > | > to libjags, libjags-dev, ...) and use packaging default so this got > omitted. > | > > | > Will fix. Thanks for catching that, and sorry for any inconvenience > caused. > | > > | > Dirk > | > > | > | I do need to point out that I installed jags from the source files > | (http://sourceforge.net/projects/mcmc-jags/files/). Then I installed > | rjags from within R, after I did the 'ldconfig' command. > > Ack, and my bad -- I should have checked. > > The packaging is much smarter than I gave it credit for and _does_ of course > include a call to ldconfig in its postinst. So maybe next time you want to > try 'apt-get source -b jags' (after adding a deb-src entry that points to > unstable to your /etc/apt/sources.list) ? > > -- > Regards, Dirk > _______________________________________________ R-SIG-Debian mailing list R-SIG-Debian@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-debian