LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-23-2009, 10:26 AM   #1
jbaltodano
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
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?
 
Old 05-23-2009, 10:33 AM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
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.
 
Old 05-23-2009, 10:39 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by jbaltodano View Post
sort: open failed: +2n: No such file or directory
The new POSIX standard does not support the syntax
Code:
sort +2n
anymore, hence the error you get. A workaround is to specify an older POSIX standard. Just do:
Code:
export _POSIX2_VERSION=199209
in the same terminal where you're compiling and the trick is done!
 
1 members found this post helpful.
Old 05-23-2009, 07:48 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
Old 05-25-2009, 09:55 AM   #5
jbaltodano
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 05-25-2009, 10:02 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by jbaltodano View Post
When i tape "make install" it's supossed to install but nothing occure.
What do you mean for nothing occures? Did the prompt returned without any message or did you get some error?

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?
 
Old 05-25-2009, 10:12 AM   #7
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
Quote:
Originally Posted by chrism01 View Post
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.
Oracle SOA specifically asks for pdksh which frankly is an absolute ball ache.

@OP: Check this link out http://forums.oracle.com/forums/thre...sageID=2289206 they seem to have a better idea
 
Old 05-26-2009, 01:46 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Considering OEL (Oracle Enteprise Linux) is a copy of RHEL, this
Quote:
Oracle SOA specifically asks for pdksh which frankly is an absolute ball ache.
is even more bizarre than asking for pdksh in the first place...
 
Old 05-26-2009, 02:24 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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?
 
Old 05-26-2009, 08:19 AM   #10
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

Rep: Reputation: 62
Yes it, unfortunately, notices the difference. Checks the version number.
 
Old 05-26-2009, 09:27 AM   #11
jbaltodano
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 05-26-2009, 10:49 AM   #12
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Ok. Let's return to your question. What do you get when you do make install? Any output? Any error?
 
Old 05-27-2009, 09:02 AM   #13
jbaltodano
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 05-27-2009, 09:09 AM   #14
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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.
 
Old 05-28-2009, 09:12 AM   #15
jbaltodano
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
thank colucix
but i dont understand what PATH i'll verify.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install pdksh ? serdar_17 Linux - Newbie 9 02-04-2009 08:24 AM
Installing CentOS 5.1 kg4ibj Linux - Newbie 17 04-21-2008 02:29 AM
ksh/pdksh in ubuntu jsentianus Ubuntu 2 01-30-2008 08:28 AM
Installing R on CentOS 4.5 vital_101 Linux - Software 1 10-16-2007 10:24 AM
I can't install pdksh (Korn Shell) dr_sad Linux - Software 2 09-25-2005 10:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration