2.1 to install mysql-server-5.0.77-3.el5.x86_64.rpm:
=====================================================================
如果是MySQL-server-community-5.1.53-1.rhel5.x86_64.rpm(即community版本),就不需要后面那些prerequisite,连mysql-5.****都不需要,安装MySQL-server-community-5.1.53-1.rhel5.x86_64.rpm后,有提示为:
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug script!
Starting MySQL.[ OK ]
Giving mysqld 2 seconds to start
=====================================================================
perl-DBD-MySQL and mysql is needed by mysql-server-5.0.77-3.el5.x86_64
first:
[root@localhost Server]# rpm -ivh mysql-5.0.77-3.el5.x86_64.rpm
warning: mysql-5.0.77-3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
perl(DBI) is needed by mysql-5.0.77-3.el5.x86_64
then install rpm -ivh perl-DBI-1.52-2.el5.x86_64.rpm,
then mysql-5.0.77-3.el5.x86_64.rpm is ok.
then mysql-server-5.0.77-3.el5.x86_64.rpm is ok. 3 Get eclipse-rcp-3.2.1-19.el5.x86_64.rpm and eclipse-rcp-sdk-3.2.1-19.el5.x86_64.rpm
About rcp: http://www.enet.com.cn/article/2007/1023/A20071023879905.shtml , http://derekop.javaeye.com/blog/609087 , http://www.enet.com.cn/article/2007/0320/A20070320492442.shtml 3.1 [root@localhost Server]# rpm -ivh eclipse-rcp-3.2.1-19.el5.x86_64.rpm
warning: eclipse-rcp-3.2.1-19.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
/usr/bin/rebuild-gcj-db is needed by eclipse-rcp-3.2.1-19.el5.x86_64
/usr/lib64/eclipse/plugins/org.eclipse.swt.gtk.linux.x86_64_3.2.1.v3235.jar is needed by eclipse-rcp-3.2.1-19.el5.x86_64
java-gcj-compat >= 1.0.64 is needed by eclipse-rcp-3.2.1-19.el5.x86_64
libgcj >= 4.0.2 is needed by eclipse-rcp-3.2.1-19.el5.x86_64
libgcj_bc.so.1()(64bit) is needed by eclipse-rcp-3.2.1-19.el5.x86_64
libswt3-gtk2 = 1:3.2.1-19.el5 is needed by eclipse-rcp-3.2.1-19.el5.x86_64
rebuild-gcj-db is in gcj (GNU compiler for Java), then you need:
about gcj: http://blogs.gaixie.org/tommy/?p=46 and http://wenku.baidu.com/view/b8941223192e45361066f5b0.html 3.2 get gcc-java-4.1.2-46.el5.x86_64.rpm: 3.2.1 [root@localhost Server]# rpm -ivh gcc-java-4.1.2-46.el5.x86_64.rpm
warning: gcc-java-4.1.2-46.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
libgcj = 4.1.2-46.el5 is needed by gcc-java-4.1.2-46.el5.x86_64
libgcj-devel = 4.1.2-46.el5 is needed by gcc-java-4.1.2-46.el5.x86_64
libgcj-tools.so.7rh()(64bit) is needed by gcc-java-4.1.2-46.el5.x86_64
libgcj.so.7rh()(64bit) is needed by gcc-java-4.1.2-46.el5.x86_64
libgij.so.7rh()(64bit) is needed by gcc-java-4.1.2-46.el5.x86_64
3.3 Get libswt3-gtk2-3.2.1-19.el5.x86_64.rpm
[root@localhost Server]# rpm -ivh libswt3-gtk2-3.2.1-19.el5.x86_64.rpm
warning: libswt3-gtk2-3.2.1-19.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
/usr/bin/rebuild-gcj-db is needed by libswt3-gtk2-3.2.1-19.el5.x86_64
java-gcj-compat >= 1.0.64 is needed by libswt3-gtk2-3.2.1-19.el5.x86_64
in rh5.4 dvd, there only java-1.4.2-gcj-* packages, no for java-1.6.0.
and java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64.rpm need jpackage-utils in dvd.
too many to do in a cycle.
So you should use –nodeps option now.
Follow my steps: 3.3.1 [root@localhost Server]# rpm -ivh java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64.rpm
warning: java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
gjdoc is needed by java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64
now you use:
rpm -ihv --nodeps antlr-2.7.6-4jpp.2.x86_64.rpm (antlr need by gjdoc)
rpm -ivh --nodeps gjdoc-0.7.7-12.el5.x86_64.rpm
now java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64.rpm is ok.
Then rpm -ivh libswt3-gtk2-3.2.1-19.el5.x86_64.rpm is ok.
Then rpm -ivh eclipse-rcp-3.2.1-19.el5.x86_64.rpm is ok J
Also, then eclipse-rcp-sdk-3.2.1-19.el5.x86_64.rpm can be installed.