GDB Client issue in Ubuntu

Post Reply
Jack
Posts: 17
Joined: Tue May 19, 2020 10:03 am

Hello,

I installed JLink software following chapter 6.1 JLink setup in Working.with.Zephyr.pdf. I can run GDB Server successfully, but hit an issue when I run GDB Client.

jzhang@ubuntu:~$ ./zephyr-sdk-0.11.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb
./zephyr-sdk-0.11.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory

I did installed dependencies including python:
python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file
pip3 install –-user -r ~/zephyrproject/zephyr/scripts/requirements.txt

Any suggestion?
Thanks
spingali
Posts: 10
Joined: Fri May 15, 2020 5:58 am

I guess the pp3 install command didn't go through as I see the hyphen before 'user' option not correct. In --user, the first hyphen is word bullet not hyphen. When I created the working with zephyr.pdf document from word, due to auto format it happened. I have corrected it and uploaded the pdf again. Please take fresh copy. For quick try, you can just retype the hyphens before 'user'.
Sorry about that.
Jack
Posts: 17
Joined: Tue May 19, 2020 10:03 am

I noticed that and I typed the 2 hyphens myself, so the install should happened correctly.
spingali
Posts: 10
Joined: Fri May 15, 2020 5:58 am

Please repeat "sudo apt install " step on page 3 and "pip3 install --user " on page 4. Observe if there are any errors. Also let me know which Ubuntu version you are using.
Jack
Posts: 17
Joined: Tue May 19, 2020 10:03 am

Didn't notice any error with first command, got below info with second command:
Ignoring windows-curses: markers 'sys_platform == "win32"' don't match your environment.
Not sure if this is a problem.

While I still got same error when running gdb client.
./zephyr-sdk-0.11.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
There's no libpython3.6 installed?

I'm using Ubuntu 20.04 LTS running in VMware on a WIN10 machine.
spingali
Posts: 10
Joined: Fri May 15, 2020 5:58 am

As per zephyr documentation sdk 0.11.2 requires python 3.6. Looks it is missing on your system. Try installing python3.6.
sudo apt-get install python3.6
Jack
Posts: 17
Joined: Tue May 19, 2020 10:03 am

Installed python3.6 and still same error.

jzhang@ubuntu:~$ sudo apt-get install python3.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python3.6-2to3' for regex 'python3.6'
Note, selecting 'libpython3.6-stdlib' for regex 'python3.6'
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

jzhang@ubuntu:~$ ./zephyr-sdk-0.11.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb
./zephyr-sdk-0.11.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
Post Reply