"no system package could be used" error for giac, but it is installed

asked 2023-02-03 10:48:56 +0200

Nasser gravatar image

updated 2023-02-04 06:45:01 +0200

I am trying to build sagemath sage-9.8.rc0 on my Linux virtual box. I already have giac build and installed on the system, and have exported GIAC to point to it as well.

But when I run

 unset SAGE_ROOT
 export GIAC=/usr/local/bin/giac
 export MAXIMA=/usr/local/bin/maxima

./configure --with-system-python=no --with-system-giac=force

it gives error

configure: error: 

Given --with-system-giac=force, but no system package could be used.
That's an error.  Please install the indicated package to continue.
(To override this error, use ./configure --without-system-giac)

You see, I have it installed already

>which giac
>giac --version
// Using locale /usr/local/share/locale/
// en_US.utf8
// /usr/local/share/locale/
// giac
// UTF-8
// Maximum number of parallel threads 8
// (c) 2001, 2021 B. Parisse & others
>echo $GIAC

In addition to all of this, it wants me install giac using

 $ sudo pacman -S  eclib fflas-ffpack libgiac giac linbox

But I have already the latest giac compiled and build manually and installed as you see. If I do the above it will break things and might install giac version which is not what I want.

How do I tell sagemath not to install giac and use the system already installed one? Why does it not see it is installed in /usr/local/bin/giac ?


The config.log file is located in this folder

edit retag flag offensive close merge delete


Which version of Giac is your "system" giac ? Is it on your PATH ?

But I have already the latest giac compiled and build manually

The latest Giac may not be (yet) suported by Sage...

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2023-02-03 18:12:50 +0200 )edit

I download the latest giac from https://www-fourier.ujf-grenoble.fr/~... I am using giac_1.9.0-35.tar.gz (near the bottom of the page). and this is what I want to use and have installed. Why can't I use this from sagemath?

Nasser gravatar imageNasser ( 2023-02-03 22:36:46 +0200 )edit

Is it on your PATH ?

Yes ofcourse. /usr/local/bin is always on the path.

  >which giac

This makes it not practical to use sagemath to test or use giac if I can't use the latest version of giac.

Nasser gravatar imageNasser ( 2023-02-04 00:00:35 +0200 )edit

Please report the contents of config.log which explain why the system's version giac is not usable.

John Palmieri gravatar imageJohn Palmieri ( 2023-02-04 04:44:30 +0200 )edit

@John I've added link to the config.log file at end of my post

Nasser gravatar imageNasser ( 2023-02-04 06:46:06 +0200 )edit