Hi Qian, In the past I wrote a batch file which to me is the best thing to do right now for the FRICAS env variable.
I attached it. Not really beautiful and improve it if you want but if you install FriCAS in the directory you want it will work. The FriCAS installation directory should as usual have the following structure: bin/ lib/ contrib/ fricas.bat (at the root installation directory) Regards PS: Correction, gmail does not accept batch files so snipped below =========== @echo off set FRICAS_TMP=%~dp0lib/fricas/target/x86_64-w64-mingw32 set FRICAS=%FRICAS_TMP:\=/% "%~dp0\lib\fricas\target\x86_64-w64-mingw32\bin\FRICASsys.exe" =========== Le mar. 16 mars 2021 à 12:17, Qian Yun <[email protected]> a écrit : > > I meant when user do not use "bin/fricas", but double click > "bin/FriCASsys" directly. In such case, env var "FRICAS" > is not set, but I want to make it work as well. This can > also be useful for development as well, we can skip to > set env var each time. Also can be useful if we have a bunch > of different fricas in different directories (for testing > purpose), then it's convenient to run "bin/FriCASsys" directly > without setting "FRICAS" env var. > > - Qian > > On 3/16/21 6:16 PM, Ralf Hemmecke wrote: > >> Seems now when FRICAS is not set, the FriCASsys will look > >> at the build time path. > > > > Oh... where is the fricas script then? AFAIK FRICASsys relies on the > > environment variable FRICAS to be set. No idea how this is on Windows, > > though. Shouldn't fricas be started by the script and that script must > > set the FRICAS variable? Perhaps you must ask the user to adapt the path > > in the script, if s/he doesn't install into the default system localtion. > > > >> I want to add another fallback > >> that it should check its runtime path's parent directory. > >> (aka /xxx/bin/FriCASsys should check /xxx/) > > > > As a fallback I think that would be acceptable. I'm not sure whether > > that should come together with a warning about a missing value for the > > FRICAS variable or whether such a warning is just useless noise. > > > > Ralf > > > > -- > You received this message because you are subscribed to the Google Groups > "FriCAS - computer algebra system" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/fricas-devel/26e65fb0-950e-282f-a2e9-6c00430a62db%40gmail.com. -- __ G. Vanuxem -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/CAHnU2dYuNefn_nKyXUm4ibmodYUtc0iG_0BBbTTTAHv6AnFTaQ%40mail.gmail.com.
