Search

Menu

Pages

Users

Help

Tools

Syndication

Our Sponsors

Edsger Dijkstra:

"Program testing can be used to show the presence of bugs, but never to show their absence!"

CPAN Testers is only made possible with the support of our sponsors.
For more information on sponsoring, please visit the
I ♥ CPAN Testers website.

Enlightened Perl is a membership organisation within the Perl community, It has goals that are complementary to the Perl Foundation. Specifically, we support many Perl development efforts that ensure Perl's future as an enterprise-grade development platform.

You will also need to properly define in the .bashrc to use local::lib or perlbrew. I'll defer the configuration of it when appropriated.

Warning

The .bashrc configuration proposed automatically by CPAN configuration on OpenBSD offers a different set of parameters than the one documented on local::lib Pod. Compare the values above with the single proposed line on .bashrc from local::lib Pod:

eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"

Configure ntp

As root:

ntpd -s

Configure MFS

If there is available RAM to the VM, configure 512 MB (minimum) for mfs file system. This file system should be used as build_dir option of CPAN module. In the /etc/fstab:

swap /location mfs rw,async,nodev,nosuid,-s=512m 0 0

Also include the option clean_cache_after => 50 for 512 MB of mfs mount point to start() sub of CPAN::Reporter::Smoker.

Also, set the CPAN parameter keep_source_where to the same value configured for the build_dir parameter. This will guarantee that the FIFO mechanism used by build_cache is also applied to the source code files.

Fix libpth

OpenBSD keeps "no standard" C libraries in /usr/local/lib, not /usr/lib. Even if you're installing software available on OpenBSD packages repository (but it is not standard), the standard perl shipped with OpenBSD will not be able to find those libraries.

Using perlbrew

You can also use perlbrew if you want a different perl version (or with different configuration). perlbrew will work fine with OpenBSD after you installed and configured bash as the default shell, but at the time the author is writing this wiki, the standard perl is failing some tests, but you can safely ignore them, just going to the directory where perl was compiled and finishing the process after the tests failed: