Page 1 of 1

GDB Client issue in Ubuntu

Posted: Fri Jun 12, 2020 4:06 am
by Jack
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

Re: GDB Client issue in Ubuntu

Posted: Fri Jun 12, 2020 5:10 am
by spingali
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.

Re: GDB Client issue in Ubuntu

Posted: Fri Jun 12, 2020 5:20 am
by Jack
I noticed that and I typed the 2 hyphens myself, so the install should happened correctly.

Re: GDB Client issue in Ubuntu

Posted: Fri Jun 12, 2020 3:00 pm
by spingali
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.

Re: GDB Client issue in Ubuntu

Posted: Wed Jun 17, 2020 8:32 am
by Jack
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.

Re: GDB Client issue in Ubuntu

Posted: Wed Jun 17, 2020 9:03 am
by spingali
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

Re: GDB Client issue in Ubuntu

Posted: Wed Jun 17, 2020 12:42 pm
by Jack
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