Page 1 of 1

Install newest GLIBCXX_3.4.26 in MXLinux KDE 19.4

Posted: Wed Apr 13, 2022 3:17 am
by ichsan2895
Hello,

I have a problem and still not found any solution with googling & stackoverflow

I'm using MXLinux KDE 19.4
I installed R (statistical languange) 4.1.3.
When I install a library called tidyverse & modeltime
it show this error (please see my attachment)

I tried to install latest GCC & Libstdc6++ with

Code: Select all

sudo apt-get install gcc-8
dan

Code: Select all

sudo apt-get install libstdc++6
, it already the newest one ( gcc 8.3.06).

Code: Select all

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
it show GLIBCXX_3.4.25 as the newest one.

Can I get rid the error Without upgrading the distribution to MXlinux 21 ?

Re: Install newest GLIBCXX_3.4.26 in MXLinux KDE 19.4

Posted: Wed Apr 13, 2022 5:10 am
by fehlix
ichsan2895 wrote: Wed Apr 13, 2022 3:17 am Can I get rid the error Without upgrading the distribution to MXlinux 21 ?
Not sure what's on that picture, you better post the text-errors as text.
I'm afraid, if the latest available glibc version in MX-19 is not suffcient to install a package,
you either need to find a package version which is compatible or switch to a newer MXLinux.

Re: Install newest GLIBCXX_3.4.26 in MXLinux KDE 19.4

Posted: Wed Apr 13, 2022 8:44 am
by ichsan2895
fehlix wrote: Wed Apr 13, 2022 5:10 am
ichsan2895 wrote: Wed Apr 13, 2022 3:17 am Can I get rid the error Without upgrading the distribution to MXlinux 21 ?
Not sure what's on that picture, you better post the text-errors as text.
Thanks for reply

Here is the error :
It happen when I ran this command in RStudio with R version 4.1.3. I have installed "tidyverse" before..

Code: Select all

library("tidyverse")
Error: package or namespace load failed for ‘tidyverse’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/media/ichsan/SAMPINGAN/Anaconda3_Linux/envs/r_env/lib/R/library/readxl/libs/readxl.so':
/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /media/ichsan/SAMPINGAN/Anaconda3_Linux/envs/r_env/lib/R/library/readxl/libs/readxl.so)
=fehlix wrote: Wed Apr 13, 2022 5:10 am I'm afraid, if the latest available glibc version in MX-19 is not suffcient to install a package,
you either need to find a package version which is compatible or switch to a newer MXLinux.
How to install the newest one which is compatible with my MXlinux that contains GLIBCXX_3.4.26?
I am in love with stability of Mxlinux KDE 19.4 so I don't want to upgrade the distribution

Code: Select all

Snapshot created on: 20220120_1831
System:    Host: <filter> Kernel: 5.10.0-5mx-amd64 x86_64 bits: 64 compiler: N/A 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-5mx-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: KDE Plasma 5.14.5 wm: kwin_x11 dm: SDDM 
           Distro: MX-19.4_kde_x64 patito feo March 31  2021 
           base: Debian GNU/Linux 10 (buster) 
Machine:   Type: Laptop System: Acer product: Aspire E5-476G v: V1.05 serial: <filter> 
           Mobo: KBL model: AntMan_SK v: V1.05 serial: <filter> UEFI: Insyde v: 1.05 
           date: 10/23/2017 
Battery:   ID-1: BAT1 charge: 25.9 Wh condition: 32.6/41.4 Wh (79%) volts: 15.8/14.8 
           model: PANASONIC AS16A5K type: Li-ion serial: <filter> status: Discharging 
CPU:       Topology: Quad Core model: Intel Core i5-8250U bits: 64 type: MT MCP 
           arch: Kaby Lake family: 6 model-id: 8E (142) stepping: A (10) microcode: EA 
           L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 28800 
           Speed: 854 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 854 2: 833 3: 819 
           4: 928 5: 868 6: 952 7: 856 8: 1109 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf 
           mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass 
           mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 
           mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, 
           STIBP: conditional, RSB filling 
           Type: srbds mitigation: Microcode 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel UHD Graphics 620 vendor: Acer Incorporated ALI driver: i915 
           v: kernel bus ID: 00:02.0 chip ID: 8086:5917 
           Device-2: NVIDIA GP108M [GeForce MX150] vendor: Acer Incorporated ALI 
           driver: nvidia v: 470.82.01 bus ID: 01:00.0 chip ID: 10de:1d10 
           Display: x11 server: X.Org 1.20.10 driver: modesetting,nvidia 
           unloaded: fbdev,nouveau,vesa alternate: nv compositor: kwin_x11 
           resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.3.4 
           direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Acer Incorporated ALI 
           driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:9d71 
           Sound Server: ALSA v: k5.10.0-5mx-amd64 
Network:   Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi 
           v: kernel port: 4000 bus ID: 03:00.0 chip ID: 8086:24fb 
           IF: wlan0 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 3000 bus ID: 04:00.0 
           chip ID: 10ec:8168 
           IF: eth0 state: down mac: <filter> 
           IF-ID-1: br-4fc8717477ce state: up speed: 10000 Mbps duplex: unknown 
           mac: <filter> 
           IF-ID-2: docker0 state: down mac: <filter> 
           IF-ID-3: veth0dfff29 state: up speed: 10000 Mbps duplex: full mac: <filter> 
           IF-ID-4: veth5f95e60 state: up speed: 10000 Mbps duplex: full mac: <filter> 
           IF-ID-5: veth824e6ec state: up speed: 10000 Mbps duplex: full mac: <filter> 
           IF-ID-6: veth8e8f5d2 state: up speed: 10000 Mbps duplex: full mac: <filter> 
           IF-ID-7: vethe8d0d37 state: up speed: 10000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 823.48 GiB used: 507.93 GiB (61.7%) 
           ID-1: /dev/nvme0n1 vendor: A-Data model: SX8200PNP size: 238.47 GiB block size: 
           physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 serial: <filter> 
           rev: SS0328D scheme: GPT 
           ID-2: /dev/sda vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 GiB 
           block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> 
           rev: 1B6Q scheme: GPT 
           ID-3: /dev/sdb type: USB model: ATA Wellcomm Master size: 119.24 GiB block size: 
           physical: 512 B logical: 512 B serial: <filter> rev: 024N scheme: GPT 
Partition: ID-1: / raw size: 119.23 GiB size: 116.86 GiB (98.01%) used: 61.79 GiB (52.9%) 
           fs: ext4 dev: /dev/sdb2 
           ID-2: swap-1 size: 15.63 GiB used: 0 KiB (0.0%) fs: swap 
           swappiness: 15 (default 60) cache pressure: 100 (default) dev: /dev/nvme0n1p4 
Sensors:   System Temperatures: cpu: 43.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     Active apt repos in: /etc/apt/sources.list 
           1: deb https://qgis.org/debian-ltr buster main
           2: deb-src https://qgis.org/debian-ltr buster main
           3: deb https://developer.download.nvidia.com/compute/cuda/repos/debian10/x86_64/ /
           4: deb http://cloud.r-project.org/bin/linux/debian buster-cran40/
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian buster-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian buster main contrib non-free
           2: deb http://deb.debian.org/debian-security buster/updates main contrib non-free
           No active apt repos in: /etc/apt/sources.list.d/jonathonf-ubuntu-ffmpeg-4-impish.list 
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mirror.poliwangi.ac.id/mxlinux/mx/repo/ buster main non-free
           2: deb http://mirror.poliwangi.ac.id/mxlinux/mx/repo/ buster ahs
           Active apt repos in: /etc/apt/sources.list.d/nvidia-docker.list 
           1: deb https://nvidia.github.io/libnvidia-container/stable/debian10/$(ARCH) /
           2: deb https://nvidia.github.io/nvidia-container-runtime/stable/debian10/$(ARCH) /
           3: deb https://nvidia.github.io/nvidia-docker/debian10/$(ARCH) /
           Active apt repos in: /etc/apt/sources.list.d/opera-stable.list 
           1: deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
           No active apt repos in: /etc/apt/sources.list.d/various.list 
           Active apt repos in: /etc/apt/sources.list.d/vscode.list 
           1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
Info:      Processes: 325 Uptime: 8m Memory: 23.37 GiB used: 3.01 GiB (12.9%) Init: SysVinit 
           v: 2.93 runlevel: 5 default: 5 Compilers: gcc: 8.3.0 alt: 8 
           Shell: quick-system-in running in: quick-system-in inxi: 3.0.36 

Re: Install newest GLIBCXX_3.4.26 in MXLinux KDE 19.4

Posted: Wed Apr 13, 2022 9:15 am
by fehlix
ichsan2895 wrote: Wed Apr 13, 2022 8:44 am How to install the newest one which is compatible with my MXlinux that contains GLIBCXX_3.4.26?
I am in love with stability of Mxlinux KDE 19.4 so I don't want to upgrade the distribution
Instead of hunting for a newer glibc, you may try a fairly recent "r" version 4.1.2 from MX testrepo, found within MX Package Installer "testrepo" tab.

Re: Install newest GLIBCXX_3.4.26 in MXLinux KDE 19.4  [Solved]

Posted: Wed Apr 13, 2022 10:11 am
by ichsan2895
THANK YOU, NOW PROBLEM WAS SOLVED, I WILL CHECKED ANOTHER R LIBRARY, HOPEFULLY IT WORKS

I have asked this question in R community too.

It really complicated since I must try and error every suggestion from google and stackoverflow.

It worked with me =>
1. Install R from CRAN Backport Debian Buster Repository

Code: Select all

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7'
deb http://cloud.r-project.org/bin/linux/debian buster-cran40/ (write this in /etc/apt/sources.list)
sudo apt-get update
sudo apt-get install -t buster-cran40 r-base r-base-dev
If the error still shown, then do this way

2. install Rcpp package from CRAN. (I'm using RStudio to install it)
to make sure it works, write Rcpp::evalCpp("2+2"). If the answer was 4, it is good.

3. Install dependencies of tidyverse

Code: Select all

sudo apt-get install libxml2-dev
3. Install PAK package manager from CRAN
4. Install modeltime and tidyverse package with PAK

Code: Select all

library("pak")
pak::pkg_install("modeltime", lib = "/home/ichsan/R/x86_64-pc-linux-gnu-library/4.1/")
pak::pkg_install("tidyverse", lib = "/home/ichsan/R/x86_64-pc-linux-gnu-library/4.1/")