App-Context
view release on metacpan or search on metacpan
my ($self, $class) = @_;
no strict; # allow fiddling with the symbol table
if (! defined $used{$class}) {
# if we try to use() it again, we won't get an exception
$used{$class} = 1;
# I could look for a particular variable like $VERSION,
# local (*VERSION) = ${*{"$class\::"}}{VERSION};
# print "$class VERSION: ", ${*VERSION{SCALAR}}, "\n";
# but I decided to look for *any* symbol table entry instead.
if (%{*{"$class\::"}}) { # if any symbols exist in the symbol table
# do nothing
}
elsif ($class =~ /^([A-Za-z0-9_:]+)$/) {
eval "use $1;";
if ($@) {
App::Exception->throw(
error => "class $class failed to load: $@\n",
);
}
lib/App/adminguide/cvs.pod view on Meta::CPAN
and found I had version 1.11.2 installed.
I checked the CVS home page, and it alerted me to a
vulnerability in CVS if this were exposed to the
internet (which I had some sense I might do).
http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0396
So I had to install 1.11.16 or greater (1.11 series) or 1.12.8
or greater (1.12 series). The latest releases are 1.12.9 and
1.11.17. I decided to go with an rpm installation rather than
a source-based installation. I decided to go with the 1.11
series, which cvshome.org says is the "stable" version rather
than the 1.12 version which cvshome.org says is an incremental
feature version.
su -
cd /root
mkdir rpm
cd rpm
wget ftp://rpmfind.net/linux/fedora/core/updates/2/i386/cvs-1.11.17-2.i386.rpm
rpm --upgrade cvs-1.11.17-2.i386.rpm
But then "cvs --version" caused the following error.
cvs: relocation error: cvs: undefined symbol: GSS_C_NT_HOSTBASED_SERVICE
So I decided to go with the RPM from cvshome.org rather than from Fedora.
wget https://ccvs.cvshome.org/files/documents/19/360/cvs-1.11.17-1.i386.rpm
rpm --upgrade cvs-1.11.17-1.i386.rpm
This gave me the following error.
package cvs-1.11.17-2 (which is newer than cvs-1.11.17-1) is already installed
So I did
lib/App/installguide/hosted.pod view on Meta::CPAN
mkdir $PREFIX_BASE/1.0.0/etc
mkdir $PREFIX_BASE/1.0.0/etc/app
mkdir $PREFIX_BASE/1.0.0/bin
mkdir $PREFIX_BASE/1.0.0/lib
mkdir $PREFIX_BASE/1.0.0/src
mkdir $PREFIX_BASE/1.0.0/data
ln -s $PREFIX_BASE/1.0.0 $PREFIX_BASE/prod
=head1 CONFIGURE YOUR LOGIN ENVIRONMENT
Investigate what the "lib" directories are on the system and decide which of those
directories needs to be in the LD_LIBRARY_PATH (search path for libraries).
# ls -ld /lib /*/lib /*/*/lib /*/*/*/lib
Investigate what the "man" directories are on the system and decide which of those
directories needs to be in the MANPATH (search path for "man" pages).
# ls -ld /man /*/man /*/*/man /*/*/*/man
Make sure we have something intelligent for the following variables in "~/.bash_profile".
export PATH=$PATH:$HOME/bin
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
export MANPATH=/man:/usr/man:/usr/share/man:/usr/local/man:/usr/local/share/man
lib/App/installguide/hosted.pod view on Meta::CPAN
Or if the distribution uses Module::Build, you may do the following.
perl Build.PL install_base=/home/username
./Build
./Build test
./Build install
Sometimes a distribution fails some of the tests. If it does, the CPAN shell
will not install it. When you build it manually (as shown above), you may
decide that it is an error in the test suite rather than an error in the
modules themselves. In this case, you can continue with the "install" step.
Then reenter the CPAN shell and install the next module.
IMPORTANT: If anyone discovers problems with these instructions or the
distributions related to the App::Context framework, please report them to me:
spadkins@gmail.com
[I want to make this framework dirt simple to set up and use. -- spa]
lib/App/installguide/win32.pod view on Meta::CPAN
=head1 NMAKE
The PPM method for installing software is described above. However, the method of
installing software which is most native to Perl is through the CPAN shell.
In order for this to work, you need a "make" tool. Microsoft provides "nmake" for
this purpose.
I found reference to "nmake" on Microsoft's site here.
http://support.microsoft.com/default.aspx?scid=kb;en-us;132084
Then I downloaded the most recent version (a self-extracting archive) here.
http://download.microsoft.com/download/vc15/patch/1.52/w95/en-us/nmake15.exe
After saving it on your disk, run the program to extract three files.
README.TXT
NMAKE.EXE
NMAKE.ERR
( run in 0.427 second using v1.01-cache-2.11-cpan-de7293f3b23 )