Gdb tool migration requirements: you want to use gdb to track and debug makefile projects. The target machine does not have the gdb tool. Environment: 8.133 is installed with a linux system, that is, the server, and smb is successfully set. the gdb tool is not available on the target machine 8.201. Www.2cto.com: Question 1 on 133 whichg...
Gdb tool migration requirements: you want to use gdb to track and debug makefile projects. The target machine does not have the gdb tool. Environment: 8.133 is installed with a linux system, that is, the server, and smb is successfully set. the gdb tool is not available on the target machine 8.201. Www.2cto.com: Question 1 which gdb found out on 133: [root @ localhost sysmgmtclu] # which gdb/usr/bin/gdb2 scp to 201: scp/usr/bin/gdb root@192.168.8.201: /usr/bin/3 in the target machine gdb excutablefile, you will find that you cannot find a library file. 2. 1 in the target machine-bash-3.2 # gdb/root/clu. some library files cannot be found. what is the prompt www.2cto.com GNU gdb Fedora (6.8-27. el5) Copyright (C) 2008 Free Software Foundation, Inc. license GPLv3 +: gnu gpl version 3 or later This is free software: you are free to change and redistribute it. there is no warranty, to the extent permitted by law. type "show copying" and "show warranty" for details. this GDB was configured as "x86_64-redhat-linux-gnu "... (no debugging symbols found) (gdb) B clu. c: 1504No symbol table is loaded. use the "file" command. (gdb) solution: www.2cto.com Solution 1: you can use the ldd command on 133 to find the library files required by gdb. the ldd command tool itself is a static library and does not require support from other libraries. Hold, put these databases scp to the target machine on OK. [Root @ localhost sysmgmtclu] # which gdb/usr/bin/gdb [root @ localhost sysmgmtclu] # ldd/usr/bin/gdb libreadline. so.5 =>/usr/lib64/libreadline. so.5 (0x00000033ffe00000) libncurses. so.5 =>/usr/lib64/libncurses. so.5 (0x0000003412000000) libm. so.6 =>/lib64/libm. so.6 (0x00000033ff200000) libexpat. so.0 =>/lib64/libexpat. so.0 (0x0000003401600000) libdl. so.2 =>/lib64/libdl. so.2 (0x00000033ff600000) libc. so.6 =>/lib64/libc. so.6 (0x00000033fee00000)/lib64/ld-linux-x86-64.so.2 (0x00000033fea00000) Problem 2: that cannot find the library is also because of a small library, you can find/-name "libname" on 133 to find the library
Path, and then the complete scp of the database to the corresponding directory on the target machine. The error still persists when the number of missing database errors is found. the prompt is checked online because the project makefile-g does not work. just comment out some striped information in the Makefile under clu.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service