
Hi all, Both the C++ implementation and the Java implementation of SAGA use the environment variable SAGA_LOCATION to point to the location of the SAGA installation. Right now, it is therefore impossible to use both the C++ and Java SAGA implementation simultaneously without changing SAGA_LOCATION all the time. Even worse, future SAGA implementations may also reuse SAGA_LOCATION. It seems desirable to avoid such clashes between multiple SAGA installations in general. What would be the best generic way to accomplish that? Should the SAGA spec define a global environment variable namespace (e.g. LSU_C++_SAGA_LOCATION, VU_JAVA_SAGA_LOCATION)? And are such environment variables really needed in all implementations in the first place? regards, Mathijs

Dear Mathijs, You might be facing this issue if you are executing the application using the scripts, such as run_saga_app, present in bin directory of installation. I think you can get rid of SAGA_LOCATION variable by doing a little change inside the script. For example in run_saga_app script, the first few lines check if the SAGA_LOCATION variable has been defined, if not then the script asks for that. One solution could be to remove those lines from the script and replace "$SAGA_LOCATION" with absolute path of saga installation. Another way could be to define a new variable and make changes inside the script according to the newly defined variable. cheers, yasir On Wed, Oct 15, 2008 at 1:10 PM, Mathijs den Burger <mathijs@cs.vu.nl>wrote:
Hi all,
Both the C++ implementation and the Java implementation of SAGA use the environment variable SAGA_LOCATION to point to the location of the SAGA installation. Right now, it is therefore impossible to use both the C++ and Java SAGA implementation simultaneously without changing SAGA_LOCATION all the time. Even worse, future SAGA implementations may also reuse SAGA_LOCATION.
It seems desirable to avoid such clashes between multiple SAGA installations in general. What would be the best generic way to accomplish that? Should the SAGA spec define a global environment variable namespace (e.g. LSU_C++_SAGA_LOCATION, VU_JAVA_SAGA_LOCATION)? And are such environment variables really needed in all implementations in the first place?
regards, Mathijs
-- saga-rg mailing list saga-rg@ogf.org http://www.ogf.org/mailman/listinfo/saga-rg

Both the C++ implementation and the Java implementation of SAGA use the environment variable SAGA_LOCATION to point to the location of the SAGA installation. Right now, it is therefore impossible to use both the C++ and Java SAGA implementation simultaneously without changing SAGA_LOCATION all the time. Even worse, future SAGA implementations may also reuse SAGA_LOCATION.
It seems desirable to avoid such clashes between multiple SAGA installations in general. What would be the best generic way to accomplish that? Should the SAGA spec define a global environment variable namespace (e.g. LSU_C++_SAGA_LOCATION, VU_JAVA_SAGA_LOCATION)? And are such environment variables really needed in all implementations in the first place?
In the latest release CCT's SAGA C++ implementation doesn't require a set SAGA_LOCATION environment variable anymore (at least as long as the installation has not been moved from the --prefix directory it was configured and built with). If no $SAGA_LOCATION is set it internally defaults to the directory used during ./configure --prefix=... This doesn't free you from the need to properly set your LD_LIBRARY_PATH, but that's another issue, I guess. I now, this doesn't answer your general question. But if all implementations went this way we wouldn't have the initial problem, no? HTH Regards Hartmut
participants (3)
-
Hartmut Kaiser
-
Mathijs den Burger
-
yasir mehmood