You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@arrow.apache.org by "Steve Vail (Omnicom) via user" <us...@arrow.apache.org> on 2026/02/02 14:10:08 UTC
Re: Unable to install R package "arrow" due to older C++ library version
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 <us...@arrow.apache.org>
Date: Friday, January 30, 2026 at 2:28 PM
To: user@arrow.apache.org <us...@arrow.apache.org>
Cc: Steve Vail (Omnicom) <st...@omc.com>
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 <br...@gmail.com>
Date: Friday, January 30, 2026 at 1:15 PM
To: user@arrow.apache.org <us...@arrow.apache.org>
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
<us...@arrow.apache.org> 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.
Re: Unable to install R package "arrow" due to older C++ library version
Posted by "Steve Vail (Omnicom) via user" <us...@arrow.apache.org>.
Jon,
I am currently able to install arrow and many other package binaries from RSPM. (Yay!)
I hesitate to go back and recreate the original compilation failure for arrow, but
I can assure you that the error was essentially identical to the error compiling package urlparse below.
The problem I am having is that R insists on using library /usr/lib/x86_64-linux-gnu/libstdc++.so.6
which does not contain version CXXABI_1.3.15
There is a newer version of that library on my system at /usr/local/gcc-14.1.0/lib64/libstdc++.so.6
but I am finding it difficult convincing R and the R package installer to use it.
-- Steve Vail
From: Jonathan Keane <jk...@gmail.com>
Date: Monday, February 2, 2026 at 9:33 AM
To: user@arrow.apache.org <us...@arrow.apache.org>
Cc: Steve Vail (Omnicom) <st...@omc.com>
Subject: Re: Unable to install R package "arrow" due to older C++ library version
Would you be able to provide the logs when you try and install arrow
from a repo other than RSPM that trigger compilation. We do supply a
binary of the underlying libarrow on Ubuntu, so I'm surprised you're
running into this, but it would help us understand what's going on if
we had the logs there.
As for the RSPM / Posit Package manager issue: I do see that there are
binaries for urlparse on Ubuntu 22.04 + R 4.5[1] I wonder if maybe you
haven't fully configured this correctly? [2] You should be seeing URLs
like https://packagemanager.posit.co/cran/latest/bin/linux/jammy-x86_64/4.5/src/contrib/urlparse_0.2.1.tar.gz
with the Ubuntu name in the URL when you're getting binaries.
-Jon
[1] — https://packagemanager.posit.co/client/#/repos/cran/packages/overview?search=urlparse&distribution=ubuntu-22.04
[2] — https://packagemanager.posit.co/client/#/repos/cran/setup
-Jon
On Mon, Feb 2, 2026 at 8:12 AM Steve Vail (Omnicom) via user
<us...@arrow.apache.org> wrote:
>
> 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 <us...@arrow.apache.org>
> Date: Friday, January 30, 2026 at 2:28 PM
> To: user@arrow.apache.org <us...@arrow.apache.org>
> Cc: Steve Vail (Omnicom) <st...@omc.com>
> 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 <br...@gmail.com>
> Date: Friday, January 30, 2026 at 1:15 PM
> To: user@arrow.apache.org <us...@arrow.apache.org>
> 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
> <us...@arrow.apache.org> 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.
Re: Unable to install R package "arrow" due to older C++ library version
Posted by Jonathan Keane <jk...@gmail.com>.
Would you be able to provide the logs when you try and install arrow
from a repo other than RSPM that trigger compilation. We do supply a
binary of the underlying libarrow on Ubuntu, so I'm surprised you're
running into this, but it would help us understand what's going on if
we had the logs there.
As for the RSPM / Posit Package manager issue: I do see that there are
binaries for urlparse on Ubuntu 22.04 + R 4.5[1] I wonder if maybe you
haven't fully configured this correctly? [2] You should be seeing URLs
like https://packagemanager.posit.co/cran/latest/bin/linux/jammy-x86_64/4.5/src/contrib/urlparse_0.2.1.tar.gz
with the Ubuntu name in the URL when you're getting binaries.
-Jon
[1] — https://packagemanager.posit.co/client/#/repos/cran/packages/overview?search=urlparse&distribution=ubuntu-22.04
[2] — https://packagemanager.posit.co/client/#/repos/cran/setup
-Jon
On Mon, Feb 2, 2026 at 8:12 AM Steve Vail (Omnicom) via user
<us...@arrow.apache.org> wrote:
>
> 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 <us...@arrow.apache.org>
> Date: Friday, January 30, 2026 at 2:28 PM
> To: user@arrow.apache.org <us...@arrow.apache.org>
> Cc: Steve Vail (Omnicom) <st...@omc.com>
> 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 <br...@gmail.com>
> Date: Friday, January 30, 2026 at 1:15 PM
> To: user@arrow.apache.org <us...@arrow.apache.org>
> 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
> <us...@arrow.apache.org> 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.