Thursday Apr 16, 2009
There is a Solaris 10 Sparc in the lab which could not be booted. Some critical mysql data needs to be dumped.
Firstly I tried to boot system into "single user mode". Press "stop+A" to enter openboot, then type "boot -s" under the ok prompt. System was rebooted, but still could not be booted. Failed.
Put a Solaris 10 Sparc installation DVD into the dvdrom. Press "stop+A", then type "boot cdrom -s". System was rebooted and entered into the single user mode shell.
Now, I can mount the hard disk.
# mount /dev/dsk/c0t0d0s0 /a
# mkdir /tmp/a
# mount /dev/dsk/c0t0d0s7 /tmp/a
mysql was installed under /a/usr/local/mysql directory.
# cd /a/usr/local/mysql/bin
# ./safemysqld -uroot
It reported that can not find some mysql libraries.
Use crle to check the system linking
-bash-3.2# crle
Default configuration file (/var/ld/ld.config) not found
Platform: 32-bit MSB SPARC
Default Library Path (ELF): /lib:/usr/lib (system default)
Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)
Use "crle" command to add library, crle -u -l /a/usr/local/mysql/lib. Execut safemysqld again, it reported can not find libstdc++...
crle -u -l /a/lib ; crle -u -l /a/usr/lib
Use ldd to check. It's ok now.
--------------------------
有一台Solaris 10 Sparc 的机器今天不能启动了。里面有一些重要的mysql 数据需要dump出来。
首先尝试让系统进入 single user mode。 按stop+A进入boot,在ok提示符下输入boot -s。系统重启,但还是还是不能boot。失败。
找一张Solaris 10 Sparc 安装盘放入光驱。按stop+A进入boot,输入 boot cdrom -s。系统重启,成功进入单用户shell。
mount 系统硬盘,mount /dev/dsk/c0t0d0s0 /a。成功。原系统的根被mount到/a。 然后再mount 源系统 /export, mkdir /tmp/a; mount /dev/dsk/c0t0d0s7 /tmp/a。成功。
原系统的mysql被安装在/a/usr/local/mysql 下,cd /a/usr/local/mysql/bin。执行 ./safemysqld -uroot。出错。错误报告是找不到 mysql 需要的库。查找mysql库文件,在/a/usr/local/mysql/lib下。
用crle查看,
-bash-3.2# crle
Default configuration file (/var/ld/ld.config) not found
Platform: 32-bit MSB SPARC
Default Library Path (ELF): /lib:/usr/lib (system default)
Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)
添加库路径,crle -u -l /a/usr/local/mysql/lib。再次执行safemysqld,出错,找不到libstdc++...。原因是还没有把 mount的原系统库路径添加。
crle -u -l /a/lib ; crle -u -l /a/usr/lib
用ldd检查safemysqld。确认所有库均已链接。再次执行 safemysqld,成功。
Monday Apr 21, 2008
In order to get Woodstock example.war running on Tomcat, you need extra libraries.
- Download JSTL 1.1 from http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi. Unzip/untar it.Copy lib/jstl.jar to ${Tomcat_home}/lib/
- Download JSF RI from Mojarra project. https://javaserverfaces.dev.java.net/download.html .Unzip it and copy lib/*.jar to ${Tomcat_home}/lib/
- Restart tomcat
- Download Woodstock example.war/testapp.war, deploy it to Tomcat.
Then things are going on as expected.
Tuesday Apr 15, 2008
4月14-17号在Santa Clara附近召开MySQL大会,这应该是Sun收购MySQL后第一次大会。我们组买了一张票,我和另外一个同事Share。今天他去,明天轮到我了。开了看会议日程,session还真的不少,粗劣估计大概有几百个,早7:30到晚6:30。等会挑几个比较有兴趣的明天去听一听。
http://en.oreilly.com/mysql2008/public/content/home
Saturday Jun 23, 2007
There are some links to java annontation documents. Saved them for future learning.
Thursday Mar 22, 2007
I just found a test case management tool on SourceForge@net, it's so powerful.
TestLink is a open source web based TEST MANAGEMENT and test EXECUTION system under the GPL license (i.e. free to use). The tool enables quality assurance teams to create and manage their test cases as well as organize them into test plans. These test plans allow team members to execute test cases and track test results dynamically, generate reports, trace software requirements, prioritize and assign.
The URL to TestLink is: http://www.teamst.org/index.php?option=com_frontpage&Itemid=1
Tools to aid in software localization (format conversion, quality tests, etc.). Pootle is a web based translation and translation management tool. Supported formats: PO, properties, OpenOffice, Mozilla, XLIFF, TMX, TBX, CSV, .ts
http://translate.sourceforge.net/
The Software Testing Automation Framework (STAF) is a framework
designed to improve the level of reuse and automation in test cases and
test environments. The goal of STAF is to provide a complete end-to-end
automation solution for testers.
http://sourceforge.net/projects/staf
http://www.opensourcetesting.org/
GNU/Linux Desktop Testing Project (GNU/LDTP) is aimed at producing high
quality test automation framework and cutting-edge tools that can be
used to test GNU/Linux Desktop and improve it. It uses the Accessibility
libraries to poke through the application's user interface. The
framework also has tools to record test-cases based on user-selection
on the application.
GNU/LDTP core framework uses Appmap and the recorded test-cases
to test an application and gives the status of each test-case as
output. As of now, GNU/LDTP can test any GNOME application which are
accessibility enabled, Mozilla, Openoffice.org, any Java application
(should have a UI based on swing) and KDE 4.0 applications based on QT
4.0 (based on the press releases by KDE).
http://ldtp.freedesktop.org/wiki/SoC
Sunday Mar 18, 2007
On Ubuntu:
/etc/X11/xinit/xinput.d/${lang}
On Solaris:
/usr/openwin/lib/locale/common/imsscript/
Thursday Mar 15, 2007
Ubuntu on ThinkPad T60 how to
GNU make
Sunday Mar 11, 2007
AutoTools
AutoTools includes the following:
- GNU Autoconf 2.60 (June 2006)
- GNU Automake 1.9.6 (September 2005)
- GNU Libtool 1.5.22 (December 2005)
- GNU Gettext 0.14.5 (May 2005)
Standard Makefile Targets
‘make all’ Build programs, libraries, documentation, etc.
(Same as ‘make’.)
‘make install’ Install what needs to be installed.
‘make install-strip’ Same as ‘make install’, then strip debugging
symbols.
‘make uninstall’ The opposite of ‘make install’.
‘make clean’ Erase what has been built (the opposite of ‘make
all’).
‘make distclean’ Additionally erase anything ‘./configure’
created.
‘make check’ Run the test suite, if any.
‘make installcheck’ Check the installed programs or libraries, if
supported.
‘make dist’ Create PACKAGE-VERSION.tar.gz.
Cross-compilation configure options:
- ‘--build=BUILD’ The system on which the package is built.
- ‘--host=HOST’ The system where built programs & libraries
run.
- ‘--target=TARGET’ Only when building compiler tools: the system
which the tools will create output.
For simple cross-compilation, only ‘--host=HOST’ is needed.