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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

919 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

17 Experts available now in Live!

Get 1:1 Help Now