Bryce,
RSPM is awesome. Thanks very much for your help.
However, RSPM does not have binaries for all packages. In many cases I am
unable to build packages from source due to gcc++ compiler inadequacy. Any
ideas to work around this issue would be greatly appreciated. For example:
> install.packages("urlparse")
Installing package into
‘/home/ANNALECTWW/steve.vail/R/x86_64-pc-linux-gnu-library/4.5’
(as ‘lib’ is unspecified)
trying URL
'https://packagemanager.posit.co/cran/latest/src/contrib/urlparse_0.2.1.tar.gz'
Content type 'binary/octet-stream' length 124779 bytes (121 KB)
==================================================
downloaded 121 KB
* installing *source* package ‘urlparse’ ...
** this is package ‘urlparse’ version ‘0.2.1’
** package ‘urlparse’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘g++ (GCC) 14.1.0’
g++ -std=gnu++17 -I"/opt/R/4.5.2/lib/R/include" -DNDEBUG
-I'/opt/R/4.5.2/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -g
-O2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++17 -I"/opt/R/4.5.2/lib/R/include" -DNDEBUG
-I'/opt/R/4.5.2/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -g
-O2 -c encoding.cpp -o encoding.o
g++ -std=gnu++17 -I"/opt/R/4.5.2/lib/R/include" -DNDEBUG
-I'/opt/R/4.5.2/lib/R/library/Rcpp/include' -I/usr/local/include -fpic -g
-O2 -c url_parse.cpp -o url_parse.o
g++ -std=gnu++17 -shared -L/opt/R/4.5.2/lib/R/lib -L/usr/local/lib -o
urlparse.so RcppExports.o encoding.o url_parse.o -L/opt/R/4.5.2/lib/R/lib -lR
installing to
/home/ANNALECTWW/steve.vail/R/x86_64-pc-linux-gnu-library/4.5/00LOCK-urlparse/00new/urlparse/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘urlparse’ in dyn.load(file,
DLLpath = DLLpath, ...):
unable to load shared object
'/home/ANNALECTWW/steve.vail/R/x86_64-pc-linux-gnu-library/4.5/00LOCK-urlparse/00new/urlparse/libs/urlparse.so':
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.15' not found
(required by
/home/ANNALECTWW/steve.vail/R/x86_64-pc-linux-gnu-library/4.5/00LOCK-urlparse/00new/urlparse/libs/urlparse.so)
Error: loading failed
Execution halted
ERROR: loading failed
* removing
‘/home/ANNALECTWW/steve.vail/R/x86_64-pc-linux-gnu-library/4.5/urlparse’
The downloaded source packages are in
‘/tmp/RtmpLtlMiA/downloaded_packages’
Warning message:
In utils::install.packages("urlparse") :
installation of package ‘urlparse’ had non-zero exit status
-- Steve Vail
From: Steve Vail (Omnicom) via user <[email protected]>
Date: Friday, January 30, 2026 at 2:28 PM
To: [email protected] <[email protected]>
Cc: Steve Vail (Omnicom) <[email protected]>
Subject: Re: Unable to install R package "arrow" due to older C++ library
version
Bryce,
I am using the usual R installer. It reverts to compilation - apparently there
do not exist arrow binaries for Ubuntu.
Then gcc++ fails due to inadequacy of the library (as cited below).
I just learned about RSPM today, and I am exploring that as a workaround.
-- Steve Vail
From: Bryce Mecum <[email protected]>
Date: Friday, January 30, 2026 at 1:15 PM
To: [email protected] <[email protected]>
Subject: Re: Unable to install R package "arrow" due to older C++ library
version
Hi Steve,
How are you installing the arrow package? Based on what you shared
above, I'm wondering if you're trying to install a binary package
meant for a newer version of Ubuntu than you're running. You might try
RSPM [1] or building from source [2].
[1]
https://packagemanager.posit.co/client/#/repos/cran/packages/overview?search=arrow&distribution=ubuntu-22.04
[2] https://arrow.apache.org/docs/r/articles/install.html
On Fri, Jan 30, 2026 at 6:17 AM Steve Vail (Omnicom) via user
<[email protected]> wrote:
>
> I have an R installation problem involving the “arrow” package on Ubuntu.
>
> Platform: Ubuntu 22.04.5 LTS (an Amazon EC2 vm).
> Application: R version 4.5.1.
> Installing Package: arrow
> Error Message: package or namespace load failed for ‘arrow’ in dyn.load(file,
> DLLpath = DLLpath, ...):
> unable to load shared object
> '/opt/R/4.5.1/lib/R/library/00LOCK-arrow/00new/arrow/libs/arrow.so':
> /lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.15' not found
> (required by
> /opt/R/4.5.1/lib/R/library/00LOCK-arrow/00new/arrow/libs/arrow.so)
> Error: loading failed
> Execution halted
> ERROR: loading failed
>
> Description: the R package arrow requires
> /lib/x86_64-linux-gnu/libstdc++.so.6 version CXXABI_1.3.15
> I upgraded the library to the latest version via apt, but it lacks version
> CXXABI_1.3.15 (it has CXXABI_1.3.14). The only other possible library upgrade
> path seems to involve installing Anaconda which we cannot use due to
> licensing restrictions.
>
>
> Steve Vail
>
> Annalect Data Science
>
> 195 Broadway. NY, NY
>
> 917-476-9591
>
>
>
>
> This email is intended only for the person or entity to which it is addressed
> and may contain information that is privileged, confidential or otherwise
> protected from disclosure. Dissemination, distribution, or copying of this
> email or the information herein by anyone other than the intended recipient,
> or an employee or agent responsible for delivering the message to the
> intended recipient, is prohibited. If you have received this email in error,
> please notify the sender immediately.