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 Module::Load::Conditional <——- same
cpan> install HTML::Strip <——- same
cpan> install Tk <——- same
cpan> install MP3::Info <——- same
cpan> quitUnpack the gnu zipped tar archive to the root (/) directory.Install the file index.pl, CD2Browse.pl and CD2browse.hlp somewhere in your file tree. By default it goes to /var/opt/cd2browse – you may copy the perl scripts to /usr/local/bin
Alternatively you can instruct your shell to search for executables also in /var/opt/cd2browse by adding this path in the “path” variable of your shell.Install the skeleton and template files to /var/opt/cd2browse – this is the default path – to change the default path, change the variable section of index.pl or create a Environment Variable named “C2BPATH” containing the path to the templates.
With perl <path to index.pl>/CD2Browse.pl you start the GUI (if the PATH has not been set it may help to first change the directory to /var/opt/cd2browseTo 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 -r -q -v]
Options:
-i do not index images(all over the file tree)
-m maxwidh of the preview image (default=800)
-n (re) calculate no images to save cpu time
-q be quiet – do not output progress information
-r do not use offline sort – needs a different template page.tpl
-s size of the thumbnails (default=90×90)
-t title
-v do not create folder navigation in the page section
-x do not extact title from pdf file (all over the file tree)Many thanks to Jörg Gier, who worked out the MAxOS-X installation