LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 11: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, 11:33 AM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

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

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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, 08:48 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
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, 10: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, 11:02 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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, 11:12 AM   #7
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
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, 02:46 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
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, 03:24 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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, 09: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, 10: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, 11:49 AM   #12
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Ok. Let's return to your question. What do you get when you do make install? Any output? Any error?
 
Old 05-27-2009, 10: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, 10:09 AM   #14
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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, 10: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:24 AM
Installing CentOS 5.1 kg4ibj Linux - Newbie 17 04-21-2008 03:29 AM
ksh/pdksh in ubuntu jsentianus Ubuntu 2 01-30-2008 09:28 AM
Installing R on CentOS 4.5 vital_101 Linux - Software 1 10-16-2007 11:24 AM
I can't install pdksh (Korn Shell) dr_sad Linux - Software 2 09-25-2005 11:25 PM


All times are GMT -5. The time now is 10:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration