Revised Build Instructions for Perl 5.8.4
"Jerry D. Hedden" <[email protected]> Thu, 27 May 2004 08:46:38 -0400
| Newsgroups | gmane.os.cygwin.perl |
|---|---|
| Message-ID | <[email protected]> |
I figured out the IPC::SysV stuff. Gerrit was right about needing to
start cygserver before doing the tests. When it's running, all the
tests pass. Here's the revised build instructions:
### CUT HERE ###
tar -xzf perl-5.8.4.tar.gz
cd perl-5.8.4/
mkdir log
# Configure
./Configure -de -Dprefix=/usr/local \
[email protected] \
[email protected] \
-Dldflags=-s \
-Dccdlflags=-s \
-Dlddlflags=-s \
-Dusemallocwrap \
-Duse64bitint \
-Dusethreads \
-A define:optimize='-O2 -pipe -frename-registers
-fomit-frame-pointer -march=pentium3 -mfpmath=sse -mmmx -msse' \
-Dman3ext=3pm \
-A define:ld=/usr/local/bin/ld2 \
2>log/conf.err | tee log/conf.log
# Build
make 2>log/make.err | tee log/make.log
./perl -V -Ilib > log/ver.log
# Test
if ! ps -W | grep -i cygserver >/dev/null; then
/usr/sbin/cygserver -Y -e >/var/log/cygserver.log 2>&1 &
fi
if [[ -z $CYGWIN ]]; then
export CYGWIN='server'
elif ! echo $CYGWIN | grep server >/dev/null; then
export CYGWIN="$CYGWIN server"
fi
export PERLIO=perlio
make test 2>log/test.err | tee log/test.log
# Install
make install-strip 2>log/inst.err | tee log/inst.log
### CUT HERE ###
NOTES:
1. Installs under /usr/local so that it doesn't conflict with the
Cygwin installed version (if you should need it).
2. The above assumes a PIII CPU. Modify the 'optimize' options as
needed (see 'info gcc').
Modify your PATH variable so that /usr/local/bin comes before
/usr/bin and /bin.
If you've already configured CPAN, you can copy over your old config:
cp /usr/local/lib/perl5/5.8.4/CPAN/Config.pm \
/usr/local/lib/perl5/5.8.4/CPAN/
Then run 'cpan' to get any module you need. Use the CPAN's 'r'
command to check for modules to upgrade.
If you remove the Cygwin setup.exe installed version of Perl, you'll
need to clean up remnants left over from CPAN modules:
rm -fr /usr/lib/perl5/
rm -f /usr/bin/lwp-* \
/usr/bin/instmodsh \
/usr/bin/*code-* \
/usr/bin/dbi*
Also, add a link so that existing scripts keep working:
ln -s /usr/local/bin/perl.exe /usr/bin/perl
=====
Jerry D. Hedden
<< If you're not having fun, then you're not doing it right! >>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/ndFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/cygwin-perl/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/