On 15/06/10 10:35, [email protected] wrote:
> Hello,
> I am new to the lsc project but very interested in its goal.
> I was trying to execute the quick tutorial on Windows with Cygwin but I
> have some difficulties to get it wok.
> Here is the error I met when I tried to run the lsc-sample :
> 
> $ sample/bin/lsc-sample --run
> Running
> "/cygdrive/c/Users/compta/Doxnloads/lsc-1.2.0/sample/bin/../../bin/lsc"
> --config
> "/cygdrive/c/Users/compta/Downloads/lsc-1.2.0/sample/bin/../etc" --sync
> hronize all
> Error: Configuration location doesn't exist!
> (C:\cygdrive\c\Users\compta\Downloa
> ds\lsc-1.2.0\sample\bin\..\etc\). Aborting.
> Last log file line 2010/06/15 09:25:00 [lsc] Starting LSC
> 
> It seems that it doesn't recognize the Cygwin path and adds C: and \
> instead of /. It could maybe come from something wrong in this part of
> code from the lsc-sample file :
> # is this Cygwin? if so, convert path to windows format for the JVM
>                 CYGPATH_COMMAND="$(which cygpath)"
>                 if [ $? -eq 0 ]; then
>                               CLASSPATH=$(Cygpath -p -w "$CLASSPATH")
>                 fi
> 
> Do you have some advices to suggest to me?
> Sincerely,
> Chapuis Francois

Hello Francois,

Thanks for your interest in the LSC project.

Unfortunately, we are aware that the sample does not work on Windows
(using Cygwin or not).

However, LSC does run on Windows when not using the sample. I suggest
you try out LSC by configuring etc/lsc.properties, and running lsc/bin
directly. Then you will avoid any Cygwin problems.

There doesn't seem to be any work happening on getting the sample
working under Cygwin/Windows, therefore any help would be most welcome.
There is a bug report open (http://tools.lsc-project.org/issues/215).

The problem here, is that the lsc-sample script is calling bin/lsc with
a config path in /cygdrive/c/, which is a valid path for cygwin, but not
for the JVM when it's launched (it is a pure Windows JVM, so only know
about c:\ style paths). I attach a suggested patch. I have not tested
it, since I don't have access to a Windows machine right now, but feel
free to go ahead, and please let me know if you do.

Regards,
Jonathan

-- 
--------------------------------------------------------------
Jonathan Clarke - [email protected]
--------------------------------------------------------------
Ldap Synchronization Connector (LSC) - http://lsc-project.org
--------------------------------------------------------------
Index: sample/bin/lsc-sample
===================================================================
--- sample/bin/lsc-sample       (revision 789)
+++ sample/bin/lsc-sample       (working copy)
@@ -271,9 +271,9 @@
 
        export CLASSPATH
 
-       command="\"$SAMPLE_HOME/../bin/lsc\" --config \"$SAMPLE_HOME/etc\" 
--synchronize all"
+       command="\"$SAMPLE_HOME/../bin/lsc\" --config \"$SAMPLE_CONFIG_DIR\" 
--synchronize all"
        echo "Running $command"
-       "$SAMPLE_HOME/../bin/lsc" --config "$SAMPLE_HOME/etc" --synchronize all
+       "$SAMPLE_HOME/../bin/lsc" --config "$SAMPLE_CONFIG_DIR" --synchronize 
all
 }
 
 # 
---------------------------------------------------------------------------------
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to