+ -
当前位置:首页 → 问答吧 → Ubuntu Linux:MySQL安装指南(转贴)

Ubuntu Linux:MySQL安装指南(转贴)

时间:2009-11-29

来源:互联网

我是按照下面的 这个指导做的:
http://en.kioskea.net/faq/sujet-4405-li ... figuration

但是没有找到“Deny TCP connections to X server”,在ubuntu 9.10上没有这个选项:
System/Administration/Login Window.


oracle@ubuntu-laptop:~/database$ ./runInstaller -jreLoc /usr/lib/jvm/java-6-sun/jre/
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 80 MB. Actual 111863 MB Passed
Checking swap space: must be greater than 150 MB. Actual 6236 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n] y


>>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-11-29_04-44-24PM. Please wait ...oracle@ubuntu-laptop:~/database$ No protocol specified
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.Toolkit$2.run(Toolkit.java:834)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)
at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1848)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:585)
at oracle.install.commons.util.Application.startup(Application.java:758)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)
oracle@ubuntu-laptop:~/database$

作者: Ztw   发布时间: 2009-11-29

难!我啥也不说了,帮顶,等高手来

作者: pocoyo   发布时间: 2009-11-29

ls 这个挨千刀的

作者: pocoyo   发布时间: 2009-11-29

问题已经解决了:

对于本机这种情况,可以直接将DISPLAY设置为“:0.0”,这种不加IP的方式,可以确保系统可以找到相应的x库。

设置DISPLAY为:0.0后,则Oracle的安装程序顺利启动。

但是报错:
下面的需要的库文件找不到:
The following packages (or later versions) must be installed:

怎么下载这些库文件啊?

如下,报错:
root@ubuntu-laptop:~# apt-get install unixODBC-devel
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package unixODBC-devel


binutils-2.15.92.0.2
compat-libstdc++-33.2.3
elfutils-libelf-0.97
elfutils-libelf-devel-0.97
gcc-3.4.6
gcc-c++-3.4.6
glibc-2.3.4-2.41
glibc-common-2.3.4
glibc-devel-2.3.4
glibc-headers-2.3.4
libaio-devel-0.3.105
libaio-0.3.105
libgcc-3.4.6
libstdc++-3.4.6
libstdc++-devel-3.4.6
make-3.80
pdksh-5.2.14
sysstat-5.0.5
unixODBC-2.2.11
unixODBC-devel-2.2.11

而且在拷贝文件时,有许多文件丢失。

我从Oracle网站上下载的是11.2版本的,是不是在ubuntu9.10上安装不适合啊?

另外:
请问Ubuntu 9.10的Linux版本相当于Red Hat和SUSE Linux 的哪个版本啊?
有谁知道吗?

作者: Ztw   发布时间: 2009-12-01

Ztw 写道:
问题已经解决了:

对于本机这种情况,可以直接将DISPLAY设置为“:0.0”,这种不加IP的方式,可以确保系统可以找到相应的x库。

设置DISPLAY为:0.0后,则Oracle的安装程序顺利启动。

但是报错:
下面的需要的库文件找不到:
The following packages (or later versions) must be installed:

怎么下载这些库文件啊?

如下,报错:
root@ubuntu-laptop:~# apt-get install unixODBC-devel
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package unixODBC-devel


binutils-2.15.92.0.2
compat-libstdc++-33.2.3
elfutils-libelf-0.97
elfutils-libelf-devel-0.97
gcc-3.4.6
gcc-c++-3.4.6
glibc-2.3.4-2.41
glibc-common-2.3.4
glibc-devel-2.3.4
glibc-headers-2.3.4
libaio-devel-0.3.105
libaio-0.3.105
libgcc-3.4.6
libstdc++-3.4.6
libstdc++-devel-3.4.6
make-3.80
pdksh-5.2.14
sysstat-5.0.5
unixODBC-2.2.11
unixODBC-devel-2.2.11

而且在拷贝文件时,有许多文件丢失。

我从Oracle网站上下载的是11.2版本的,是不是在ubuntu9.10上安装不适合啊?

另外:
请问Ubuntu 9.10的Linux版本相当于Red Hat和SUSE Linux 的哪个版本啊?
有谁知道吗?



帮忙看看阿,难道没有人解决上面的问题之一吗?

作者: Ztw   发布时间: 2009-12-02

redhat貌似支持的好点

作者: 娃娃鱼   发布时间: 2009-12-07

还没有安装好吗?

上面列出的那些库文件,绝大多数都不需要管了
我在装的时候也是列出了一堆,但我用apg-get install的时候,
发现其实是机器上的版本比列出的版本还要新,
比如列表中的make-3.80,我本机的已经是3.81
这种情况不用理会,ignore all 就好了

不过安装oracle之前最好用Ubuntu的软件更新进行一次全面更新
如果不放心的话,列表中的项目
可以一个一个的sudo apt-get install xxx来安装
(命令中的xxx不需要带版本号,比如sudo apt-get install make
但也有特殊的,比如libaio好想要用sudo apt-get install libaio1)

我安装完第一张盘了,第二张正在下载,不知道装完能用不能

作者: xxlbxx   发布时间: 2009-12-11

哦,刚才没有注意你已经尝试安装过那些包了
我这里安装了新版本之后,还是会报找不到的问题
并且安装的时候遇到了错误
error in invoking target “install” of makefile ins_ctx.mk
正在尝试解决

作者: xxlbxx   发布时间: 2009-12-11

还是postgre吧

作者: soiamso   发布时间: 2009-12-11

error in invoking target “install” of makefile ins_ctx.mk
的问题暂时不考虑的话,选择继续
到了后面执行Oracle Net Configuration Assistant的时候也会报错:

[INS-20802] Oracle Net Configuration Assistant failed.

在oracle的网站上也有人遇到相同的问题
这是两个报相同问题的帖子:
http://forums.oracle.com/forums/thread. ... dID=999511
http://forums.oracle.com/forums/thread. ... dID=999945

这两个帖子中的问题都说是oracle11.2在red hat 5.4上安装时遇到的
提出的解决方法是在/etc/hosts里面加上hostname的配置

但第二个帖子说的貌似是32位oracle或linux的一个bug
Bug 8930861: X86 DBCA, NETCA GIVE JAVA HOTSPOT ERROR IF ON X86_64 HARDWARE
说是现在的解决方法只能是安装64位系统再试一下

作者: xxlbxx   发布时间: 2009-12-12

后来就选择“只安装ORACLE软件“没有创建数据,结果是安装成功了,但是怎么也不能启动netca,
在网上说是ORACLE自带的JAVA和系统的JAVA冲突了,但是我修改了$ORACLE_HOME/bin/netca为:
# External Directory Variables set by the Installer
JRE_DIR=/u01/app/oracle/product/11.2.0/dbhome_1/jdk/jre
#JRE_DIR=/usr/lib/jvm/java-6-sun/jre
JLIB_DIR=/u01/app/oracle/product/11.2.0/dbhome_1/jlib

结果还是报下面的错:
Oracle Net Services Configuration:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0xa24fb35e, pid=10601, tid=3077039808
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
# Problematic frame:
# C [libnnz11.so+0x3c35e]
#
# An error report file with more information is saved as hs_err_pid10601.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
/u01/app/oracle/product/11.2.0/dbhome_1/bin/netca: line 179: 10601 Aborted $JRE $JRE_OPTIONS -classpath $CLASSPATH oracle.net.ca.NetCA $*

dbca也不能启动,报下面的错误:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x9dcc035e, pid=10649, tid=3077424832
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
# Problematic frame:
# C [libnnz11.so+0x3c35e]
#
# An error report file with more information is saved as hs_err_pid10649.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted

请各位帮忙看看?
万分感谢!!

作者: Ztw   发布时间: 2009-12-12

跟楼主一样的问题,期待能有一个完整的解决方案。。。

作者: ijse   发布时间: 2010-09-18

我是按照下面的 这个指导做的:
http://en.kioskea.net/faq/sujet-4405-li ... figuration

但是没有找到“Deny TCP connections to X server”,在ubuntu 9.10上没有这个选项:
System/Administration/Login Window.


oracle@ubuntu-laptop:~/database$ ./runInstaller -jreLoc /usr/lib/jvm/java-6-sun/jre/
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 80 MB. Actual 111863 MB Passed
Checking swap space: must be greater than 150 MB. Actual 6236 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n] y


>>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-11-29_04-44-24PM. Please wait ...oracle@ubuntu-laptop:~/database$ No protocol specified
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.Toolkit$2.run(Toolkit.java:834)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)
at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1848)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:585)
at oracle.install.commons.util.Application.startup(Application.java:758)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)
oracle@ubuntu-laptop:~/database$

作者: Ztw   发布时间: 2009-11-29

难!我啥也不说了,帮顶,等高手来

作者: pocoyo   发布时间: 2009-11-29

ls 这个挨千刀的

作者: pocoyo   发布时间: 2009-11-29

问题已经解决了:

对于本机这种情况,可以直接将DISPLAY设置为“:0.0”,这种不加IP的方式,可以确保系统可以找到相应的x库。

设置DISPLAY为:0.0后,则Oracle的安装程序顺利启动。

但是报错:
下面的需要的库文件找不到:
The following packages (or later versions) must be installed:

怎么下载这些库文件啊?

如下,报错:
root@ubuntu-laptop:~# apt-get install unixODBC-devel
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package unixODBC-devel


binutils-2.15.92.0.2
compat-libstdc++-33.2.3
elfutils-libelf-0.97
elfutils-libelf-devel-0.97
gcc-3.4.6
gcc-c++-3.4.6
glibc-2.3.4-2.41
glibc-common-2.3.4
glibc-devel-2.3.4
glibc-headers-2.3.4
libaio-devel-0.3.105
libaio-0.3.105
libgcc-3.4.6
libstdc++-3.4.6
libstdc++-devel-3.4.6
make-3.80
pdksh-5.2.14
sysstat-5.0.5
unixODBC-2.2.11
unixODBC-devel-2.2.11

而且在拷贝文件时,有许多文件丢失。

我从Oracle网站上下载的是11.2版本的,是不是在ubuntu9.10上安装不适合啊?

另外:
请问Ubuntu 9.10的Linux版本相当于Red Hat和SUSE Linux 的哪个版本啊?
有谁知道吗?

作者: Ztw   发布时间: 2009-12-01

Ztw 写道:
问题已经解决了:

对于本机这种情况,可以直接将DISPLAY设置为“:0.0”,这种不加IP的方式,可以确保系统可以找到相应的x库。

设置DISPLAY为:0.0后,则Oracle的安装程序顺利启动。

但是报错:
下面的需要的库文件找不到:
The following packages (or later versions) must be installed:

怎么下载这些库文件啊?

如下,报错:
root@ubuntu-laptop:~# apt-get install unixODBC-devel
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package unixODBC-devel


binutils-2.15.92.0.2
compat-libstdc++-33.2.3
elfutils-libelf-0.97
elfutils-libelf-devel-0.97
gcc-3.4.6
gcc-c++-3.4.6
glibc-2.3.4-2.41
glibc-common-2.3.4
glibc-devel-2.3.4
glibc-headers-2.3.4
libaio-devel-0.3.105
libaio-0.3.105
libgcc-3.4.6
libstdc++-3.4.6
libstdc++-devel-3.4.6
make-3.80
pdksh-5.2.14
sysstat-5.0.5
unixODBC-2.2.11
unixODBC-devel-2.2.11

而且在拷贝文件时,有许多文件丢失。

我从Oracle网站上下载的是11.2版本的,是不是在ubuntu9.10上安装不适合啊?

另外:
请问Ubuntu 9.10的Linux版本相当于Red Hat和SUSE Linux 的哪个版本啊?
有谁知道吗?



帮忙看看阿,难道没有人解决上面的问题之一吗?

作者: Ztw   发布时间: 2009-12-02

redhat貌似支持的好点

作者: 娃娃鱼   发布时间: 2009-12-07

还没有安装好吗?

上面列出的那些库文件,绝大多数都不需要管了
我在装的时候也是列出了一堆,但我用apg-get install的时候,
发现其实是机器上的版本比列出的版本还要新,
比如列表中的make-3.80,我本机的已经是3.81
这种情况不用理会,ignore all 就好了

不过安装oracle之前最好用Ubuntu的软件更新进行一次全面更新
如果不放心的话,列表中的项目
可以一个一个的sudo apt-get install xxx来安装
(命令中的xxx不需要带版本号,比如sudo apt-get install make
但也有特殊的,比如libaio好想要用sudo apt-get install libaio1)

我安装完第一张盘了,第二张正在下载,不知道装完能用不能

作者: xxlbxx   发布时间: 2009-12-11

哦,刚才没有注意你已经尝试安装过那些包了
我这里安装了新版本之后,还是会报找不到的问题
并且安装的时候遇到了错误
error in invoking target “install” of makefile ins_ctx.mk
正在尝试解决

作者: xxlbxx   发布时间: 2009-12-11

还是postgre吧

作者: soiamso   发布时间: 2009-12-11

error in invoking target “install” of makefile ins_ctx.mk
的问题暂时不考虑的话,选择继续
到了后面执行Oracle Net Configuration Assistant的时候也会报错:

[INS-20802] Oracle Net Configuration Assistant failed.

在oracle的网站上也有人遇到相同的问题
这是两个报相同问题的帖子:
http://forums.oracle.com/forums/thread. ... dID=999511
http://forums.oracle.com/forums/thread. ... dID=999945

这两个帖子中的问题都说是oracle11.2在red hat 5.4上安装时遇到的
提出的解决方法是在/etc/hosts里面加上hostname的配置

但第二个帖子说的貌似是32位oracle或linux的一个bug
Bug 8930861: X86 DBCA, NETCA GIVE JAVA HOTSPOT ERROR IF ON X86_64 HARDWARE
说是现在的解决方法只能是安装64位系统再试一下

作者: xxlbxx   发布时间: 2009-12-12

后来就选择“只安装ORACLE软件“没有创建数据,结果是安装成功了,但是怎么也不能启动netca,
在网上说是ORACLE自带的JAVA和系统的JAVA冲突了,但是我修改了$ORACLE_HOME/bin/netca为:
# External Directory Variables set by the Installer
JRE_DIR=/u01/app/oracle/product/11.2.0/dbhome_1/jdk/jre
#JRE_DIR=/usr/lib/jvm/java-6-sun/jre
JLIB_DIR=/u01/app/oracle/product/11.2.0/dbhome_1/jlib

结果还是报下面的错:
Oracle Net Services Configuration:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0xa24fb35e, pid=10601, tid=3077039808
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
# Problematic frame:
# C [libnnz11.so+0x3c35e]
#
# An error report file with more information is saved as hs_err_pid10601.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
/u01/app/oracle/product/11.2.0/dbhome_1/bin/netca: line 179: 10601 Aborted $JRE $JRE_OPTIONS -classpath $CLASSPATH oracle.net.ca.NetCA $*

dbca也不能启动,报下面的错误:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x9dcc035e, pid=10649, tid=3077424832
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
# Problematic frame:
# C [libnnz11.so+0x3c35e]
#
# An error report file with more information is saved as hs_err_pid10649.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted

请各位帮忙看看?
万分感谢!!

作者: Ztw   发布时间: 2009-12-12

跟楼主一样的问题,期待能有一个完整的解决方案。。。

作者: ijse   发布时间: 2010-09-18

相关阅读 更多