--- Begin Message ---
There are two separate issues.

1. To run perl scripts in Windows, when ActivePerl is installed and path environment is set,

open a command prompt, type
perl [your-script]

2. some scripts under dspace/bin are not perl scripts. They are unix/linux shell scripts.

e.g. stat-general is a script to run a java program.
So, you need to run the program at the root of the classpath

java -cp [valid_classpath_string] org.dspace.app.statistics.CreateStatReport -r stat-general

If your class files are contained in a jar, you can add the -jar argument.

It is not easy. Finding out your classpath string is a painful experience.

type
java -help
and google a lot to see how to run a java program. You may need some java programmers to help.

Regards,
Allen Lam.
HKU Hub Administrator, http://hub.hku.hk

Jewel Makda wrote:
I already installed ActivePerl but it's when I issue the command it says there is an error in line 1 which is #/bin/sh My thought was maybe the stat-general and etc. scripts were not suppose to be run using perl.

Allen Lam wrote:
Jewel,

On Linux and Unix machines perl is usually pre-installed.

In Windows it is not the case. You need to install a thing called "activeperl". Google for it.

Regards,
Allen Lam.
HKU Hub Administrator, http://hub.hku.hk

Jewel wrote:
I am trying to enable the statistics in Dspace but when I issue the perl command to run stat-general it throws an error. The error is: "Can't exec /bin/sh at C:/dspace/bin/state-general' I successfully installed Perl and my environment variable is correct. The first line in the stat scripts are: #!/bin/sh Everywhere I have looked states I need to use perl to run these scripts. I am running Dspace 1.5.1 on a Windows 2003 machine. Are setting up the stats different in this version? Do I need to edit the state-* scripts?
Thanks,






--- End Message ---
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to