Skip to content
Prev 1882 / 3656 Next

Multiple sub-architecture: linking issue

This is a follow up of the r-devel post:
https://stat.ethz.ch/pipermail/r-devel/2012-June/064271.html
On 11/06/2012 12:36, Dirk Eddelbuettel wrote:
I upgraded Ubuntu to 12.04 and installation of most packages work, so 
the issue must have been due to missing system packages as Simon suggested.
I still have an issue with RCurl though. It appeared when wanting to 
install 'devtools' but seems to be more general:

```
* installing *source* package ?devtools? ...
** package ?devtools? successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - amd64
*** arch - i386
Error in library.dynam(lib, package, package.lib) :
shared object ?RCurl.so? not found
Error: loading failed
Execution halted
ERROR: loading failed for ?i386?
* removing ?/home/renaud/bin/R/2.15/lib/R/library/devtools?
* restoring previous ?/home/renaud/bin/R/2.15/lib/R/library/devtools?

The downloaded source packages are in
?/tmp/RtmphErtgP/downloaded_packages?
Updating HTML index of packages in '.Library'
Making packages.html ... done
Warning message:
In install.packages("devtools", repos = "http://cran.r-project.org") :
installation of package ?devtools? had non-zero exit status
```

I noticed that when installing RCurl, it seems to only compile for the 
current session's architecture, while other packages build on both 
architectures, whether called from a 32 or 64 bits session.
So RCurl is then typically only available on one architecture, and any 
install depending on it would fail.
Is anybody able to reproduce this?
Ok, I should have been stayed away from such a general statement :)
While the upgrade or fresh install+restore packages takes a couple of 
hours, I often spend the rest of the day to get the environment 
identical to what I had before upgrading. Nothing too funky: re-figure 
out things like how I to get through an annoying proxy, and deal with 
surprises in new versions of some apps, etc..
For sure my upgrade workflow is far from optimal. Upgrades are 
eventually just a -- frustrating -- day :)

Renaud