Closed msummersgill closed 1 year ago
Hi @msummersgill , thank you for reporting this.
I likely need to add in some footnotes for the linux binary. Yes binaries for linux are not as self-contained as for win and mac, and this pre-built here can be hit or miss.
The binary was build on a github machine "ubuntu-latest". I read in the glibc docs that all versions are backwards compatible. You might therefore get away with updating glibc to any version >=2.34
I you manage to use the binary by e.g. upgrading to 2.34, I would very lover to hear about it, to add this as footnotes.
I wanted to test binaries wsl, but unfortunately my spare windows computer had a bad tantrum to night.
After doing some reading, I'm more than a little bit wary of upgrading in place.
But it is not so easy for glibc. Glibc, by its virtue as THE system library, it is used by all programs including many of programs that are involved in an upgrade process - doing so is the equivalent of pulling out the rug under which one is standing. It can be done, but it's tricky.
I'm a little bit out of my depth here, but the accepted answer to this stack over question makes me wonder if updating the makefile to include the following might make the resulting binary more broadly usable.
rustup target add x86_64-unknown-linux-musl
cargo build [... existing arguments...] --target x86_64-unknown-linux-musl
Many thanks @msummersgill for suggestions. I will give it a try :)
@msummersgill I wanted to investigate the issue and got lucky:
Not sure why it worked, but maybe the glibc dependency is some how handled by app-get or something.
Maybe it is this line Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
In which way did you install WSL and R?
Windows Subsystem for Linux is now available in the Microsoft Store!
You can upgrade by running 'wsl.exe --update' or by visiting https://aka.ms/wslstorepage
Installing WSL from the Microsoft Store will give you the latest WSL updates, faster.
For more information please visit https://aka.ms/wslstoreinfo
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
This message is shown once a day. To disable it please create the
/home/ubuntu/.hushlogin file.
ubuntu@DESKTOP-NIQG5GO:~$ wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo gpg --dearmor -o /usr/share/keyrings/r-project.gpg
[sudo] password for ubuntu:
ubuntu@DESKTOP-NIQG5GO:~$ echo "deb [signed-by=/usr/share/keyrings/r-project.gpg] https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/" | sudo tee -a /etc/apt/sources.list.d/r-project.list
deb [signed-by=/usr/share/keyrings/r-project.gpg] https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/
ubuntu@DESKTOP-NIQG5GO:~$ sudo apt update
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:4 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease [3626 B]
Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB]
Get:7 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ Packages [26.7 kB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [693 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [143 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [9016 B]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [645 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy/universe Translation-en [5652 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [100 kB]
Get:14 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [588 B]
Get:15 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [714 kB]
Get:16 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [118 kB]
Get:17 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [14.1 kB]
Get:18 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [19.4 kB]
Get:19 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [4068 B]
Get:20 http://archive.ubuntu.com/ubuntu jammy/universe amd64 c-n-f Metadata [286 kB]
Get:21 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [228 B]
Get:22 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [217 kB]
Get:23 http://archive.ubuntu.com/ubuntu jammy/multiverse Translation-en [112 kB]
Get:24 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata [8372 B]
Get:25 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [949 kB]
Get:26 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [205 kB]
Get:27 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [13.8 kB]
Get:28 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [684 kB]
Get:29 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [107 kB]
Get:30 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [584 B]
Get:31 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [895 kB]
Get:32 http://archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [179 kB]
Get:33 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [18.4 kB]
Get:34 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [24.1 kB]
Get:35 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [6312 B]
Get:36 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [444 B]
Get:37 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [40.7 kB]
Get:38 http://archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [9800 B]
Get:39 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [392 B]
Get:40 http://archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B]
Get:41 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [19.5 kB]
Get:42 http://archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [14.0 kB]
Get:43 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [392 B]
Get:44 http://archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]
Fetched 26.4 MB in 6s (4351 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
73 packages can be upgraded. Run 'apt list --upgradable' to see them.
ubuntu@DESKTOP-NIQG5GO:~$ sudo apt install --no-install-recommends r-base
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
fontconfig fontconfig-config fonts-dejavu-core libblas3 libcairo2 libdatrie1 libdeflate0 libfontconfig1 libfreetype6 libgfortran5 libgomp1 libgraphite2-3 libharfbuzz0b
libice6 libjbig0 libjpeg-turbo8 libjpeg8 liblapack3 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpaper-utils libpaper1 libpixman-1-0 libquadmath0 libsm6
libtcl8.6 libthai-data libthai0 libtiff5 libtk8.6 libwebp7 libxcb-render0 libxcb-shm0 libxft2 libxrender1 libxss1 libxt6 r-base-core r-cran-boot r-cran-class
r-cran-cluster r-cran-codetools r-cran-foreign r-cran-kernsmooth r-cran-lattice r-cran-mass r-cran-matrix r-cran-mgcv r-cran-nlme r-cran-nnet r-cran-rpart
r-cran-spatial r-cran-survival r-recommended unzip x11-common xdg-utils zip
Suggested packages:
tcl8.6 tk8.6 elpa-ess r-doc-info | r-doc-pdf r-mathlib r-base-html
Recommended packages:
r-base-html r-doc-html r-base-dev libfile-mimeinfo-perl libnet-dbus-perl libx11-protocol-perl x11-utils x11-xserver-utils
The following NEW packages will be installed:
fontconfig fontconfig-config fonts-dejavu-core libblas3 libcairo2 libdatrie1 libdeflate0 libfontconfig1 libfreetype6 libgfortran5 libgomp1 libgraphite2-3 libharfbuzz0b
libice6 libjbig0 libjpeg-turbo8 libjpeg8 liblapack3 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpaper-utils libpaper1 libpixman-1-0 libquadmath0 libsm6
libtcl8.6 libthai-data libthai0 libtiff5 libtk8.6 libwebp7 libxcb-render0 libxcb-shm0 libxft2 libxrender1 libxss1 libxt6 r-base r-base-core r-cran-boot r-cran-class
r-cran-cluster r-cran-codetools r-cran-foreign r-cran-kernsmooth r-cran-lattice r-cran-mass r-cran-matrix r-cran-mgcv r-cran-nlme r-cran-nnet r-cran-rpart
r-cran-spatial r-cran-survival r-recommended unzip x11-common xdg-utils zip
0 upgraded, 60 newly installed, 0 to remove and 73 not upgraded.
Need to get 57.4 MB of archives.
After this operation, 104 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-base-core 4.2.3-1.2204.0 [26.4 MB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libfreetype6 amd64 2.11.1+dfsg-1ubuntu0.1 [389 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 fonts-dejavu-core all 2.37-2build1 [1041 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 fontconfig-config all 2.13.1-4.2ubuntu5 [29.1 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libfontconfig1 amd64 2.13.1-4.2ubuntu5 [131 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 fontconfig amd64 2.13.1-4.2ubuntu5 [177 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 libblas3 amd64 3.10.0-2ubuntu1 [228 kB]
Get:8 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-boot 1.3-28-2.2204.0 [621 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpixman-1-0 amd64 0.40.0-1ubuntu0.22.04.1 [264 kB]
Get:10 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-cluster 2.1.4-1.2204.0 [553 kB]
Get:11 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-foreign 0.8.82-1.2204.0 [247 kB]
Get:12 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-mass 7.3-58.3-1.2204.0 [1123 kB]
Get:13 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-kernsmooth 2.23-20-1.2204.0 [92.6 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxcb-render0 amd64 1.14-3ubuntu3 [16.4 kB]
Get:15 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-lattice 0.20-45-3.2204.0 [1133 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxcb-shm0 amd64 1.14-3ubuntu3 [5780 B]
Get:17 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxrender1 amd64 1:0.9.10-1build4 [19.7 kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy/main amd64 libcairo2 amd64 1.16.0-5ubuntu2 [628 kB]
Get:19 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-nlme 3.1.162-1.2204.0 [2249 kB]
Get:20 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-matrix 1.5-1-1.2204.0 [3773 kB]
Get:21 http://archive.ubuntu.com/ubuntu jammy/main amd64 libdatrie1 amd64 0.2.13-2 [19.9 kB]
Get:22 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-mgcv 1.8-42-1.2204.0 [3149 kB]
Get:23 http://archive.ubuntu.com/ubuntu jammy/main amd64 libdeflate0 amd64 1.10-2 [70.9 kB]
Get:24 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-survival 3.5-3-1.2204.0 [5913 kB]
Get:25 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libquadmath0 amd64 12.1.0-2ubuntu1~22.04 [154 kB]
Get:26 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libgfortran5 amd64 12.1.0-2ubuntu1~22.04 [882 kB]
Get:27 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-rpart 4.1.19-1.2204.0 [912 kB]
Get:28 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-class 7.3-21-1.2204.0 [88.6 kB]
Get:29 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-nnet 7.3-18-1.2204.0 [113 kB]
Get:30 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-spatial 7.3-15-1.2204.0 [133 kB]
Get:31 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-cran-codetools 0.2-19-1.2204.0 [91.9 kB]
Get:32 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-recommended 4.2.3-1.2204.0 [2582 B]
Get:33 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ r-base 4.2.3-1.2204.0 [45.8 kB]
Get:34 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libgomp1 amd64 12.1.0-2ubuntu1~22.04 [126 kB]
Get:35 http://archive.ubuntu.com/ubuntu jammy/main amd64 libgraphite2-3 amd64 1.3.14-1build2 [71.3 kB]
Get:36 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libharfbuzz0b amd64 2.7.4-1ubuntu3.1 [352 kB]
Get:37 http://archive.ubuntu.com/ubuntu jammy/main amd64 x11-common all 1:7.7+23ubuntu2 [23.4 kB]
Get:38 http://archive.ubuntu.com/ubuntu jammy/main amd64 libice6 amd64 2:1.0.10-1build2 [42.6 kB]
Get:39 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-turbo8 amd64 2.1.2-0ubuntu1 [134 kB]
Get:40 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg8 amd64 8c-2ubuntu10 [2264 B]
Get:41 http://archive.ubuntu.com/ubuntu jammy/main amd64 liblapack3 amd64 3.10.0-2ubuntu1 [2504 kB]
Get:42 http://archive.ubuntu.com/ubuntu jammy/main amd64 libthai-data all 0.1.29-1build1 [162 kB]
Get:43 http://archive.ubuntu.com/ubuntu jammy/main amd64 libthai0 amd64 0.1.29-1build1 [19.2 kB]
Get:44 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpango-1.0-0 amd64 1.50.6+ds-2ubuntu1 [230 kB]
Get:45 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpangoft2-1.0-0 amd64 1.50.6+ds-2ubuntu1 [54.0 kB]
Get:46 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpangocairo-1.0-0 amd64 1.50.6+ds-2ubuntu1 [39.8 kB]
Get:47 http://archive.ubuntu.com/ubuntu jammy/main amd64 libpaper1 amd64 1.1.28build2 [13.8 kB]
Get:48 http://archive.ubuntu.com/ubuntu jammy/main amd64 libpaper-utils amd64 1.1.28build2 [8674 B]
Get:49 http://archive.ubuntu.com/ubuntu jammy/main amd64 libsm6 amd64 2:1.2.3-1build2 [16.7 kB]
Get:50 http://archive.ubuntu.com/ubuntu jammy/main amd64 libtcl8.6 amd64 8.6.12+dfsg-1build1 [990 kB]
Get:51 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libjbig0 amd64 2.1-3.1ubuntu0.22.04.1 [29.2 kB]
Get:52 http://archive.ubuntu.com/ubuntu jammy/main amd64 libwebp7 amd64 1.2.2-2 [206 kB]
Get:53 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libtiff5 amd64 4.3.0-6ubuntu0.4 [183 kB]
Get:54 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxft2 amd64 2.3.4-1 [41.8 kB]
Get:55 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxss1 amd64 1:1.2.3-1build2 [8476 B]
Get:56 http://archive.ubuntu.com/ubuntu jammy/main amd64 libtk8.6 amd64 8.6.12-1build1 [784 kB]
Get:57 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxt6 amd64 1:1.2.1-1 [177 kB]
Get:58 http://archive.ubuntu.com/ubuntu jammy/main amd64 zip amd64 3.0-12build2 [176 kB]
Get:59 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 unzip amd64 6.0-26ubuntu3.1 [174 kB]
Get:60 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 xdg-utils all 1.1.3-4.1ubuntu3~22.04.1 [61.9 kB]
Fetched 57.4 MB in 9s (6699 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package libfreetype6:amd64.
(Reading database ... 24112 files and directories currently installed.)
Preparing to unpack .../00-libfreetype6_2.11.1+dfsg-1ubuntu0.1_amd64.deb ...
Unpacking libfreetype6:amd64 (2.11.1+dfsg-1ubuntu0.1) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../01-fonts-dejavu-core_2.37-2build1_all.deb ...
Unpacking fonts-dejavu-core (2.37-2build1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../02-fontconfig-config_2.13.1-4.2ubuntu5_all.deb ...
Unpacking fontconfig-config (2.13.1-4.2ubuntu5) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../03-libfontconfig1_2.13.1-4.2ubuntu5_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.13.1-4.2ubuntu5) ...
Selecting previously unselected package fontconfig.
Preparing to unpack .../04-fontconfig_2.13.1-4.2ubuntu5_amd64.deb ...
Unpacking fontconfig (2.13.1-4.2ubuntu5) ...
Selecting previously unselected package libblas3:amd64.
Preparing to unpack .../05-libblas3_3.10.0-2ubuntu1_amd64.deb ...
Unpacking libblas3:amd64 (3.10.0-2ubuntu1) ...
Selecting previously unselected package libpixman-1-0:amd64.
Preparing to unpack .../06-libpixman-1-0_0.40.0-1ubuntu0.22.04.1_amd64.deb ...
Unpacking libpixman-1-0:amd64 (0.40.0-1ubuntu0.22.04.1) ...
Selecting previously unselected package libxcb-render0:amd64.
Preparing to unpack .../07-libxcb-render0_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb-render0:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package libxcb-shm0:amd64.
Preparing to unpack .../08-libxcb-shm0_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb-shm0:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package libxrender1:amd64.
Preparing to unpack .../09-libxrender1_1%3a0.9.10-1build4_amd64.deb ...
Unpacking libxrender1:amd64 (1:0.9.10-1build4) ...
Selecting previously unselected package libcairo2:amd64.
Preparing to unpack .../10-libcairo2_1.16.0-5ubuntu2_amd64.deb ...
Unpacking libcairo2:amd64 (1.16.0-5ubuntu2) ...
Selecting previously unselected package libdatrie1:amd64.
Preparing to unpack .../11-libdatrie1_0.2.13-2_amd64.deb ...
Unpacking libdatrie1:amd64 (0.2.13-2) ...
Selecting previously unselected package libdeflate0:amd64.
Preparing to unpack .../12-libdeflate0_1.10-2_amd64.deb ...
Unpacking libdeflate0:amd64 (1.10-2) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../13-libquadmath0_12.1.0-2ubuntu1~22.04_amd64.deb ...
Unpacking libquadmath0:amd64 (12.1.0-2ubuntu1~22.04) ...
Selecting previously unselected package libgfortran5:amd64.
Preparing to unpack .../14-libgfortran5_12.1.0-2ubuntu1~22.04_amd64.deb ...
Unpacking libgfortran5:amd64 (12.1.0-2ubuntu1~22.04) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../15-libgomp1_12.1.0-2ubuntu1~22.04_amd64.deb ...
Unpacking libgomp1:amd64 (12.1.0-2ubuntu1~22.04) ...
Selecting previously unselected package libgraphite2-3:amd64.
Preparing to unpack .../16-libgraphite2-3_1.3.14-1build2_amd64.deb ...
Unpacking libgraphite2-3:amd64 (1.3.14-1build2) ...
Selecting previously unselected package libharfbuzz0b:amd64.
Preparing to unpack .../17-libharfbuzz0b_2.7.4-1ubuntu3.1_amd64.deb ...
Unpacking libharfbuzz0b:amd64 (2.7.4-1ubuntu3.1) ...
Selecting previously unselected package x11-common.
Preparing to unpack .../18-x11-common_1%3a7.7+23ubuntu2_all.deb ...
Unpacking x11-common (1:7.7+23ubuntu2) ...
Selecting previously unselected package libice6:amd64.
Preparing to unpack .../19-libice6_2%3a1.0.10-1build2_amd64.deb ...
Unpacking libice6:amd64 (2:1.0.10-1build2) ...
Selecting previously unselected package libjpeg-turbo8:amd64.
Preparing to unpack .../20-libjpeg-turbo8_2.1.2-0ubuntu1_amd64.deb ...
Unpacking libjpeg-turbo8:amd64 (2.1.2-0ubuntu1) ...
Selecting previously unselected package libjpeg8:amd64.
Preparing to unpack .../21-libjpeg8_8c-2ubuntu10_amd64.deb ...
Unpacking libjpeg8:amd64 (8c-2ubuntu10) ...
Selecting previously unselected package liblapack3:amd64.
Preparing to unpack .../22-liblapack3_3.10.0-2ubuntu1_amd64.deb ...
Unpacking liblapack3:amd64 (3.10.0-2ubuntu1) ...
Selecting previously unselected package libthai-data.
Preparing to unpack .../23-libthai-data_0.1.29-1build1_all.deb ...
Unpacking libthai-data (0.1.29-1build1) ...
Selecting previously unselected package libthai0:amd64.
Preparing to unpack .../24-libthai0_0.1.29-1build1_amd64.deb ...
Unpacking libthai0:amd64 (0.1.29-1build1) ...
Selecting previously unselected package libpango-1.0-0:amd64.
Preparing to unpack .../25-libpango-1.0-0_1.50.6+ds-2ubuntu1_amd64.deb ...
Unpacking libpango-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Selecting previously unselected package libpangoft2-1.0-0:amd64.
Preparing to unpack .../26-libpangoft2-1.0-0_1.50.6+ds-2ubuntu1_amd64.deb ...
Unpacking libpangoft2-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Selecting previously unselected package libpangocairo-1.0-0:amd64.
Preparing to unpack .../27-libpangocairo-1.0-0_1.50.6+ds-2ubuntu1_amd64.deb ...
Unpacking libpangocairo-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Selecting previously unselected package libpaper1:amd64.
Preparing to unpack .../28-libpaper1_1.1.28build2_amd64.deb ...
Unpacking libpaper1:amd64 (1.1.28build2) ...
Selecting previously unselected package libpaper-utils.
Preparing to unpack .../29-libpaper-utils_1.1.28build2_amd64.deb ...
Unpacking libpaper-utils (1.1.28build2) ...
Selecting previously unselected package libsm6:amd64.
Preparing to unpack .../30-libsm6_2%3a1.2.3-1build2_amd64.deb ...
Unpacking libsm6:amd64 (2:1.2.3-1build2) ...
Selecting previously unselected package libtcl8.6:amd64.
Preparing to unpack .../31-libtcl8.6_8.6.12+dfsg-1build1_amd64.deb ...
Unpacking libtcl8.6:amd64 (8.6.12+dfsg-1build1) ...
Selecting previously unselected package libjbig0:amd64.
Preparing to unpack .../32-libjbig0_2.1-3.1ubuntu0.22.04.1_amd64.deb ...
Unpacking libjbig0:amd64 (2.1-3.1ubuntu0.22.04.1) ...
Selecting previously unselected package libwebp7:amd64.
Preparing to unpack .../33-libwebp7_1.2.2-2_amd64.deb ...
Unpacking libwebp7:amd64 (1.2.2-2) ...
Selecting previously unselected package libtiff5:amd64.
Preparing to unpack .../34-libtiff5_4.3.0-6ubuntu0.4_amd64.deb ...
Unpacking libtiff5:amd64 (4.3.0-6ubuntu0.4) ...
Selecting previously unselected package libxft2:amd64.
Preparing to unpack .../35-libxft2_2.3.4-1_amd64.deb ...
Unpacking libxft2:amd64 (2.3.4-1) ...
Selecting previously unselected package libxss1:amd64.
Preparing to unpack .../36-libxss1_1%3a1.2.3-1build2_amd64.deb ...
Unpacking libxss1:amd64 (1:1.2.3-1build2) ...
Selecting previously unselected package libtk8.6:amd64.
Preparing to unpack .../37-libtk8.6_8.6.12-1build1_amd64.deb ...
Unpacking libtk8.6:amd64 (8.6.12-1build1) ...
Selecting previously unselected package libxt6:amd64.
Preparing to unpack .../38-libxt6_1%3a1.2.1-1_amd64.deb ...
Unpacking libxt6:amd64 (1:1.2.1-1) ...
Selecting previously unselected package zip.
Preparing to unpack .../39-zip_3.0-12build2_amd64.deb ...
Unpacking zip (3.0-12build2) ...
Selecting previously unselected package unzip.
Preparing to unpack .../40-unzip_6.0-26ubuntu3.1_amd64.deb ...
Unpacking unzip (6.0-26ubuntu3.1) ...
Selecting previously unselected package xdg-utils.
Preparing to unpack .../41-xdg-utils_1.1.3-4.1ubuntu3~22.04.1_all.deb ...
Unpacking xdg-utils (1.1.3-4.1ubuntu3~22.04.1) ...
Selecting previously unselected package r-base-core.
Preparing to unpack .../42-r-base-core_4.2.3-1.2204.0_amd64.deb ...
Unpacking r-base-core (4.2.3-1.2204.0) ...
Selecting previously unselected package r-cran-boot.
Preparing to unpack .../43-r-cran-boot_1.3-28-2.2204.0_all.deb ...
Unpacking r-cran-boot (1.3-28-2.2204.0) ...
Selecting previously unselected package r-cran-cluster.
Preparing to unpack .../44-r-cran-cluster_2.1.4-1.2204.0_amd64.deb ...
Unpacking r-cran-cluster (2.1.4-1.2204.0) ...
Selecting previously unselected package r-cran-foreign.
Preparing to unpack .../45-r-cran-foreign_0.8.82-1.2204.0_amd64.deb ...
Unpacking r-cran-foreign (0.8.82-1.2204.0) ...
Selecting previously unselected package r-cran-mass.
Preparing to unpack .../46-r-cran-mass_7.3-58.3-1.2204.0_amd64.deb ...
Unpacking r-cran-mass (7.3-58.3-1.2204.0) ...
Selecting previously unselected package r-cran-kernsmooth.
Preparing to unpack .../47-r-cran-kernsmooth_2.23-20-1.2204.0_amd64.deb ...
Unpacking r-cran-kernsmooth (2.23-20-1.2204.0) ...
Selecting previously unselected package r-cran-lattice.
Preparing to unpack .../48-r-cran-lattice_0.20-45-3.2204.0_amd64.deb ...
Unpacking r-cran-lattice (0.20-45-3.2204.0) ...
Selecting previously unselected package r-cran-nlme.
Preparing to unpack .../49-r-cran-nlme_3.1.162-1.2204.0_amd64.deb ...
Unpacking r-cran-nlme (3.1.162-1.2204.0) ...
Selecting previously unselected package r-cran-matrix.
Preparing to unpack .../50-r-cran-matrix_1.5-1-1.2204.0_amd64.deb ...
Unpacking r-cran-matrix (1.5-1-1.2204.0) ...
Selecting previously unselected package r-cran-mgcv.
Preparing to unpack .../51-r-cran-mgcv_1.8-42-1.2204.0_amd64.deb ...
Unpacking r-cran-mgcv (1.8-42-1.2204.0) ...
Selecting previously unselected package r-cran-survival.
Preparing to unpack .../52-r-cran-survival_3.5-3-1.2204.0_amd64.deb ...
Unpacking r-cran-survival (3.5-3-1.2204.0) ...
Selecting previously unselected package r-cran-rpart.
Preparing to unpack .../53-r-cran-rpart_4.1.19-1.2204.0_amd64.deb ...
Unpacking r-cran-rpart (4.1.19-1.2204.0) ...
Selecting previously unselected package r-cran-class.
Preparing to unpack .../54-r-cran-class_7.3-21-1.2204.0_amd64.deb ...
Unpacking r-cran-class (7.3-21-1.2204.0) ...
Selecting previously unselected package r-cran-nnet.
Preparing to unpack .../55-r-cran-nnet_7.3-18-1.2204.0_amd64.deb ...
Unpacking r-cran-nnet (7.3-18-1.2204.0) ...
Selecting previously unselected package r-cran-spatial.
Preparing to unpack .../56-r-cran-spatial_7.3-15-1.2204.0_amd64.deb ...
Unpacking r-cran-spatial (7.3-15-1.2204.0) ...
Selecting previously unselected package r-cran-codetools.
Preparing to unpack .../57-r-cran-codetools_0.2-19-1.2204.0_all.deb ...
Unpacking r-cran-codetools (0.2-19-1.2204.0) ...
Selecting previously unselected package r-recommended.
Preparing to unpack .../58-r-recommended_4.2.3-1.2204.0_all.deb ...
Unpacking r-recommended (4.2.3-1.2204.0) ...
Selecting previously unselected package r-base.
Preparing to unpack .../59-r-base_4.2.3-1.2204.0_all.deb ...
Unpacking r-base (4.2.3-1.2204.0) ...
Setting up libgraphite2-3:amd64 (1.3.14-1build2) ...
Setting up libpixman-1-0:amd64 (0.40.0-1ubuntu0.22.04.1) ...
Setting up libpaper1:amd64 (1.1.28build2) ...
Creating config file /etc/papersize with new version
Setting up libxrender1:amd64 (1:0.9.10-1build4) ...
Setting up libdatrie1:amd64 (0.2.13-2) ...
Setting up libxcb-render0:amd64 (1.14-3ubuntu3) ...
Setting up unzip (6.0-26ubuntu3.1) ...
Setting up x11-common (1:7.7+23ubuntu2) ...
invoke-rc.d: could not determine current runlevel
Setting up libdeflate0:amd64 (1.10-2) ...
Setting up libxcb-shm0:amd64 (1.14-3ubuntu3) ...
Setting up libpaper-utils (1.1.28build2) ...
Setting up libgomp1:amd64 (12.1.0-2ubuntu1~22.04) ...
Setting up libjbig0:amd64 (2.1-3.1ubuntu0.22.04.1) ...
Setting up zip (3.0-12build2) ...
Setting up libblas3:amd64 (3.10.0-2ubuntu1) ...
update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode
Setting up libfreetype6:amd64 (2.11.1+dfsg-1ubuntu0.1) ...
Setting up libquadmath0:amd64 (12.1.0-2ubuntu1~22.04) ...
Setting up libtcl8.6:amd64 (8.6.12+dfsg-1build1) ...
Setting up fonts-dejavu-core (2.37-2build1) ...
Setting up libjpeg-turbo8:amd64 (2.1.2-0ubuntu1) ...
Setting up libgfortran5:amd64 (12.1.0-2ubuntu1~22.04) ...
Setting up libwebp7:amd64 (1.2.2-2) ...
Setting up libharfbuzz0b:amd64 (2.7.4-1ubuntu3.1) ...
Setting up libthai-data (0.1.29-1build1) ...
Setting up libxss1:amd64 (1:1.2.3-1build2) ...
Setting up xdg-utils (1.1.3-4.1ubuntu3~22.04.1) ...
update-alternatives: using /usr/bin/xdg-open to provide /usr/bin/open (open) in auto mode
Setting up libjpeg8:amd64 (8c-2ubuntu10) ...
Setting up libice6:amd64 (2:1.0.10-1build2) ...
Setting up liblapack3:amd64 (3.10.0-2ubuntu1) ...
update-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu) in auto mode
Setting up fontconfig-config (2.13.1-4.2ubuntu5) ...
Setting up libthai0:amd64 (0.1.29-1build1) ...
Setting up libtiff5:amd64 (4.3.0-6ubuntu0.4) ...
Setting up libfontconfig1:amd64 (2.13.1-4.2ubuntu5) ...
Setting up libsm6:amd64 (2:1.2.3-1build2) ...
Setting up fontconfig (2.13.1-4.2ubuntu5) ...
Regenerating fonts cache... done.
Setting up libxft2:amd64 (2.3.4-1) ...
Setting up libtk8.6:amd64 (8.6.12-1build1) ...
Setting up libpango-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Setting up libcairo2:amd64 (1.16.0-5ubuntu2) ...
Setting up libxt6:amd64 (1:1.2.1-1) ...
Setting up libpangoft2-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Setting up libpangocairo-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Setting up r-base-core (4.2.3-1.2204.0) ...
Creating config file /etc/R/Renviron with new version
Setting up r-cran-lattice (0.20-45-3.2204.0) ...
Setting up r-cran-nlme (3.1.162-1.2204.0) ...
Setting up r-cran-cluster (2.1.4-1.2204.0) ...
Setting up r-cran-nnet (7.3-18-1.2204.0) ...
Setting up r-cran-codetools (0.2-19-1.2204.0) ...
Setting up r-cran-boot (1.3-28-2.2204.0) ...
Setting up r-cran-spatial (7.3-15-1.2204.0) ...
Setting up r-cran-mass (7.3-58.3-1.2204.0) ...
Setting up r-cran-foreign (0.8.82-1.2204.0) ...
Setting up r-cran-matrix (1.5-1-1.2204.0) ...
Setting up r-cran-kernsmooth (2.23-20-1.2204.0) ...
Setting up r-cran-mgcv (1.8-42-1.2204.0) ...
Setting up r-cran-class (7.3-21-1.2204.0) ...
Setting up r-cran-survival (3.5-3-1.2204.0) ...
Setting up r-cran-rpart (4.1.19-1.2204.0) ...
Setting up r-recommended (4.2.3-1.2204.0) ...
Setting up r-base (4.2.3-1.2204.0) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for install-info (6.8-4build1) ...
ubuntu@DESKTOP-NIQG5GO:~$ sudo -i R
R version 4.2.3 (2023-03-15) -- "Shortstop Beagle"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> install.packages(
+ "https://github.com/pola-rs/r-polars/releases/latest/download/rpolars__x86_64-pc-linux-gnu.gz",
+ repos = NULL
+ )
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://github.com/pola-rs/r-polars/releases/latest/download/rpolars__x86_64-pc-linux-gnu.gz'
Content type 'application/octet-stream' length 31120278 bytes (29.7 MB)
==================================================
downloaded 29.7 MB
* installing *binary* package ‘rpolars’ ...
* DONE (rpolars)
> library(rpolars)
> pl$DataFrame(iris)
polars DataFrame: shape: (150, 5)
┌──────────────┬─────────────┬──────────────┬─────────────┬───────────┐
│ Sepal.Length ┆ Sepal.Width ┆ Petal.Length ┆ Petal.Width ┆ Species │
│ --- ┆ --- ┆ --- ┆ --- ┆ --- │
│ f64 ┆ f64 ┆ f64 ┆ f64 ┆ cat │
╞══════════════╪═════════════╪══════════════╪═════════════╪═══════════╡
│ 5.1 ┆ 3.5 ┆ 1.4 ┆ 0.2 ┆ setosa │
│ 4.9 ┆ 3.0 ┆ 1.4 ┆ 0.2 ┆ setosa │
│ 4.7 ┆ 3.2 ┆ 1.3 ┆ 0.2 ┆ setosa │
│ 4.6 ┆ 3.1 ┆ 1.5 ┆ 0.2 ┆ setosa │
│ ... ┆ ... ┆ ... ┆ ... ┆ ... │
│ 6.3 ┆ 2.5 ┆ 5.0 ┆ 1.9 ┆ virginica │
│ 6.5 ┆ 3.0 ┆ 5.2 ┆ 2.0 ┆ virginica │
│ 6.2 ┆ 3.4 ┆ 5.4 ┆ 2.3 ┆ virginica │
│ 5.9 ┆ 3.0 ┆ 5.1 ┆ 1.8 ┆ virginica │
└──────────────┴─────────────┴──────────────┴─────────────┴───────────┘
> sessionInfo()
R version 4.2.3 (2023-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.1 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
locale:
[1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8
[4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8
[7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.2.3
Windows Subsystem for Linux supports a handful of different distributions, which is why we are getting different results.
It looks like you are running Ubuntu 22.04 includes glibc 2.35
, which is >= 2.34, the version used in the build process. The error I encountered was on Ubuntu 20.04, which includes glibc 2.31
.
great, thx. I will try out compiling on 22.04 and loading on 20.04 or older. Things move a little slow these weeks as I have full time contract. I will also look into how binaries works effortlessly in py-polars
Is this problem still occurring?
I tried the install on ubuntu:facal
based Docker container and it seems working fine.
I close this for now but feel free to open it if it reoccurs.
It could perhaps happen again. glibc is backwards compatible, but not forward. If polars binary is compiled with a very recent glibc, it might not work for user having an old version of glibc.
One solution maybe to compile polars with an old glibc. Glibc is tightly connected to the OS. Maybe a docker container of ubuntu 18.04 or so could be used. I wonder what glibc R-universe and CRAN uses? This have so far only happend on the github binary release.
Realistically this issue goes on the "big backlog", until this issue has been flagged again.
I wonder what glibc R-universe and CRAN uses?
Posit Public Package Manager have some Linux binaries. I think P3M supports all Ubuntu LTSs.
I can confirm the issue is affecting ubuntu 20.04 on the cluster in my university.
I may attempt to build the package once I finish setting up rust on the cluster.
Any tips for building the package? I have been looking at the github actions command to get an idea.
This issue is very old. You should now be able to install it without Rust as described in the README
Following instructions to install binary package on a Linux OS,
rpolars
appears to install successfully. However, when I load the library, an error occurs and indicates a required object is not available.Appears this may be related to the version of
glibc
used to build -2.34
- being different than the version installed on my machine -2.31
.I am running a vanilla Ubuntu 20.04 image on top of Windows Subsystem for Linux. I confirmed that I can build the package fro m source and use within R 4.2.3, so to me that definitely points to this being a build related issue. Not sure if it's possible (or a good idea) to weaken the dependency to
2.3x
, or2.xx
. Otherwise, a different binary will be necessary for each of a half dozen versions bundled with mainstream Linux OS's released in the last couple years.