Darin McBride wrote:
darktemplaaa wrote:
Hello!
I got IBM DB2 V8.1 successfully installed via rpm on my gentoo system
except the DAS and the instance. When I run:
/opt/IBM/db2/V8.1/instance/dascrt -u dasusr1
I get following error message:
tail: cannot open `+2' for reading: No such file or directory
lcount = 0
DBI1069E Unexpected error. Function = chk_fsystype, Return code =
22.
Explanation:
An unexpected error occurred during the execution of this
program.
User Response:
If the problem persists, contact IBM Support with the following
information:
o Message number
o Function name
o Return code
o Problem description
DBI1079I Output is saved in the log file /tmp/dascrt.log.18686.
Explanation:
All processed and failed operations have been saved into this log
file.
User Response:
Do not modify this file in any way. This file is for IBM
Technical Support reference.
The get the same error message when I try to create an instance like
that:
/opt/IBM/db2/V8.1/instance/db2icrt -a server -u db2fenc1 db2inst1
Does anybody have a solution for this problem? Especially for Gentoo
Linux?
What is your version of tail? Can you see if you can get a different
one? I've seen this problem on other Linux platforms with other
distros, and upgrading the distro solved the problem. I understand
Gentoo doesn't quite work the same as other distros, so I pretty much
have to leave the solution as an excersise for the reader, since, as is
normal in these circumstances, the author has no clue ;-)
This one works (RHEL3U3):
$ tail --version
tail (coreutils) 4.5.3
Written by Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim Meyering.
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The current stable version of tail on Gentoo is 5.2.1 (just checked my
server). The major version jump probably explains the incompatibility:
here's the relevant section for the 5.2.1 info page:
<<<
On older systems, `tail' supports an obsolete option
`-COUNTOPTIONS', which is recognized only if it is specified first.
COUNT is a decimal number optionally followed by a size letter (`b',
`k', `m') as in `-c', or `l' to mean count by lines, or other option
letters (`cfqv'). Some older `tail' implementations also support an
obsolete option `+COUNT' with the same meaning as `-+COUNT'. POSIX
1003.1-2001 (*note Standards conformance::) does not allow these
options; use `-c COUNT' or `-n COUNT' instead.
My guess is that the DB2 command line utilities need to use "-n 2"
instead of "+2" for the newer versions of tail. I've seen the same sort
of problems trying to install some of the old Lokisoft packages; usually
takes an iterative approach to fix them up.
Dan