CPAN-Dependency
view release on metacpan or search on metacpan
lib/CPAN/Dependency.pm view on Meta::CPAN
cpanplus is assumed to be the user that will executes this module.
=over 4
=item *
Create a ramdisk of S<32 MB>:
dd if=/dev/zero of=/dev/ram0 bs=1M count=32
=item *
Format it and creates an Ext2 filesystem:
mke2fs -L ramdisk0 /dev/ram0
=item *
Now mount it:
mkdir /mnt/ramdisk
mount /dev/ram0 /mnt/ramdisk/
mkdir /mnt/ramdisk/cpanplus
chown cpanplus /mnt/ramdisk/cpanplus/
=item *
Now, as the user cpanplus, move the build directory onto the ramdisk
and symlink it:
mv .cpanplus/5.8.5 /mnt/ramdisk/cpanplus/
ln -s /mnt/ramdisk/cpanplus/5.8.5 .cpanplus/5.8.5
=back
Note that we are explicitly avoiding to move the whole F<.cpanplus/>
directory because it will grow really big during the processing:
some C<CPANPLUS> cache files are already big, and the sub-directory
F<author/> will contain a copy of each processed archive. When processing
the whole CPAN, it means that you'll have here a complete copy of your
mini-CPAN, so be sure that you have enough disk space (or symlink
this directory as well to another volume when you have enough space).
=head3 Ramdisk for Mac OS X
Here is a small shell script that creates, format and mount a ramdisk
of S<64 MB>. Its size can be changed by changing the number of blocks,
where one block is S<512 bytes>. This is a version for OS X.5 and newer:
#!/bin/sh
BLOCK=128000
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://$BLOCKS`
and here is a version for OS X.4 and previous:
#!/bin/sh
BLOCK=128000
dev=`hdid -nomount ram://$BLOCKS`
newfs_hfs -v RAMDisk $dev
mkdir /Volumes/RAMDisk
chmod 777 /Volumes/RAMDisk
mount -t hfs $dev /Volumes/RAMDisk
Then follow the same instructions for moving the F<build/> directory
as given for Linux.
=head3 Ramdisk for Solaris
Beginning with Solaris 9 12/03, Solaris includes a C<ramdiskadm(1M)>
command for managing ramdisks. Below are the links for the documentation
of that command.
=over 4
=item *
Solaris 11:
C<ramdiskadm(1M)> (L<http://docs.oracle.com/cd/E19963-01/html/821-1462/ramdiskadm-1m.html>)
=item *
Solaris 10:
C<ramdiskadm(1M)> (L<http://docs.sun.com/app/docs/doc/816-5166/6mbb1kqcv?a=view>)
=item *
Solaris 9 12/03:
C<ramdiskadm(1M)> (L<http://docs.sun.com/app/docs/doc/817-0690/6mgflntjs?a=view>)
=back
Ramdisks can also be created in previous versions of Solaris using
a pseudo-device. Below are the links for the corresponding documentation.
=over 4
=item *
Solaris 10:
C<pseudo(4)> (L<http://docs.sun.com/app/docs/doc/816-5177/6mbbc4g9a?a=view>),
C<ramdisk(ramdisk(7D))> (L<http://docs.sun.com/app/docs/doc/816-5174/6mbb98uit?a=view>)
=item *
Solaris 9:
C<pseudo(4)> (L<http://docs.sun.com/app/docs/doc/816-0219/6m6njqbbc?a=view>)
=item *
Solaris 8:
C<pseudo(4)> (L<http://docs.sun.com/app/docs/doc/806-0633/6j9vn6q6i?a=view>)
=item *
Solaris 7:
C<pseudo(4)> (L<http://docs.sun.com/app/docs/doc/805-3176/6j31fl7m3?a=view>)
=item *
Solaris 2.6:
C<pseudo(4)> (L<http://docs.sun.com/app/docs/doc/802-5747-04/6i9g1bpsr?a=view>)
( run in 1.228 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )