[Prev]   [TOC][FAQ][Bugs][Home]   [Next]

Installation

The following section describes how to install MHonArc on your system.

NOTE:

Make sure to read the release notes before installing MHonArc, especially if you are upgrading from a previous release. If you are reading the text version of this installation document, a text version of the release notes, RELNOTES, exists within the root of the MHonArc distribution.


For the Impatient

If you cannot wait to get going, try the following:

prompt> wget 'http://www.mhonarc.org/release/MHonArc/MHonArcX.X.X'
prompt> gzip -dc MHonArcX.X.X | tar xvf -
prompt> cd MHonArcX.X.X
prompt> perl install.me

where X.X.X represents the version number.

If there were problems doing the above, then keep reading.


System Requirements

The following is required to run MHonArc:


Downloading MHonArc

The homepage for MHonArc is <http://www.mhonarc.org/>. The homepage list various sites that you can download MHonArc. If you are familiar with Comprehensive Perl Archive Network (CPAN), MHonArc can be downloaded from <http://www.perl.com/CPAN/authors/id/EHOOD/>.

MHonArc is distributed in the following formats:

where X.X.X represents the version number.

Alternate distribution formats for MHonArc may be available, like Linux RPM. Alternate distribution formats are not covered in this document.


Extracting the MHonArc Distribution

After downloading MHonArc, it is best to move the file to a temporary location for extraction. To extract the distribution under Unix-like systems, use one of the following commands based upon the distribution format you downloaded:

tar-bz2
prompt> bzip2 -dc MHonArcX.X.X.tar.bz2 | tar xvf -
tar-gzip
prompt> gzip -dc MHonArcX.X.X.tar.gz | tar xvf -
zip
prompt> unzip MHonArcX.X.X.zip

For Win32 systems, you can use a program like WinZip to extract the tar-gzip or zip formats. If using Cygwin, you can use the Unix-based extraction methods.

NOTE:

If your are using Cygwin and the cygwin build of Perl, then the installation and usage of MHonArc is the same as a Unix-based environment. MHonArc treats the cygwin environment as a Unix-type environment.

After extraction, the subdirectory MHonArcX.X.X will have been created containing all the files comprising MHonArc.

NOTE:

Please read the release notes before continuing for any news about compatibility with previous versions and/or important usage information.

Now, change your current directory to MHonArcX.X.X for the next step. On a Unix-type system, the following command will do it:

prompt> cd MHonArcX.X.X

Installing with install.me

Provided in the MHonArc distribution is a Perl program, install.me, for installing MHonArc on your system. To run the program, type the following command:

prompt> perl install.me

NOTE:

You must be in the same directory as the install.me program when you run it.

The installation program will ask you a series of questions on where the perl executable is and where to put MHonArc files. Just hit <Enter> to accept the default values listed in ()'s.

NOTE:

The default values are determined by the configuration of perl on your system. If you choose the defaults, you may need to possess root/admin privileges.

install.me can take several options on the command-line to affect what is done during installation. The following is the list of options available:

  -afs                  : Skip permission checks (useful if AFS)
  -batch                : Run in batch mode (do not ask questions)
  -binpath <path>       : Directory path to install programs/scripts
  -docpath <path>       : Directory path to install documentation
  -help                 : A message summarizing options available
  -libpath <path>       : Directory path to install library files
  -filelist <file>      : List of files to install (def="FILELIST")
  -manpath <path>       : Directory path to manpages
  -nobin                : Do not install programs
  -nodep                : Skip module dependency check
  -nodoc                : Do not install documentation
  -nolib                : Do not install library files
  -noman                : Do not install manpages
  -perl <pathname>      : Pathname of perl interpreter
  -prefix <path>        : Set prefix for installation directories

For example, if you do not want to install the documentation, do the following:

prompt> perl install.me -nodoc

Later on, if you decide you want to install the documentation, but not re-install the other files, do the following:

prompt> perl install.me -nobin -nolib -noman

If you want to install files relative to your home directory, do the following:

prompt> perl install.me -prefix $HOME

install.me Notes


The Perl 5 Way

Of course, you can install MHonArc the standard way under Perl 5:

prompt> perl Makefile.PL
prompt> make
prompt> make install

If you want to install in a specific directory, try:

prompt> perl Makefile.PL PREFIX=/tmp/myperl5
prompt> make
prompt> make install

NOTE:

install.me is actually called "behind the scenes" in batch mode to install the files. Therefore, more unusually invocations methods of perl Makefile.PL may not be supported.


Win32 Notes


Alternate Operating Systems

In many cases, install.me works for other operating systems. Please contact the author on any success stories for other operating systems, and please send any patches, if required.


Manual Installation

If install.me does not work for your system, here is how to install MHonArc manually:


Post Installation Configuration

After installation, you may want to do some site-specific configuration.

Default Resource File

You have the ability to create a default resource file to make site-wide defaults for MHonArc. See the DEFRCFILE resource on valid pathname locations for the default resource file. For more information on what can be put in a resource file, see the Resources section.

NOTE:

It is advisable to create some local documentation for users describing any settings you place in the site-wide resource file. This will avoid confusion if site settings vary from default settings described in the documentation, and it will help avoid invalid bug reports.

Site Initialization Library

If you do not know Perl, ignore this section.

When MHonArc opens an archive for processing, MHonArc will attempt to execute the instructions in the file mhasiteinit.pl. This file allows you to make site customizations not possible through a default resource file. mhasiteinit.pl should be placed in the MHonArc library directory as specified during installation. A sample mhasiteinit.pl file is provied in the examples directory of the distribution to get you started, which includes comments on some of the things you can do with mhasiteinit.pl.


Resource File Editing

If you are a Vim user, <http://www.vim.org/>, a syntax file for MHonArc resource files is included in the examples directory: mhonarc.vim. Vim is known to run on a variety of operating systems, and is free software.

To use mhonarc.vim, copy mhonarc.vim to an appropriate location and add something like the following to your .vimrc file:

  au BufNewFile,BufRead *.mrc	so $HOME/share/vim/syntax/mhonarc.vim

Of course, change the pathname to mhonarc.vim to wherever you copied it to.

Now, any file with .mrc extension will put Vim into MHonArc resource file highlighting mode. The mode is best used with color-capable terminals.


[Prev]   [TOC][FAQ][Bugs][Home]   [Next]

$Date: 2002/12/10 04:08:02 $
MHonArc
Copyright © 1997-2002, Earl Hood, mhonarc@mhonarc.org