Installing pdksh on CentOS
Hi, I'm trying to install pdksh as part of the required packages for Oracle SOA Suite.
When I try to "make" got the following error CONFIG_FILES="" CONFIG_HEADERS=config.h ./config.status creating.h is unchanged date > stamp-h config.h is unchanged date > stamp-h ./siglist.sh "gcc -E -DHAVE_CONFIG -IO. -I" < ./siglist.in > tmpsiglist.out sort: open failed: +2n: No such file or directory make: ** [siglist.out] Error 1 What is wrong with my pdksh version. where could I download the right version? |
What did you do before this? Exact steps please. Though, I would have thought centOS (being a RHEL derivative) would have either ksh with it, or an easier way of getting it than from source.
|
Quote:
Code:
sort +2n Code:
export _POSIX2_VERSION=199209 |
Don't bother with pdksh. Centos comes with the real ksh /bin/ksh, see contents of /etc/shells.
pdksh was only created, many years ago because it wasn't avail for free/open src on Linux. Since that changed (ksh 93 ?), you now get the real deal by default. |
Thanks colucix i executed the command you said and it compiled very well.
but now i dont know what else to do to install the package. When i tape "make install" it's supossed to install but nothing occure. any one can help me. |
Quote:
Anyway, I'd follow the advice given by chrism01: ksh should be already installed on CentOS, otherwise you can try to install it using Add/Remove Software or yum install ksh. Why do you need pdksh? |
Quote:
@OP: Check this link out http://forums.oracle.com/forums/thre...sageID=2289206 they seem to have a better idea |
Considering OEL (Oracle Enteprise Linux) is a copy of RHEL, this
Quote:
|
Well... if you succeed in compiling pdksh, you will notice that it creates an executable called ksh, the same as the real shell ksh. Do you think the Oracle SOA will notice the difference?
|
Yes it, unfortunately, notices the difference. Checks the version number.
|
Yes, Oracle checks the version number of every required package.
the packages are * glibc-2.3.4-2.9 * glibc-common-2.3.4-2.9 * binutils-2.15.92.0.2-13 * compat-libstdc++-296-2.96-132.7.2 * gcc-3.4.3-22.1 * gcc-c++-3.4.3-22.1 * libstdc++-3.4.3-22.1 * libstdc++-devel-3.4.3-22.1 * openmotif21-2.1.30-11.RHEL4.4 * pdksh-5.2.14-30 * setarch-1.6-1 * make-3.80-5 * gnome-libs-1.4.1.2.90-44.1 * sysstat-5.0.5-1 * compat-db-4.1.25-9 * control-center-2.8.0-12 * xscreensaver-4.18-5.rhel4.2 |
Ok. Let's return to your question. What do you get when you do make install? Any output? Any error?
|
Hi, this is the message i got when execute make install.. actually i use the root account
make install ./mkinstalldirs /usr/local/bin /usr/local/man/man1 /usr/bin/install -c ksh /usr/local/bin/`echo ksh|sed 's,x,x,'` /usr/bin/install -c -m ksh.1 /usr/local/man/man1/`echo ksh|sed 's,x,x,`.1 NOTE: /etc/shells does not contain /usr/local/bin/ksh you should add it if you want to set your shell to ksh thanks |
Well... it is not an error. The shell pdksh has been installed in /usr/local/bin and it is called ksh as the original one. Now you have to force Oracle to use this ksh instead of that one originally installed as /bin/ksh. To do this, you have to verify if the directory /usr/local/bin comes before /bin in your PATH. This is because when you have two executables with the same name, that one appearing first in the PATH is executed.
|
thank colucix
but i dont understand what PATH i'll verify. |
To check the PATH
Code:
echo $PATH Code:
which ksh |
All times are GMT -5. The time now is 06:09 AM. |