Oracle Solaris 10下gdb安装(附安装包)
1. 背景说明
本文承接Oracle Solaris 10图文安装。
在该文的章节8处,说到操作系统安装完后,默认是64位的,后边安装完gdb后运行会报错(详见“Oracle Solaris 10图文安装”)。
那是不是切换到32位模式下就可以运行了?现在验证下看看。
2. gdb相关包
本文开头处下载或者百度云。
百度云地址:提取码:yf71
(要积分的都是“流氓”)
3. gdb安装
3.1 上传资源
将资源上传到服务器上后,使用root用户开始安装。
3.2 解压
[root@oracle:/soft]# ll
total 82032
-rw-r--r-- 1 root root 299057 Mar 30 2013 expat-2.0.1-sol10-x86-local.gz
-rw-r--r-- 1 root root 22494008 Mar 30 2013 gcc-3.4.6-sol10-x86-local.gz
-rw-r--r-- 1 root root 14789525 Mar 30 2013 gdb-6.8-sol10-x86-local.gz
-rw-r--r-- 1 root root 1486678 Mar 30 2013 libiconv-1.14-sol10-x86-local.gz
-rw-r--r-- 1 root root 48411 Mar 30 2013 libintl-3.4.0-sol10-x86-local.gz
-rw-r--r-- 1 root root 2808616 Mar 30 2013 ncurses-5.7-sol10-x86-local.gz
[root@oracle:/soft]# gunzip expat-2.0.1-sol10-x86-local.gz
[root@oracle:/soft]# gunzip gdb-6.8-sol10-x86-local.gz
[root@oracle:/soft]# gunzip libiconv-1.14-sol10-x86-local.gz
[root@oracle:/soft]# gunzip libintl-3.4.0-sol10-x86-local.gz
[root@oracle:/soft]# gunzip ncurses-5.7-sol10-x86-local.gz
[root@oracle:/soft]# gunzip gcc-3.4.6-sol10-x86-local.gz
[root@oracle:/soft]# ll
total 160560
-rw-r--r-- 1 root root 872960 Mar 30 2013 expat-2.0.1-sol10-x86-local
-rw-r--r-- 1 root root 80072192 Mar 30 2013 gcc-3.4.6-sol10-x86-local
-rw-r--r-- 1 root root 41948672 Mar 30 2013 gdb-6.8-sol10-x86-local
-rw-r--r-- 1 root root 2633216 Mar 30 2013 libiconv-1.14-sol10-x86-local
-rw-r--r-- 1 root root 141824 Mar 30 2013 libintl-3.4.0-sol10-x86-local
-rw-r--r-- 1 root root 14005248 Mar 30 2013 ncurses-5.7-sol10-x86-local
3.3 安装
最好按照下边的顺序安装。输出略。
pkgadd -d expat-2.0.1-sol10-x86-local
pkgadd -d gdb-6.8-sol10-x86-local
pkgadd -d libiconv-1.14-sol10-x86-local
pkgadd -d libintl-3.4.0-sol10-x86-local
pkgadd -d ncurses-5.7-sol10-x86-local
pkgadd -d gcc-3.4.6-sol10-x86-local
3.4 环境变量
有自己的.profile文件的话就改自己的,没有就改/etc/profile。
生效依次是.profile(有的话)-----> /etc/profile(没有.profile的话)。
我的root用户有自己的.profile文件,所以就改这个了。
[root@oracle:/]# cat .profile
alias ll='ls -l'
PS1='[\u@\h:$PWD]# '
export PS1
PATH=/usr/sbin:/usr/bin
export PATH
在以PATH开头一行改为PATH=/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/local/bin。
在结尾再次追加
LD_LIBRARY_PATH=/usr/sfw/lib
export LD_LIBRARY_PATH
最终如下:
[root@oracle:/]# cat .profile
alias ll='ls -l'
PS1='[\u@\h:$PWD]# '
export PS1
PATH=/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/local/bin
export PATH
LD_LIBRARY_PATH=/usr/sfw/lib
export LD_LIBRARY_PATH
[root@oracle:/]# source .profile
[root@oracle:/]# which gdb
/usr/local/bin/gdb
4. 位数确认
确保在32位下运行。
[root@oracle:/]# isainfo -v
32-bit i386 applications
avx xsave pclmulqdq aes sse4.2 sse4.1 ssse3 popcnt tscp cx16 sse3 sse2
sse fxsr mmx cmov sep cx8 tsc fpu bmi1 f16c fma rdrand
5. 验证可用性
用Oracle来验证是否可行,与之前的64位下Oracle用gdb调试出问题做对比。
需要安装Oracle 32位的版本,详见Solaris 10上Oracle 10g安装步骤图解。
session 1:
SQL> select b.spid from v$session a,v$process b where a.sid=(select sid from v$mystat where rownum=1) and a.paddr=b.addr;
SPID
------------
900
其他的终端,在OS(oracle用户)下执行:
[oracle@oracle:/export/home/oracle]# gdb $ORACLE_HOME/bin/oracle 900
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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 "i386-pc-solaris2.10"...
(no debugging symbols found)
Attaching to program `/export/home/oracle/u01/app/oracle/product/11.2.0/db_1/bin/oracle', process 900
Reading symbols from /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libskgxp10.so...(no debugging symbols found)...done.
Loaded symbols for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libskgxp10.so
Reading symbols from /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libhasgen10.so...(no debugging symbols found)...done.
Loaded symbols for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libhasgen10.so
Reading symbols from /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libskgxn2.so...(no debugging symbols found)...done.
Loaded symbols for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libskgxn2.so
Reading symbols from /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libocr10.so...(no debugging symbols found)...done.
Loaded symbols for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libocr10.so
Reading symbols from /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libocrb10.so...(no debugging symbols found)...done.
Loaded symbols for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libocrb10.so
Reading symbols from /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libocrutl10.so...(no debugging symbols found)...done.
Loaded symbols for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libocrutl10.so
Reading symbols from /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libjox10.so...(no debugging symbols found)...done.
Loaded symbols for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libjox10.so
Reading symbols from /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libclsra10.so...
(no debugging symbols found)...done.
Loaded symbols for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libclsra10.so
Reading symbols from /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libdbcfg10.so...(no debugging symbols found)...done.
Loaded symbols for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libdbcfg10.so
Reading symbols from /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libnnz10.so...(no debugging symbols found)...done.
Loaded symbols for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libnnz10.so
Reading symbols from /lib/libkstat.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libkstat.so.1
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libsocket.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libsocket.so.1
Reading symbols from /lib/libgen.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgen.so.1
Reading symbols from /lib/libdl.so.1...
warning: Lowest section in /lib/libdl.so.1 is .hash at 00000094
(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.1
Reading symbols from /usr/lib/libsched.so.1...
warning: Lowest section in /usr/lib/libsched.so.1 is .dynamic at 00000074
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libsched.so.1
Reading symbols from /lib/libc.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.1
Reading symbols from /lib/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libaio.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libaio.so.1
Reading symbols from /lib/libm.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.2
Reading symbols from /lib/libthread.so.1...
warning: Lowest section in /lib/libthread.so.1 is .dynamic at 00000074
(no debugging symbols found)...done.
Loaded symbols for /lib/libthread.so.1
Reading symbols from /lib/libpthread.so.1...
warning: Lowest section in /lib/libpthread.so.1 is .dynamic at 00000074
(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.1
Reading symbols from /lib/libmd.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libmd.so.1
Reading symbols from /lib/ld.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/ld.so.1
sol-thread active.
Retry #1:
Retry #2:
Retry #3:
Retry #4:
[New LWP 1 ]
[New Thread 1 (LWP 1)]
Symbols already loaded for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libskgxp10.so
Symbols already loaded for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libhasgen10.so
Symbols already loaded for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libskgxn2.so
Symbols already loaded for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libocr10.so
Symbols already loaded for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libocrb10.so
Symbols already loaded for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libocrutl10.so
Symbols already loaded for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libjox10.so
Symbols already loaded for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libclsra10.so
Symbols already loaded for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libdbcfg10.so
Symbols already loaded for /export/home/oracle/u01/app/oracle/product/11.2.0/db_1/lib/libnnz10.so
Symbols already loaded for /lib/libkstat.so.1
Symbols already loaded for /lib/libnsl.so.1
Symbols already loaded for /lib/libsocket.so.1
Symbols already loaded for /lib/libgen.so.1
Symbols already loaded for /lib/libdl.so.1
Symbols already loaded for /usr/lib/libsched.so.1
Symbols already loaded for /lib/libc.so.1
Symbols already loaded for /lib/librt.so.1
Symbols already loaded for /lib/libaio.so.1
Symbols already loaded for /lib/libm.so.2
Symbols already loaded for /lib/libthread.so.1
Symbols already loaded for /lib/libpthread.so.1
Symbols already loaded for /lib/libmd.so.1
Symbols already loaded for /lib/ld.so.1
[Switching to Thread 1 (LWP 1)]
0xc89ec545 in _read () from /lib/libc.so.1
(gdb)
成功。
Oracle Solaris 10下gdb安装(附安装包)的更多相关文章
- ubuntu系统下手动安装autoconf安装包
首先简单介绍一下autoconf.Autoconf是一个可以适应多种unix类系统的shell脚本的工具. 我在往虚拟机中安装应用时,需要用到该工具,于是想下载一个.但是由于系统内核版本低,已不能用a ...
- Oracle Solaris 10图文安装
文章目录 1. 虚拟机软件 2. solaris 10镜像 3. 安装OS 4. 允许远程使用root用户登录SSH 5. bash配置 5.1. 修改bash 5.2. 修改提示符 6. CRT连接 ...
- Solaris 10下Qt编译Oracle 10g驱动
上回书讲到<Oracle 10g在Solaris 10中安装详解>,现在开始用Qt来编译下Oracle 10g驱动吧!这样就可以通过Qt程序联入Oracle数据库了! Oracle的环境变 ...
- Solaris 10下使用Python3
通常在Solaris 10上仅仅能使用Python2.x. 假设使用Python3的话,一种就是http://www.sunfreeware.com获取可用的二进制版本号.只是眼下这个站点已经不提供免 ...
- Navicat 12.x for MySQL最新版安装破解教程(附安装包和注册机,全网独家可用
title: "Navicat 12.x for MySQL最新版安装破解教程(附安装包和注册机,全网独家可用" categories: soft tags: soft autho ...
- ubuntu15.10下编译安装wine1.8 rc4
ubuntu15.10下编译安装wine1.8rc4 Wine (“Wine Is Not an Emulator” 的递归缩写)是一个能够在多种 POSIX-compliant 操作系统(诸如 Li ...
- Installshield关于.NET安装时需要重启动的处理办法,以及延伸出的重启后继续安装的安装包的一点想法
原文:Installshield关于.NET安装时需要重启动的处理办法,以及延伸出的重启后继续安装的安装包的一点想法 很多朋友做安装包的时候,所打包的软件需要.NET Framework之类的环境,他 ...
- vs2017离线安装且安装包不占用C盘空间
[参考]vs2017离线安装且安装包不占用C盘空间 第一步:下载离线安装包 https://www.visualstudio.com/zh-hans/downloads/ 在官方地址下载vs_prof ...
- pip安装 Tensorflow 安装包
最简单的 Tensorflow 的安装方法是在 pip 一键式安装官方预编译好的包 pip install tensorflow通常这种预编译的包的编译参数选择是为了最大兼容性而不是为了最优性能,导致 ...
随机推荐
- Java实现 蓝桥杯VIP 算法提高 三角形面积
算法提高 三角形面积 时间限制:1.0s 内存限制:256.0MB 问题描述 由三角形的三边长,求其面积. 提示:由三角形的三边a,b,c求面积可以用如下的公式: s=(a+b+c)/2 输入格式 由 ...
- java实现数组转置
** 数组转置** 编写程序将2行3列的数组行列置换复制给3行2列的数组(即数组的转置).已经写了如下代码,请完善之: class y{ public static void main(String[ ...
- java实现第六届蓝桥杯隔行变色
隔行变色 隔行变色 Excel表的格子很多,为了避免把某行的数据和相邻行混淆,可以采用隔行变色的样式. 小明设计的样式为:第1行蓝色,第2行白色,第3行蓝色,第4行白色,- 现在小明想知道,从第21行 ...
- CVE¬-2020-¬0796 漏洞复现(本地提权)
CVE-2020-0796 漏洞复现(本地提权) 0X00漏洞简介 Microsoft Windows和Microsoft Windows Server都是美国微软(Microsoft)公司的产品 ...
- Linux笔记(第二天)
tail -1 /etc/passwd 显示最后一行 一.用户类型: 超级用户:root 超级管理员 ID=0 普通用户:系统用户:uid:1~999(centos7) 1~499(centos6 ...
- Spring zuul 快速入门实践 --看zuul如何进行服务转发
zuul 作为springCloud 的全家桶组件之一,有着不可或缺的分量.它作为一个普通java API网关,自有网关的好处: 避免将内部信息暴露给外部: 统一服务端应用入口: 为微服务添加额外的安 ...
- 利用BeanMap进行对象与Map的相互转换
javabean与map的转换有很多种方式,比如: 1.通过ObjectMapper先将bean转换为json,再将json转换为map,但是这种方法比较绕,且效率很低,经测试,循环转换10000个b ...
- Largest Allowed Area【模拟+二分】
Largest Allowed Area 题目链接(点击) 题目描述 A company is looking for land to build its headquarters. It has a ...
- 读懂操作系统之虚拟内存TLB与缓存(cache)关系篇(四)
前言 前面我们讲到通过TLB缓存页表加快地址翻译,通过上一节缓存原理的讲解为本节做铺垫引入TLB和缓存的关系,同时我们来完整梳理下从CPU产生虚拟地址最终映射为物理地址获取数据的整个过程是怎样的,若有 ...
- 带你学够浪:Go语言基础系列 - 8分钟学复合类型
★ 文章每周持续更新,原创不易,「三连」让更多人看到是对我最大的肯定.可以微信搜索公众号「 后端技术学堂 」第一时间阅读(一般比博客早更新一到两篇) " 对于一般的语言使用者来说 ,20% ...