How to obtain complete version information for giac?

Messages in english

Modérateur : xcasadmin

Nasser
Messages : 13
Inscription : mer. juil. 11, 2018 11:14 pm

How to obtain complete version information for giac?

Message par Nasser » mar. févr. 14, 2023 2:09 pm

Is there a command to find the full version of giac, including minor version?
I installed giac giac_1.9.0-37.tar.gz from https://www-fourier.ujf-grenoble.fr/~pa ... in/source/ but the command version only returns 1.9.0

0>> version()
"giac 1.9.0, (c) B. Parisse and R. De Graeve, Institut Fourier, Universite de Grenoble I"
// Time 0

This makes it hard to find what version of giac is installed and being used.

Is there a way to obtain the complete 1.9.0.37 string?

--Nasser

parisse
Messages : 5734
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: How to obtain complete version information for giac?

Message par parisse » sam. févr. 18, 2023 1:23 pm

This is not supported, unless you modify config.h yourself (after configure) and change VERSION by hand. The reason is that the only way I know to upgrade from 1.9.0 to say 1.9.1 requires too many changes by hand. Therefore I do that at most once per year...

XcasEngGuy
Messages : 145
Inscription : mer. janv. 13, 2010 3:20 pm

Re: How to obtain complete version information for giac?

Message par XcasEngGuy » sam. févr. 18, 2023 6:29 pm

When I run this on my giac.dll:

grep -a Parisse giac.dll | sed -e 's/^.*(c)/(c)/' -e 's/, B. Parisse.*$//' -e 's/giac/\ngiac/' -e 's/Power/\nPower/'

I get:

(c) B. Parisse and R. De Graeve, Institut Fourier, Universite de Grenoble I
giac 1.9.0-35
Powered by Giac 1.1.3

I this what you want?

Matt

Nasser
Messages : 13
Inscription : mer. juil. 11, 2018 11:14 pm

Re: How to obtain complete version information for giac?

Message par Nasser » sam. févr. 18, 2023 7:14 pm

This did not work for me. I am on Linux (so no .DLL) but tried your command on the libgiac.so I found in /usr/local/lib, but it does not give the version string.

>locate giac.so
/usr/lib/libgiac.so
/usr/lib/libgiac.so.0
/usr/lib/libgiac.so.0.0.0
/usr/local/lib/libgiac.so
/usr/local/lib/libgiac.so.0
/usr/local/lib/libgiac.so.0.0.0

ANd now

grep -a Parisse /usr/lib/libgiac.so.0.0.0 | sed -e 's/^.*(c)/(c)/' -e 's/, B. Parisse.*$//' -e 's/giac/\ngiac/' -e 's/Power/\nPower/'

=G����?�'X�M!@-��������?:ڸ�vtd�,������@e�z�r���:�\��@��BYɔ����t�qr����?6vw�y����?5��%C�?��?���������?%�`
�`
��?��� �� ����@Euclide algorithm for %gen and %����å�y O�



Thanks
--Nasser

Nasser
Messages : 13
Inscription : mer. juil. 11, 2018 11:14 pm

Re: How to obtain complete version information for giac?

Message par Nasser » sam. févr. 18, 2023 7:20 pm

parisse a écrit :
sam. févr. 18, 2023 1:23 pm
This is not supported, unless you modify config.h yourself (after configure) and change VERSION by hand. The reason is that the only way I know to upgrade from 1.9.0 to say 1.9.1 requires too many changes by hand. Therefore I do that at most once per year...
OK, no problem, I can do that.

I see two these config.h files

Code : Tout sélectionner

>pwd
/home/me/TMP/giac-1.9.0
>find . -name config.h
./micropython-1.12/extmod/axtls-include/config.h
./config.h
./src/config.h
>
Which one do I need to change? Just the one in src/config.h? After I do this, should I need to do make clean before ./configure and make again?

--Nasser

parisse
Messages : 5734
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: How to obtain complete version information for giac?

Message par parisse » dim. févr. 19, 2023 9:12 am

./config.h and ./src/config.h. One of them should suffice, depending on the order of -I. and -I.. while compiling in src. This should be done after configure and before make, make install, etc.

Nasser
Messages : 13
Inscription : mer. juil. 11, 2018 11:14 pm

Re: How to obtain complete version information for giac?

Message par Nasser » dim. févr. 19, 2023 4:49 pm

Thanks. That worked. I found I had to edit both config.h files.

For those who want to do this, here are the steps again

1) extract tar file
1A) edited as root the file /etc/ld.so.conf and added this new line at the top /usr/local/lib of the file and saved it.
2) ./configure
3) edit config.h file in src/ and in same folder as the configure script and change these 3 lines

Code : Tout sélectionner

>grep -i 1.9 config.h
#define PACKAGE_STRING "giac 1.9.0.37"
#define PACKAGE_VERSION "1.9.0.37"
#define VERSION "1.9.0.37"
>
4) make
5) sudo make install
6) sudo ldconfig

Now

Code : Tout sélectionner

>giac
// Using locale /usr/local/share/locale/
// en_US.UTF-8
// /usr/local/share/locale/
// giac
// UTF-8
// Maximum number of parallel threads 4
Added 26 synonyms
// Read 1243 entries from cache /usr/share/giac/doc/en/html_mtt
// Read 1528 entries from cache /usr/share/giac/doc/en/html_mall
// Read 1057 entries from cache /usr/share/giac/doc/en/html_vall
Welcome to giac readline interface, version 1.9.0.37
(c) 2002,2022 B. Parisse & others
Homepage http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
Released under the GPL license 3.0 or above
See http://www.gnu.org for license details
May contain BSD licensed software parts (lapack, atlas, tinymt)
-------------------------------------------------
Press CTRL and D simultaneously to finish session
Type ?commandname for help
*** Type xcas to launch a light version of Xcas ***
0>> version()
"giac 1.9.0.37, (c) B. Parisse and R. De Graeve, Institut Fourier, Universite de Grenoble I"
// Time 0
1>> 


Répondre