perlbeos.html

来自「perl教程」· HTML 代码 · 共 145 行

HTML
145
字号
<?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../displayToc.js"></script>
<script language="JavaScript" src="../../tocParas.js"></script>
<script language="JavaScript" src="../../tocTab.js"></script>
<link rel="stylesheet" type="text/css" href="../../scineplex.css">
<title>README.beos - Perl version 5.8+ on BeOS</title>
<link rel="stylesheet" href="../../Active.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />
</head>

<body>

<script>writelinks('__top__',2);</script>
<h1><a>README.beos - Perl version 5.8+ on BeOS</a></h1>
<p><a name="__index__"></a></p>

<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<li><a href="#build_and_install">BUILD AND INSTALL</a></li>
	<ul>

		<li><a href="#requirements">Requirements</a></li>
		<li><a href="#configure">Configure</a></li>
		<li><a href="#build">Build</a></li>
		<li><a href="#install">Install</a></li>
	</ul>

	<li><a href="#known_problems">KNOWN PROBLEMS</a></li>
	<li><a href="#contact">CONTACT</a></li>
</ul>
<!-- INDEX END -->

<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>README.beos - Perl version 5.8+ on BeOS</p>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>This file contains instructions how to build Perl under BeOS and lists
known problems.</p>
<p>
</p>
<hr />
<h1><a name="build_and_install">BUILD AND INSTALL</a></h1>
<p>
</p>
<h2><a name="requirements">Requirements</a></h2>
<p>I have built and tested Perl 5.8.6 and 5.9.1 under BeOS R5 x86 net server.
I can't say anything with regard to PPC. Since Perl 5.8.0 had been released
for BeOS BONE, I suspect, there is a good chance, that it still compiles on
a BONE system. The only change I've made, that affects BONE systems is the
recognition of whether it is a BONE system or not in <code>hints/beos.sh</code>. Now
network socket support should remain enabled on BONE systems. This might
as well break the build, though.</p>
<p>As more recent versions of autoconf require <a href="../../lib/Pod/perlfunc.html#item_flock"><code>flock()</code></a> support, I wrote a <a href="../../lib/Pod/perlfunc.html#item_flock"><code>flock()</code></a>
emulation (flock_server) and released it on BeBits:</p>
<pre>
        <a href="http://www.bebits.com/app/4030">http://www.bebits.com/app/4030</a></pre>
<p>If you want to build a Perl with <a href="../../lib/Pod/perlfunc.html#item_flock"><code>flock()</code></a> support, you have to install this
package first.</p>
<p>
</p>
<h2><a name="configure">Configure</a></h2>
<p>With <a href="../../lib/Pod/perlfunc.html#item_flock"><code>flock()</code></a> support:</p>
<pre>
        CFLAGS=-I/path/to/flock/server/headers ./configure.gnu \
                --prefix=/boot/home/config</pre>
<p>Replace <code>/path/to/flock/server/headers</code> with the path to the directory
containing the <code>flock.h</code> header.</p>
<p>Without <a href="../../lib/Pod/perlfunc.html#item_flock"><code>flock()</code></a> support:</p>
<pre>
        ./configure.gnu --prefix=/boot/home/config</pre>
<p>
</p>
<h2><a name="build">Build</a></h2>
<p>With <a href="../../lib/Pod/perlfunc.html#item_flock"><code>flock()</code></a> support:</p>
<pre>
        make LDLOADLIBS=&quot;-lnet -lflock&quot;</pre>
<p>Without <a href="../../lib/Pod/perlfunc.html#item_flock"><code>flock()</code></a> support:</p>
<pre>
        make LDLOADLIBS=&quot;-lnet&quot;</pre>
<p><code>-lnet</code> is needed on net server systems only and if the compiler doesn't
add it automatically (Be's R5 gcc does, Oliver Tappe's gcc 2.95.3 does not).</p>
<p>
</p>
<h2><a name="install">Install</a></h2>
<p>Install all perl files:</p>
<pre>
        make install</pre>
<p>Create a symlink for libperl:</p>
<pre>
        <span class="variable">cd</span> <span class="operator">~</span><span class="regex">/config/lib</span><span class="operator">;</span> <span class="variable">ln</span> <span class="keyword">-s</span> <span class="variable">perl5</span><span class="operator">/</span><span class="number">5.8</span><span class="operator">.</span><span class="number">6</span><span class="operator">/</span><span class="variable">BePC</span><span class="operator">-</span><span class="variable">beos</span><span class="operator">/</span><span class="keyword">CORE</span><span class="operator">/</span><span class="variable">libperl</span><span class="operator">.</span><span class="variable">so</span> <span class="operator">.</span>
</pre>
<p>Replace <code>5.8.6</code> with your respective version of Perl.</p>
<p>
</p>
<hr />
<h1><a name="known_problems">KNOWN PROBLEMS</a></h1>
<ul>
<li>
<p>Network socket support is disabled for BeOS R5 net server. I didn't dare yet
to try enabling it and see what problems occur.</p>
</li>
<li>
<p>The LFS (large file support) tests (<code>t/op/lfs</code> and <code>xt/Fcntl/t/syslfs</code>) are
disabled as seeking beyond 2 GB is broken according to <a href="mailto:jhi@iki.fi">jhi@iki.fi</a> who was the
last one checking the BeOS port and updating this file before me. Haven't
checked this myself.</p>
</li>
<li>
<p>The <code>t/io/fflush</code> test fails at #6. As far as I can tell, this is caused by
a bug in the BeOS pipes implementation that occurs when starting other child
processes. In the particular test case a <a href="../../lib/Pod/perlfunc.html#item_system"><code>system(&quot;perl -e 0&quot;)</code></a> flushes the
stdout pipe of another child process.</p>
</li>
<li>
<p>The <code>ext/POSIX/t/waitpid</code> test fails at #1. After all child processes are
gone BeOS' <a href="../../lib/Pod/perlfunc.html#item_waitpid"><code>waitpid(-1,...)</code></a> returns 0 instead of -1 (as it should). No idea
how to fix this.</p>
</li>
</ul>
<p>
</p>
<hr />
<h1><a name="contact">CONTACT</a></h1>
<p>For BeOS specifics problems feel free to mail to:
Ingo Weinhold &lt;<a href="mailto:bonefish@cs.tu-berlin.de">bonefish@cs.tu-berlin.de</a>&gt;</p>
<p>Last update: 2004-12-16</p>

</body>

</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?