It's UWAweek 16 (1st semester, week 7)

help3002

This forum is provided to promote discussion amongst students enrolled in CITS3002 Computer Networks.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message. How do I ask a good question?

Displaying the 7 articles in this topic
Showing 7 of 198 articles.
Currently no other people reading this forum.


 UWA week 10 (1st semester, week 2) ↓
SVG not supported

Login to reply

👍?
helpful

What Linux distribution are you running inside WSL-2 ? It's rather unusual for a Linux distribution not to come with glibc.

Can you provide the full (long) output from ldd /usr/local/bin/cnet on your system? It should show what's installed, and what's missing.


SVG not supported

Login to reply

👍?
helpful

I'm using Ubuntu (I think 22.04)

Here's the output:

/usr/local/bin/cnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /usr/local/bin/cnet)
/usr/local/bin/cnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /usr/local/bin/cnet)
/usr/local/bin/cnet: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /usr/local/bin/cnet)
        linux-vdso.so.1 (0x00007ffee61c0000)
        libelf.so.1 => /lib/x86_64-linux-gnu/libelf.so.1 (0x00007f7a2156d000)
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f7a2142d000)
        libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x00007f7a21422000)
        libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f7a213db000)
        libgtk-3.so.0 => /lib/x86_64-linux-gnu/libgtk-3.so.0 (0x00007f7a20bb2000)
        libgdk-3.so.0 => /lib/x86_64-linux-gnu/libgdk-3.so.0 (0x00007f7a20aa9000)
        libpangocairo-1.0.so.0 => /lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007f7a20a97000)
        libcairo.so.2 => /lib/x86_64-linux-gnu/libcairo.so.2 (0x00007f7a2096f000)
        libgdk_pixbuf-2.0.so.0 => /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x00007f7a2093f000)
        libgio-2.0.so.0 => /lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007f7a20766000)
        libpangoft2-1.0.so.0 => /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007f7a2074b000)
        libpango-1.0.so.0 => /lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x00007f7a206e2000)
        libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f7a20682000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f7a20548000)
        libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f7a204fe000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f7a204e2000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f7a202b6000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7a201cd000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7a201ad000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7a1ff84000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7a21dd6000)
        libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f7a1ff5a000)
        libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x00007f7a1ff3d000)
        libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f7a1ff34000)
        libgmodule-2.0.so.0 => /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f7a1ff2b000)
        libXi.so.6 => /lib/x86_64-linux-gnu/libXi.so.6 (0x00007f7a1ff17000)
        libXfixes.so.3 => /lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f7a1ff0f000)
        libcairo-gobject.so.2 => /lib/x86_64-linux-gnu/libcairo-gobject.so.2 (0x00007f7a1ff03000)
        libatk-1.0.so.0 => /lib/x86_64-linux-gnu/libatk-1.0.so.0 (0x00007f7a1fed9000)
        libatk-bridge-2.0.so.0 => /lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0 (0x00007f7a1fea1000)
        libepoxy.so.0 => /lib/x86_64-linux-gnu/libepoxy.so.0 (0x00007f7a1fd6a000)
        libfribidi.so.0 => /lib/x86_64-linux-gnu/libfribidi.so.0 (0x00007f7a1fd4e000)
        libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f7a1fc7f000)
        libXinerama.so.1 => /lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f7a1fc7a000)
        libXrandr.so.2 => /lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f7a1fc6d000)
        libXcursor.so.1 => /lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007f7a1fc5f000)
        libXcomposite.so.1 => /lib/x86_64-linux-gnu/libXcomposite.so.1 (0x00007f7a1fc5a000)
        libXdamage.so.1 => /lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f7a1fc55000)
        libwayland-cursor.so.0 => /lib/x86_64-linux-gnu/libwayland-cursor.so.0 (0x00007f7a1fc4b000)
        libwayland-egl.so.1 => /lib/x86_64-linux-gnu/libwayland-egl.so.1 (0x00007f7a1fc46000)
        libwayland-client.so.0 => /lib/x86_64-linux-gnu/libwayland-client.so.0 (0x00007f7a1fc35000)
        libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f7a1fc20000)
        libpixman-1.so.0 => /lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007f7a1fb73000)
        libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f7a1faab000)
        libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f7a1fa70000)
        libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f7a1fa6b000)
        libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f7a1fa5c000)
        libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f7a1fa4d000)
        libjpeg.so.8 => /lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f7a1f9cc000)
        libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x00007f7a1f988000)
        libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f7a1f95c000)
        libthai.so.0 => /lib/x86_64-linux-gnu/libthai.so.0 (0x00007f7a1f951000)
        libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007f7a1f942000)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f7a1f8cc000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f7a1f89b000)
        libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f7a1f895000)
        libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f7a1f88d000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f7a1f873000)
        libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f7a1f825000)
        libatspi.so.0 => /lib/x86_64-linux-gnu/libatspi.so.0 (0x00007f7a1f7eb000)
        libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f7a1f7c4000)
        libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f7a1f7b6000)
        libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f7a1f77d000)
        libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f7a1f6e6000)
        libdatrie.so.1 => /lib/x86_64-linux-gnu/libdatrie.so.1 (0x00007f7a1f6dd000)
        libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f7a1f6d0000)
        libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f7a1f609000)
        libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f7a1f5e4000)
        liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f7a1f5b9000)
        libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f7a1f4ea000)
        liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f7a1f4ca000)
        libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f7a1f4bf000)
        libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f7a1f381000)
        libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f7a1f359000)


 UWA week 11 (1st semester, week 3) ↓
SVG not supported

Login to reply

👍?
helpful

ANONYMOUS wrote:
> I'm using Ubuntu (I think 22.04)
You should be able to see your version with cat /etc/os-release Here's my thinking: while your system has shared libraries for libm, libc, and libstdc++ (reported by ldd)
> /usr/local/bin/cnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /usr/local/bin/cnet) > .... > libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7a201cd000)
the error message suggests that your system has an earlier version of things. My Ubuntu 23.04 system has GLIBC_2.38 (I update my system/libraries about every week with sudo apt upgrade). If I run ldd -v /usr/local/bin/cnet | grep libm.so, it reports (long):
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4c60331000)
	    libm.so.6 (GLIBC_2.38) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.23) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.29) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.38) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.29) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.38) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.29) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.38) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.35) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.29) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
    /lib/x86_64-linux-gnu/libm.so.6:
	    libm.so.6 (GLIBC_2.35) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.29) => /lib/x86_64-linux-gnu/libm.so.6
	    libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
which (I think) is reporting the versions of GLIBC with which the installed /lib/x86_64-linux-gnu/libm.so.6 library provides backwards-compatability (2.38 being the highest). Does your system show 2.38 (or higher), or a lower maximum? Could you try updating your libraries with apt if you haven't in a while?


SVG not supported

Login to reply

👍?
helpful

I'm having the same issue /usr/local/bin/cnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /usr/local/bin/cnet) /usr/local/bin/cnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /usr/local/bin/cnet) /usr/local/bin/cnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /usr/local/bin/cnet) /usr/local/bin/cnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /usr/local/bin/cnet) /usr/local/bin/cnet: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /usr/local/bin/cnet) /usr/local/bin/cnet: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/local/bin/cnet) /usr/local/bin/cnet: /lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by /usr/local/bin/cnet)


SVG not supported

Login to reply

👍?
helpful

I just tested it with a fresh install of Ubuntu 22.04 in WSL 2, and ran ``sudo apt update && sudo apt upgrade -y``, and it updated everything. When I run ``ldd -v /usr/local/bin/cnet | grep libm.so``, I get the output:
/usr/local/bin/cnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /usr/local/bin/cnet)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8384787000)
                libm.so.6 (GLIBC_2.38) => not found
                libm.so.6 (GLIBC_2.23) => /lib/x86_64-linux-gnu/libm.so.6
                libm.so.6 (GLIBC_2.29) => /lib/x86_64-linux-gnu/libm.so.6
                libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
                libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
        /lib/x86_64-linux-gnu/libm.so.6:
As far as I can tell, Ubuntu 23.04 isn't available in WSL 2, 22.04 being the newest version.


SVG not supported

Login to reply

👍?
helpful

I have found a solution

Ubuntu needs to be updated to 23.10. To do this, run sudo apt update && sudo apt upgrade -y. Once this has completed, run sudo do-release-upgrade and you'll be prompted to edit the file /etc/update-manager/release-upgrades to allow normal Ubuntu installations, rather than LTS ones. Once this file has been edited, rerun sudo do-release-upgrade. This process may take a while, but allow all prompts and restart WSL when completed.

After this you should have Ubuntu 23.10. Other libraries may be required to be installed. For example, I had to install build-essential and libsm-dev.


SVG not supported

Login to reply

👍?
helpful

ANONYMOUS wrote:
> I have found a solution
Thanks very much for that! I have updated the installation instructions here - [CITS3002] If others 'uncover' additional packages that are required, please send the details to me. Good luck,

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy