|
||||
National Virtual Observatory --- Hosted at NASA/HEASARC |
use lib
statement.
command perl Makefile.PL EXPATLIBPATH=xxx EXPATINCPATH=yyy
> perl -MCPAN -e shell install URIThe CPAN module must be initialized the first time it is used in a Perl installation.
force install XML::DOM
- The XML::DOM::ValParser was installed using CPAN; the installation may need to be forced.
The installDataScope.pl command does a number of the tasks required for installing the DataScope. It queries for the root locations for the four areas described above, changes the first line in the Perl scripts to use the version of Perl it is invoked under, and modifies several the VO/Util.pm file to use the given locations. It is assumed that the user of the command has write privileges to the CGI, documents and library areas.
A typical installation using installDataScope.pl looks like the following where the user input is in bold.
> perl installDataScope.pl
Welcome to the DataScope installation script.
Full Perl executable path [/usr/local/web_chroot/skyview3/test/bin/perl]: /skyview3/test/bin/perl
File location for VO CGI scripts [/www/htdocs/cgi-bin/vo]: /skyview/htdocs/cgi-bin/test/vo
URL root of VO CGI URLs [/cgi-bin/vo]: /cgi-bin/test/vo
File location for VO HTML documents [/www/htdocs/vo]: /skyview/htdocs/test/vo
URL root of VO documents [/vo]: /test/vo
Root for VO Perl libraries [/usr/local/vo/lib]: /skyview3/local/lib
Root for query cache [/www/htdocs/vo/newcache]: /skyview/htdocs/tempspace/xxcache
Host name for your Web host [heasarc.gsfc.nasa.gov]: /skyview3/local/lib
Processing begins.
Directory: /skyview/htdocs/cgi-bin/test/vo/ does not exist
Attempting to create: /skyview/htdocs/cgi-bin/test/vo/
Directory: /skyview/htdocs/cgi-bin/test/vo/datascope does not exist
Attempting to create: /skyview/htdocs/cgi-bin/test/vo/datascope
Directory: /skyview/htdocs/test/vo/ does not exist
Attempting to create: /skyview/htdocs/test/vo/
Directory: /skyview/htdocs/test/vo/datascope does not exist
Attempting to create: /skyview/htdocs/test/vo/datascope
Directory: /skyview/htdocs/test/vo/images does not exist
Attempting to create: /skyview/htdocs/test/vo/images
Directory: /skyview3/local/ does not exist
Attempting to create: /skyview3/local/
Directory: /skyview3/local/lib does not exist
Attempting to create: /skyview3/local/lib
Modifying CGI scripts
Updating: ./cgi-bin/vo/datascope/init.pl
** #!/www/server/vo/inst/bin/perl -> #!/skyview3/test/bin/perl
** use lib '/www/server/vo/inst/local/lib' ; -> use lib '/skyview3/local/lib' ;
Updating: ./cgi-bin/vo/datascope/cacheTee.pl
** #!/www/server/vo/inst/bin/perl -> #!/skyview3/test/bin/perl
** use lib '/www/server/vo/inst/local/lib' ; -> use lib '/skyview3/local/lib' ;
Updating: ./cgi-bin/vo/datascope/datascope.pl
** #!/www/server/vo/inst/bin/perl -> #!/skyview3/test/bin/perl
** use lib '/www/server/vo/inst/local/lib' ; -> use lib '/skyview3/local/lib' ;
Updating: ./cgi-bin/vo/datascope/process.pl
** #!/www/server/vo/inst/bin/perl -> #!/skyview3/test/bin/perl
** use lib '/www/server/vo/inst/local/lib' ; -> use lib '/skyview3/local/lib' ;
Updating: ./cgi-bin/vo/datascope/meta.pl
** #!/www/server/vo/inst/bin/perl -> #!/skyview3/test/bin/perl
** use lib '/www/server/vo/inst/local/lib' ; -> use lib '/skyview3/local/lib' ;
Modifying ./local/lib/VO/Util.pm
Copying: cp -r ./cgi-bin/vo/datascope/* /skyview/htdocs/cgi-bin/test/vo/datascope/*
Copying: cp -r ./vo/datascope/* /skyview/htdocs/test/vo/datascope/*
Copying: cp -r ./vo/images/* /skyview/htdocs/test/vo/images/*
Copying: cp -r ./local/lib/* /skyview3/local/lib/*
There may be a few manual steps needed to complete your installation.
htdocs
directory that defines the top of the URL hierarchy
for your browser. E.g., if you are on host db.myhost.edu, and the cache
is at /www/htdocs/vo/thecache, then a file /www/htdocs/vo/thecache/xxx can
be accessed by a URL http://db.myhost.edu/vo/thecache/xxx. The fixPrefixes methods
in the Util module can be used to make ensure that the prefixes used are appropriate
for your system.
If you have superuser privileges creating the cache directory should not be a problem. Without superuser privileges it can be done by creating a CGI script which will create the appropriate directories as a subdirectory of some existing directory that you own. E.g.,