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

Posted on 2006-06-23
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 22

Assisted Solution

pjedmond earned 375 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 375 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 like...download, 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
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 used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

719 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