Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
International Rescue Committe

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 78 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       This document describes various features of IBM's OS/400
       operating system that will affect how Perl version 5
       (hereafter just Perl) is compiled and/or runs.

       By far the easiest way to build Perl for OS/400 is to use
       the PASE (Portable Application Solutions Environment), for
       more information see http://www.iseries.ibm.com/devel­
       oper/factory/pase/index.html This environment allows one
       to use AIX APIs while programming, and it provides a run­
       time that allows AIX binaries to execute directly on the
       PowerPC iSeries.

       Compiling Perl for OS/400 PASE

       The recommended way to build Perl for the OS/400 PASE is
       to build the Perl 5 source code (release 5.8.1 or later)
       under AIX.

       The trick is to give a special parameter to the Configure
       shell script when running it on AIX:

         sh Configure -DPASE ...

       The default installation directory of Perl under PASE is
       /QOpenSys/perl.  This can be modified if needed with Con­
       figure parameter -Dprefix=/some/dir.

       Starting from OS/400 V5R2 the IBM Visual Age compiler is
       supported on OS/400 PASE, so it is possible to build Perl
       natively on OS/400.  The easier way, however, is to com­
       pile in AIX, as just described.

       If you don't want to install the compiled Perl in AIX into
       /QOpenSys (for packaging it before copying it to PASE),
       you can use a Configure parameter: -Dinstallpre­
       fix=/tmp/QOpenSys/perl.  This will cause the "make
       install" to install everything into that directory, while
       the installed files still think they are (will be) in

       If building natively on PASE, please do the build under
       the /QOpenSys directory, since Perl is happier when built
       on a case sensitive filesystem.

       Installing Perl in OS/400 PASE

       If you are compiling on AIX, simply do a "make install" on
       the AIX box.  Once the install finishes, tar up the
       /QOpenSys/perl directory.  Transfer the tarball to the
       OS/400 using FTP with the following commands:

       Using Perl in OS/400 PASE

       Perl in PASE may be used in the same manner as you would
       use Perl on AIX.

       Scripts starting with #!/usr/bin/perl should work if you
       have /QOpenSys/usr/bin/perl symlinked to your perl binary.
       This will not work if you've done a setuid/setgid or have
       environment variable PASE_EXEC_QOPENSYS="N".  If you have
       V5R1, you'll need to get the latest PTFs to have this fea­
       ture.  Scripts starting with #!/QOpenSys/perl/bin/perl
       should always work.

       Known Problems

       When compiling in PASE, there is no "oslevel" command.
       Therefore, you may want to create a script called
       "oslevel" that echoes the level of AIX that your version
       of PASE runtime supports.  If you're unsure, consult your
       documentation or use "".

       If you have test cases that fail, check for the existence
       of spool files.  The test case may be trying to use a
       syscall that is not implemented in PASE.  To avoid the
       SIGILL, try setting the PASE_SYSCALL_NOSIGILL environment
       variable or have a handler for the SIGILL.  If you can
       compile programs for PASE, run the config script and edit
       config.sh when it gives you the option.  If you want to
       remove fchdir(), which isn't implement in V5R1, simply
       change the line that says:




       and then compile Perl.  The places where fchdir() is used
       have alternatives for systems that do not have fchdir()

       Perl on ILE

       There exists a port of Perl to the ILE environment.  This
       port, however, is based quite an old release of Perl, Perl
       5.00502 (August 1998).  (As of July 2002 the latest
       release of Perl is 5.8.0, and even 5.6.1 has been out
       since April 2001.)  If you need to run Perl on ILE,
       though, you may need this older port:
       http://www.cpan.org/ports/#os400 Note that any Perl
       release later than 5.00502 has not been ported to ILE.
Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can choose larger fonts by selecting a different themes.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.10 Seconds