Homepage
MacOS-X - Download and Installation
21 Nov 2009 21:01
Package download



Verwandte Themen:


Installation of previous versions
MaxOS-X
Microsoft Windows
old Versions of cd2browse
Unix and Linux

MacOS-X installation:


  1. Download the g-zipped tar archive: CD2Browse_103.tgz
  2. Make sure Perl, ImageMagick and Perl Magick is installed. Unfortunately ImageMagick needs to be compiled for exactly the Perl version installed, to get PerlMagick running. On the reference installation it was necessary to compile ImageMagick from source. Installing PerlMagickusing MacPorts can therefore be problematic.
  3. Make sure xpdf is installed. Eventually you can use MacPorts to use the Windows binaries.
  4. If you want to index MS Office files, make sure catdoc is installed - if not, download and install from: http://www.wagner.pp.ru/~vitus/software/catdoc/ and compile it according to the package information
  5. Make sure xpdf and catdoc is running form the command line - therefore these programs need to be covered by the "path" variabe of the shell. To modify the path variable, you may edit .profile and/or .bashrc . If you used MacPorts, the path "opt/var/bin is likely the correct path to include.
  6. Install the necessary perl modules. If your distribution does not contain the necessary perl modules, you can download them from cpan.
    In this case Type:
    cpan <enter>
    when you do this for the first time, you need to answer some questions - in most cases, the default settings should be sufficient.
    When cpan shows its prompt, type:
    cpan> install CGI::FastTemlate <------- The Module will be searched on the internet and installed
    cpan> install File::Mirror <------- same
    cpan> install HTML::Strip <------- same
    cpan> install Tk <------- same
    cpan> quit
  7. Unpack the gnu zipped tar archive to the root (/) directory.
  8. Install the file index.pl, CD2Browse.pl and CD2browse.hlp somewhere in your file tree. By default it goes to /Perl/cd2browse  - copy to /usr/local/bin
    Alternatively you can instruct your shell to search for executables also in /Perl/cd2browse by adding this path in the "path" variable of your shell.
  9. Install the skeleton and template files to /var/cd2browse - this is the default path - to change the default path, change the variable section of index.pl

With perl <path to index.pl>/CD2Browse.pl you start the GUI

To test, type: perl <path to index.pl>/index.pl

If you see the following message, you have successfully installed cd2browse:

usage: perl index.pl -p <path to index> [-n -m -t -s -i -x -q]

Options:
  -n  (re) calculate no images to save cpu time
  -m  maxwidh of the preview image (default=800)
  -s  size of the thumbnails (default=90x90)
  -t  title
  -i  do not index images(all over the file tree)
  -x  do not extact title from pdf file (all over the file tree)
  -q  be quiet - do not output progress information

Many thanks to Jörg Gier, who worked out the MAxOS-X installation



*