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 ?
On 27 May 2010 at 10:23, 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 ? Where did you get JAGS from? Can you download the source to the Debian package? We are current there as I upgraded the Debian package to 2.1.0 --- and whenever I need more-current-than-in-Ubuntu packages from Debian, I get the sources and rebuild the Debian package locally on my Ubuntu machine (and stick it into a local repository etc pp which more than you'd need) -- Regards, Dirk
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. Hope this helps, Michael -- Dr. Michael A. Rutter School of Science Penn State Erie, The Behrend College Station Road Erie, PA 16563 http://math.bd.psu.edu/faculty/rutter
Il giorno gio, 27/05/2010 alle 10.23 +0100, Scott Brogan ha scritto:> I've not been able to install rjags successfully in Ubuntu 10.04 : > ......Dear members of the list, I'm trying to re-install the couple JAGS/rjags on my system.> Ubuntu 10.04 (on amd64) > GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version2.18.0) > ESS version 5.11 > R 2.12.0I had JAGS/rjags installed on the same system one year ago by a colleague of mine which is not currently available for help. At the time I had R 2.9.0 installed on ubuntu 8.04 and everything was working as expected. Some months ago I moved to ubuntu 10.04 and forgot to update my /etc/apt/sources.list with lines like:> deb http://cran.stat.unipd.it/bin/linux/ubuntu lucid/ > deb http://it.archive.ubuntu.com/ubuntu/ lucid-backports main > restricted universeso I was working unconsciously with R 2.9.0/rjags/JAGS until a couple of weeks ago. I then update sources.list and consequently moved to R 2.11 (and R 2.12), upgraded all the libraries. I did not worked with JAGS/rjags for a while, but I did not noticed any problem. Yesterday I went back to a project where I need JAGS/rjags and my problems started. JAGS seems to work, since from the terminal I can get> ottorino at ottorino-amd:~$ jags > Welcome to JAGS 1.0.4 on Thu Nov 4 14:29:14 2010 > JAGS is free software and comes with ABSOLUTELY NO WARRANTY > Loading module: basemod > Loading module: bugs > .>From the terminalsudo R and from within R install.packages("rjags") results in ....... configure: error: "Cannot load JAGS library in /usr/local/lib" ERROR: configuration failed for package ?rjags? * removing ?/usr/local/lib/R/site-library/rjags? I get the same error on install.packages("rjags", configure.args=" --with-jags-lib=/usr/local/lib/JAGS --with-jags-modules=/usr/local/lib/JAGS/modules") and on install.packages("rjags", configure.args=" --with-jags-lib=/usr/local/lib64/JAGS --with-jags-modules=/usr/local/lib64/JAGS/modules") I've googled around and tried the directions written here http://yusung.blogspot.com/2009/01/install-jags-and-rjags-in-fedora.html and here http://quote.ucsd.edu/blogs/rogblog/2008/11/09/installing-rjags-on-64-bit-debian-etch/ but without success. Any hint ? -- Ottorino-Luca Pantani, Universit? di Firenze Dip.to di Scienze delle Produzioni Vegetali, del Suolo e dell'Ambiente Forestale (DiPSA) P.zle Cascine 28 50144 Firenze Italia