> Please can you advise me how to run this script (chime2jmol.pl) under
> OS X?

First, a few words of caution:

In order to use chime2jmol.pl (and JmolAppletProxy.cgi) you need to have
some understanding of the 'perl' world.

Plus, chime2jmol.pl still has a few bugs regarding treatment of quoted
character strings ... I will see if I can work on them tonight.

So, overall this tool is not for the 'faint-of-heart'.

> I tried this in the directory containing the HTML I was hoping to
> modify:
> ...% perl chime2jmol.pl
> Can't locate HTML/Parser.pm in @INC (@INC contains:
> /System/Library/Perl/5.8.1/darwin-thread-multi-2level
> /System/Library/Perl/5.8.1
> /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1
> /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
> /Network/Library/Perl/5.8.1 /Network/Library/Perl .) at chime2jmol.pl
> line 2.
> BEGIN failed--compilation aborted at chime2jmol.pl line 2.

The issue that you are having is that chime2jmol.pl uses an external
perl module (or library) called HTML::Parser. This is a parser for html
pages. In this case, the page is parsed and chime EMBED tags are
located, removed, and substutited with the appropriate Jmol APPLET tags.


HTML::Parser is not installed on your system.


Perl uses a system call CPAN (Comprehensive Perl Archive Network) to
distribute modules.

become root user and run CPAN to install this module.

 su -
 perl -MCPAN -e 'install HTML::Parser'

It might ask you a question or two ... just hit [enter] to take the
defaults.

It will then grind and crunch and run some tests ... everything will
probably succeed and the module will be installed.

** log out as root user by by typing ^D **
This tool is going to write files and create directories in your file
system. Do not do this kind of thing as root user.


Then, try running chime2jmol.pl again:
 perl chime2jmol.pl


It may die again ... if it needs another module. Just run CPAN again and
install the next module.

In the end, after all the modules are defined, you will see the following:

[EMAIL PROTECTED] appletweb]$ perl chime2jmol.pl
    perl chime2jmol.pl -s <src> -d <dst> {-c} {-a <archive>}

    -s <source directory>
    -d <destination directory>
    -c Clear destination directory
    -a <archive> specify alternate archive name
    -b <path> specify codebase
    -v Verbose


I think that these parameters are pretty clear.

Good luck!


Miguel





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to