I am trying and failing to get the sage-install script to work.
It starts as
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
#!/bin/sh
# WARNING -- if you add a package here, also add it to
# the gap_reset_workspace() command in
# <SAGE_ROOT>/devel/sage/sage/interfaces/gap.py
#
${gapver:=$SAGE_ROOT/spkg/standard/newest_version gap}
GAP0=`$gapver`
#GAP0=`$SAGE_ROOT/spkg/standard/newest_version gap`
GAP=`echo $GAP0 | cut -f 1,2,3 -d "."`
# returns latest gap version - eg, GAP=gap-4.4.12
echo `********************************************************************`
echo `Installing optional GAP packages, which may not be open source.`
echo `Installing GAP $GAP packages. Please see SPKG.txt for license details.`
echo `********************************************************************`
PATH=$SAGE_ROOT:$SAGE_ROOT/local/bin:$PATH
export PATH
rm -rf "$SAGE_ROOT/local/lib/$GAP/pkg/"
mkdir "$SAGE_ROOT/local/lib/$GAP/pkg/"
cp patches/guava/* src/guava3.9/ # is this still needed?
# get around problem on osx
$CP -pr SPKG.txt "$SAGE_ROOT/local/lib/$GAP/pkg/"
<snip>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
After typing
./sage -f /home/wdj/sagefiles/gap_packages-4.4.12_1.spkg
in $SAGE_ROOT, I get lots of messages as though it were unpacking and
compiling, but in fact nothing happens. In the middle of it all I found these
messages:
++++++++++++++++++++++++++++++++++++++++++++
<snip>
****************************************************
/bin/ls: cannot access gap-*.spkg: No such file or directory
/bin/ls: cannot access gap-*.spkg: No such file or directory
./spkg-install: line 13: patches: command not found
./spkg-install: line 14: Installing: command not found
./spkg-install: line 15: Installing: command not found
./spkg-install: line 16: patches: command not found
<snip>
++++++++++++++++++++++++++++++++++++++++++++
Does anyone have an idea what the problem could be?
(I also tried the script with Simon's shorter version of setting GAP
and the same thing happened, so that is not the issue.)
On Mon, Mar 2, 2009 at 11:15 AM, Simon King <[email protected]> wrote:
>
> On Mar 2, 4:24 pm, David Joyner <[email protected]> wrote:
>> Classes were cancelled today because of snow:-)
>>
>> I think adding these lines to the top of the spkg-install
>> script will do the trick:
>>
>> ${gapver:=./newest_version gap}
>> GAP0=`$gapver`
>> GAP=`echo $GAP0 | cut -f 1,2,3 -d "."`
>
> Why not shorter?
> GAP0=`./newest_version gap`
> GAP=`echo $GAP0 | cut -f 1,2,3 -d "."`
>
> Anyway. Provided that the version number of Gap will always be
> indicated by three numbers that are separated by dots and that are
> appended to the word "gap" by anything but a dot, then it seems fine
> to me.
>
> Cheers,
> Simon
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---