Installing ksh on RedHat Linux 5.1 -- problems with build pdksh

Posted on 2006-06-23
Last Modified: 2012-06-27

We are having problem compiling the ksh package: pdksh-5.2.14
,  -- " ..  ulimit limit sized not defined .."    on an oldder  Linux (RH 5.1)
box.   Is there a quick fix for it? or we have to use a newer computer/linux
.  I  am a computer instructor trying to give a demo on the Korn shell to
a group of non-programmers, can't afford so many new boxes. Thanks.
Question by:zzhang2006
  • 2
  • 2
LVL 22

Assisted Solution

pjedmond earned 125 total points
ID: 16973764
Wow - I haven't seen a RedHat distro this old in ages:)....Glad to see a few still going!

More modern systems automatically 'define' the limits available to the shell, so I'm going to guess that RH 5.1 doesn't? As a result, I'm assuming that the compile process is just beinf fussy!

First thing is try and find out if you have the command 'ulimit' on your system:

which ulimit

find / | grep ulinit

Then try and see if there is a man, or info entry for it. I'll past my man entry from a RH EL3 for you at the end of this. The setting that I think you need to play with is the 'ulimit -l', but you may wish to try the others!

       ulimit [-SHacdflmnpstuv [limit]]
              Provides  control  over the resources available to the shell and
              to processes started by it, on systems that allow such  control.
              The -H and -S options specify that the hard or soft limit is set
              for the given resource.  A hard limit cannot be  increased  once
              it  is set; a soft limit may be increased up to the value of the
              hard limit.  If neither -H nor -S is specified,  both  the  soft
              and  hard limits are set.  The value of limit can be a number in
              the unit specified for the resource or one of the special values
              hard,  soft,  or  unlimited,  which  stand  for the current hard
              limit, the current soft limit, and no limit,  respectively.   If
              limit  is  omitted,  the  current value of the soft limit of the
              resource is printed, unless the -H option is given.   When  more
              than  one  resource  is  specified,  the limit name and unit are
              printed before the value.  Other options are interpreted as fol-
              -a     All current limits are reported
              -c     The maximum size of core files created
              -d     The maximum size of a processâs data segment
              -f     The maximum size of files created by the shell
              -l     The maximum size that may be locked into memory
              -m     The maximum resident set size
              -n     The maximum number of open file descriptors (most systems
                     do not allow this value to be set)
              -p     The pipe size in 512-byte blocks (this may not be set)
              -s     The maximum stack size
              -t     The maximum amount of cpu time in seconds
              -u     The maximum number of processes  available  to  a  single
              -v     The  maximum  amount  of  virtual memory available to the

              If limit is given, it is the new value of the specified resource
              (the -a option is display only).  If no option is given, then -f
              is assumed.  Values are in 1024-byte increments, except for  -t,
              which  is  in seconds, -p, which is in units of 512-byte blocks,
              and -n and -u, which are unscaled values.  The return status  is
              0  unless an invalid option or argument is supplied, or an error
              occurs while setting a new limit.

(   (()
(`-' _\
 ''  ''

LVL 10

Accepted Solution

fm250 earned 125 total points
ID: 16974357
You may want to install fedora core 5. it takes an hour or so and save a lot of time.

Author Comment

ID: 17013152
Is fedora core 5 free?  What's the normal way to get it?

Thanks again.


Author Comment

ID: 17013171
I compiled the kshel without the ulimit, by removing the targget from the makefile since my RH5.1 simply doesn't have it;  it seems working alright.
LVL 22

Expert Comment

ID: 17013348
I sensed a little from your comments that you may be (no offence intended) a little out of touch with the progression of Linux. As a result, I thought that you might like the following links and pointers:)

FC 5 can be downloaded free from:

There are numerous other distros available for free download:

Pick one you, burn and play.

As your involved in teaching, you might like the concept of a live distro. You can give them a CD and they can play at home on their PC without installing it on their system as it all runs from the CD drive:

Knoppix is probably considered to be the 'leader' in this area.

(   (()
(`-' _\
 ''  ''

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now