<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1032401&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / mise à jour sageMath]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1032401</link>
		<description><![CDATA[Les sujets les plus récents dans mise à jour sageMath.]]></description>
		<lastBuildDate>Fri, 21 Sep 2012 17:43:25 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  mise à jour sageMath]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10841961#p10841961</link>
			<description><![CDATA[<p>faites donc dans un terminal</p><p>ls -l /home </p><p>et dans les dossiers qui s&#039;affichent&#160; faut mettre le $HOME = /home/votreLogin</p>]]></description>
			<author><![CDATA[dummy@example.com (patrick L)]]></author>
			<pubDate>Fri, 21 Sep 2012 17:43:25 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10841961#p10841961</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  mise à jour sageMath]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10704121#p10704121</link>
			<description><![CDATA[<p>Bonjour,<br />On peut faire tourner Sage en local en téléchargeant la bête, mais on peut aussi l&#039;utiliser online .<a href="http://www.sagenb.org/">http://www.sagenb.org/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (xanmoo)]]></author>
			<pubDate>Mon, 10 Sep 2012 12:13:18 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10704121#p10704121</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  mise à jour sageMath]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10685011#p10685011</link>
			<description><![CDATA[<p>Ok.<br />Voici la partie qui semble concernée et la totalité du fichier.</p><div class="codebox"><pre><code># Check that $HOME exists
if [ &quot;$HOME&quot; = &quot;&quot; ]; then
    echo &gt;&amp;2 &#039;Error: environment variable $HOME is not set.&#039;
    return 1
fi
if ! [ -d &quot;$HOME&quot; ]; then
    echo &gt;&amp;2 &quot;Error: HOME directory &#039;$HOME&#039; does not exist.&quot;
    return 1
fi</code></pre></div><div class="codebox"><pre class="vscroll"><code># -*- shell-script -*-

###########################################################################
#
#  Set environment variables for building and/or running Sage.
#  You must *source* this instead of executing; see below!
#
#  IMPORTANT: use &quot;return&quot; instead of &quot;exit&quot; to signal a failure when
#             sourcing this script.  An &quot;exit&quot; here will actually exit
#             spkg/bin/sage, which is probably not intented.
#
#  AUTHORS:   William Stein                            2005-12
#             David Kirkby &lt;david.kirkby@onetel.net&gt;   2005-12-17
#
###########################################################################

##########################################################################
#
#  If you want to set all environment variables for your shell like
#  they are during the build of Sage packages, type
#
#             source spkg/bin/sage-env
#
#  from the SAGE_ROOT directory.   To do the same from a /bin/bash
#  script use &quot;. spkg/bin/sage-env&quot;.
#
##########################################################################


# Resolve all symbolic links in a filename.  This more or less behaves
# like &quot;readlink -f&quot; except that it does not convert the filename to an
# absolute path (a relative path remains relative), nor does it treat
# &quot;.&quot; or &quot;..&quot; specially.
#
# AUTHOR: Jeroen Demeyer (2011-08-23): Trac tickets #5852 and #11704
#
resolvelinks() {
    # $in is what still needs to be converted (normally has no starting slash)
    in=&quot;$1&quot;
    # $out is the part which is converted (normally ends with trailing slash)
    out=&quot;./&quot;

    # Move stuff from $in to $out
    while [ -n &quot;$in&quot; ]; do
        # Normalize $in by replacing consecutive slashes by one slash
        while { in_single_slash=${in//\/\//\/}; [ &quot;$in&quot; != &quot;$in_single_slash&quot; ]; }; do
            in=$in_single_slash
        done

        # If $in starts with a slash, remove it and set $out to the root
        in_without_slash=${in/#\//}
        if [ &quot;$in&quot; != &quot;$in_without_slash&quot; ]; then
            in=$in_without_slash
            out=&quot;/&quot;
            continue
        fi

        # Check that the directory $out exists by trying to cd to it.
        # If this fails, then cd will show an error message (unlike
        # test -d &quot;$out&quot;), so no need to be more verbose.
        ( cd &quot;$out&quot; ) || return $?


        # Get the first component of $in
        f=${in%%/*}

        # If it is not a symbolic link, simply move it to $out
        if [ ! -L &quot;$out$f&quot; ]; then
            in=${in#&quot;$f&quot;}
            out=&quot;$out$f&quot;

            # If the new $in starts with a slash, move it to $out
            in_without_slash=${in/#\//}
            if [ &quot;$in&quot; != &quot;$in_without_slash&quot; ]; then
                in=$in_without_slash
                out=&quot;$out/&quot;
            fi
            continue
        fi

        # Now resolve the symbolic link &quot;$f&quot;
        f_resolved=`readlink -n &quot;$out$f&quot; 2&gt;/dev/null`
        status=$?
        # status 127 means readlink could not be found.
        if [ $status -eq 127 ]; then
            # We don&#039;t have &quot;readlink&quot;, try a stupid &quot;ls&quot; hack instead.
            # This will fail if we have filenames like &quot;a -&gt; b&quot;.
            fls=`ls -l &quot;$out$f&quot; 2&gt;/dev/null`
            status=$?
            f_resolved=${fls##*-&gt; }

            # If $fls equals $f_resolved, then certainly
            # something is wrong
            if [ $status -eq 0 -a &quot;$fls&quot; = &quot;$f_resolved&quot; ]; then
                echo &gt;&amp;2 &quot;Cannot parse output from ls -l &#039;$out$f&#039;&quot;
                return 1
            fi
        fi
        if [ $status -ne 0 ]; then
            echo &gt;&amp;2 &quot;Cannot read symbolic link &#039;$out$f&#039;&quot;
            return $status
        fi

        # In $in, replace $f by $f_resolved (leave $out alone)
        in=${in/#&quot;$f&quot;/&quot;$f_resolved&quot;}
    done

    # Return $out
    echo &quot;$out&quot;
}


# New value for SAGE_ROOT: either SAGE_ROOT (if given)
# or a guessed value based on pwd.
if [ -n &quot;$SAGE_ROOT&quot; ]; then
    NEW_SAGE_ROOT=&quot;$SAGE_ROOT&quot;
elif [ -f sage -a -d spkg ]; then
    NEW_SAGE_ROOT=&quot;.&quot;
elif [ -f ../../sage -a -d ../../spkg ]; then
    NEW_SAGE_ROOT=&quot;../..&quot;
else
    # No idea what SAGE_ROOT should be...
    echo &gt;&amp;2 &quot;Error: You must set the SAGE_ROOT environment variable or run this&quot;
    echo &gt;&amp;2 &quot;script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory.&quot;
    return 1
fi

# Make NEW_SAGE_ROOT absolute
NEW_SAGE_ROOT=`cd &quot;$NEW_SAGE_ROOT&quot; &amp;&amp; pwd -P`

# Sanity check NEW_SAGE_ROOT
if [ -f &quot;$NEW_SAGE_ROOT/sage&quot; -a -d &quot;$NEW_SAGE_ROOT/spkg&quot; ]; then
    :
else
    echo &gt;&amp;2 &quot;Error: SAGE_ROOT is set to a bad value:&quot;
    echo &gt;&amp;2 &quot;SAGE_ROOT=$SAGE_ROOT&quot;
    echo &gt;&amp;2 &quot;You must correct it or erase it and run this script from the SAGE_ROOT&quot;
    echo &gt;&amp;2 &quot;or SAGE_ROOT/local/bin/ directory.&quot;
    return 1
fi

# Warn if NEW_SAGE_ROOT does not equal the old SAGE_ROOT
if [ &quot;$SAGE_ROOT&quot; != &quot;$NEW_SAGE_ROOT&quot; -a -n &quot;$SAGE_ROOT&quot; ]; then
    echo &gt;&amp;2 &quot;Warning: overwriting SAGE_ROOT environment variable:&quot;
    echo &gt;&amp;2 &quot;Old SAGE_ROOT=$SAGE_ROOT&quot;
    echo &gt;&amp;2 &quot;New SAGE_ROOT=$NEW_SAGE_ROOT&quot;
fi

# Don&#039;t execute the commands more than once.  Check this after
# checking the validity of SAGE_ROOT, but before modifying its value.
#
# NOTE: This requires all environment variables to be exported, otherwise
#       they won&#039;t be available / set in subshells which do not (fully)
#       source sage-env themselves.
if [ &quot;x$SAGE_ENV_SOURCED&quot; = &quot;x&quot; ]; then
    SAGE_ENV_SOURCED=1
    export SAGE_ENV_SOURCED
else
    # Already sourced, nothing to do.
    return 0
fi

SAGE_ROOT=&quot;$NEW_SAGE_ROOT&quot;
export SAGE_ROOT


# Call with: contains_spaces X${VAR}X
# i.e., WITHOUT quotes but some character(s) around the environment variable to test.
# (This function does return false for empty/unset variables.)

contains_spaces()
{
    if [ $# -ne 1 ]; then
        return 0 # true
    else
        return 1 # false
    fi
}


if contains_spaces X${SAGE_ROOT}X ; then
    echo &quot;Error: The path to the Sage directory (\$SAGE_ROOT) MUST NOT contain spaces.&quot;
    echo &quot;It is currently \&quot;$SAGE_ROOT\&quot;.&quot;
    echo &quot;Please correct this by moving Sage (or renaming one or more directories) first.&quot;
    echo &quot;Exiting now...&quot;
    return 1
fi


if [ 1 = 2 ]; then
    echo &quot;The following enviroment variables can be set by the user&quot;
    echo &quot;AR          The archiver (e.g. ar, /usr/ccs/bin/ar or /usr/bin/ar)&quot;
    echo &quot;AS          The assembler (e.g. as, /usr/ccs/bin/as or /usr/bin/as)&quot;
    echo &quot;CC          The C compiler (e.g cc, /opt/SUNWspro/bin/cc or /usr/bin/gcc)&quot;
    echo &quot;CFLAGS      Flag(s) for the C compiler (e.g.  -g -Wall -O2)&quot;
    echo &quot;            (You are advised to a some optimisation flag(s), such as -O2 or -xO2 to CFLAGS)&quot;
    echo &quot;CXX         The C++ compiler (e.g g++, /opt/SUNWspro/bin/CC or /usr/local/bin/g++)&quot;
    echo &quot;CXXFLAGS    Flag(s) for the C++ compiler (e.g. -fast -fsimple=1 -x04)&quot;
    echo &quot;LD          The linker (e.g. ld, /usr/ccs/bin/ld or /usr/bin/ld)&quot;
    echo &quot;LDFLAGS     Linker flag(s) (e.g. -D token)&quot;
    echo &quot;LN          Used to make links (e.g. ln, /usr/xpg4/bin/ln or /usr/bin/ln)&quot;
    echo &quot;MAKE        The make program (e.g. make, /usr/bin/make or /usr/local/bin/gmake)&quot;
    echo &quot;MAKEFLAGS   Flag(s) to make (e.g. -j4).&quot;
    echo &quot;RANLIB      Archiver ranlib (e.g. ranlib, /usr/ccs/bin/ranlib etc)&quot;
    echo &quot;SAGE64      Set to \&quot;yes\&quot; to build a 64-bit binary (Solaris SPARC or Solaris x86 only)&quot;
    echo &quot;SHAREDFLAGS Flag(s) necessary for building a shared library (e.g. -fPIC or -xcode=pic32)&quot;
    echo &quot;We attempt to set this to sensible values, but check below to&quot;
    echo &quot;ensure they are OK. If you wish to override any then please use:&quot;
    echo &quot;setenv NAME_OF_ENVIROMENT_VARIABLE value_of_enviroment_variable&quot;
    echo &quot;(if you use tcsh, csh or a similar shell) or&quot;
    echo &quot;NAME_OF_ENVIROMENT_VARIABLE value_of_enviroment_variable&quot;
    echo &quot;export NAME_OF_ENVIROMENT_VARIABLE&quot;
    echo &quot;if you use sh, bash or a similar shell&quot;
fi

# Setting Sage-related location environment variables.
export SAGE_LOCAL=&quot;$SAGE_ROOT/local&quot;
export SAGE_DATA=&quot;$SAGE_ROOT/data&quot;
export SAGE_PACKAGES=&quot;$SAGE_ROOT/spkg&quot;
export SAGE_LOGS=&quot;$SAGE_ROOT/spkg/logs&quot;
export SAGE_DOC=&quot;$SAGE_ROOT/devel/sage/doc&quot;
export PATH=&quot;$SAGE_PACKAGES/bin:$SAGE_LOCAL/bin:$PATH&quot;

# We offer a toolchain option, so if $SAGE_LOCAL/toolchain/toolchain-env exists source it.
# Since the user might do something crazy we do not do any checks, but hope for the best.
if [ -f $SAGE_LOCAL/toolchain/toolchain-env ]; then
  source $SAGE_LOCAL/toolchain/toolchain-env
fi

# Mac OS X-specific setup
if [ `uname` = &quot;Darwin&quot; ]; then
    # For a framework Python build on OS X, Python&#039;s bin directory is not local/bin
    PATH=&quot;$SAGE_LOCAL/Frameworks/Python.framework/Versions/2.5/bin:$PATH&quot; &amp;&amp; export PATH

    # set MACOSX_DEPLOYMENT_TARGET -- if set incorrectly, this can
    # cause lots of random &quot;Abort trap&quot; issues on OSX. see trac
    # #7095 for an example.
    MACOSX_VERSION=`uname -r | awk -F. &#039;{print $1}&#039;`
    MACOSX_DEPLOYMENT_TARGET=10.$[$MACOSX_VERSION-4]
    export MACOSX_DEPLOYMENT_TARGET
fi

if [ &quot;$LIBRARY_PATH&quot; != &quot;&quot; ]; then
    LIBRARY_PATH=&quot;$SAGE_LOCAL/lib/:$LIBRARY_PATH&quot;
else
    LIBRARY_PATH=&quot;$SAGE_LOCAL/lib/&quot;
fi
export LIBRARY_PATH

GP_DATA_DIR=&quot;$SAGE_LOCAL/share/pari&quot; &amp;&amp; export GP_DATA_DIR
GPHELP=&quot;$SAGE_LOCAL/bin/gphelp&quot; &amp;&amp; export GPHELP
GPDOCDIR=&quot;$SAGE_LOCAL/share/pari/doc&quot; &amp;&amp; export GPDOCDIR

# Make Mercurial always use utf-8 for usernames,...
# See Trac Ticket #11830
HGENCODING=&quot;utf8&quot; &amp;&amp; export HGENCODING

# Make Mercurial not use any user defaults (like enabling the pager extension)
# This is needed in order to use mercurial in scripts.  When running hg
# directly through &quot;sage -hg&quot;, we will disable HGPLAIN in spkg/bin/sage.
# See Trac Ticket #12058
HGPLAIN=&quot;yes&quot; &amp;&amp; export HGPLAIN

SINGULARPATH=&quot;$SAGE_LOCAL/share/singular&quot; &amp;&amp; export SINGULARPATH
SINGULAR_EXECUTABLE=&quot;$SAGE_LOCAL/bin/Singular&quot; &amp;&amp; export SINGULAR_EXECUTABLE

if [ &quot;$SAGE_SERVER&quot; = &quot;&quot; ]; then
    SAGE_SERVER=&quot;http://www.sagemath.org/&quot;
    export SAGE_SERVER
fi

# Check that $HOME exists
if [ &quot;$HOME&quot; = &quot;&quot; ]; then
    echo &gt;&amp;2 &#039;Error: environment variable $HOME is not set.&#039;
    return 1
fi
if ! [ -d &quot;$HOME&quot; ]; then
    echo &gt;&amp;2 &quot;Error: HOME directory &#039;$HOME&#039; does not exist.&quot;
    return 1
fi

if [ &quot;$DOT_SAGE&quot; = &quot;&quot; ]; then
    # It is *not* an error if this directory does not exist, it will
    # be created in spkg/bin/sage.  This also works if $HOME/.sage is a
    # symbolic link to a non-existing directory.
    DOT_SAGE=`resolvelinks &quot;$HOME/.sage&quot;`

    # In theory, DOT_SAGE is not required to have a trailing slash.
    # But since there are some issues (#11924, maybe #12221),
    # we add a slash for safety.
    DOT_SAGE=&quot;${DOT_SAGE}/&quot;
    export DOT_SAGE
fi


if [ &quot;$SAGE_STARTUP_FILE&quot; = &quot;&quot; ]; then
    SAGE_STARTUP_FILE=&quot;$DOT_SAGE/init.sage&quot;
    export SAGE_STARTUP_FILE
fi

if [ -d &quot;$SAGE_ROOT/local/lib/python&quot; ]; then
    PYTHONPATH=&quot;$SAGE_ROOT/local/lib/python&quot;
    if [ -n &quot;$SAGE_PATH&quot; ]; then
        PYTHONPATH=&quot;$SAGE_PATH:$PYTHONPATH&quot;
    fi
    PYTHONHOME=&quot;$SAGE_ROOT/local&quot;
    export PYTHONPATH
    export PYTHONHOME
fi

if [ -z &quot;${SAGE_ORIG_LD_LIBRARY_PATH_SET}&quot; ]; then
    SAGE_ORIG_LD_LIBRARY_PATH=$LD_LIBRARY_PATH &amp;&amp; export SAGE_ORIG_LD_LIBRARY_PATH
    SAGE_ORIG_LD_LIBRARY_PATH_SET=True &amp;&amp; export SAGE_ORIG_LD_LIBRARY_PATH_SET
fi

# Should this be a temporary directory instead?  Since sage-ptest and
# sage-test are written in Python, we can set it to
# tempfile.gettempdir() there.
if [ -z &quot;$SAGE_TESTDIR&quot; ]; then
    SAGE_TESTDIR=&quot;$DOT_SAGE&quot;/tmp &amp;&amp; export SAGE_TESTDIR
fi

# Use a matplotlib config directory specific to Sage and specific to
# the version number of matplotlib, by setting the environment
# variable MPLCONFIGDIR.  See
# http://trac.sagemath.org/sage_trac/ticket/6235 and
# http://trac.sagemath.org/sage_trac/ticket/9221.  Find the version
# number for matplotlib by reading the file
# SAGE_LOCAL/lib/python/site-packages/matplotlib/__init__.py, and use
# the version number in the name of the directory.  If that file
# doesn&#039;t exist, matplotlib hasn&#039;t been installed yet, so don&#039;t set
# MPLCONFIGDIR.
MPLINITFILE=&quot;$SAGE_LOCAL/lib/python/site-packages/matplotlib/__init__.py&quot;
if [ -f &quot;$MPLINITFILE&quot; ]; then
    MPLVERSION=`sed -n &quot;/^__version__[ ]*=/s/[^&#039;]*&#039;\([^&#039;]*\)&#039;.*$/\1/p&quot; &quot;$MPLINITFILE&quot;`
    if [ &quot;$MPLVERSION&quot; != &quot;&quot; ]; then
        MPLCONFIGDIR=&quot;$DOT_SAGE/matplotlib-$MPLVERSION&quot;
    else
        # MPLVERSION is empty, so no version found.
        MPLCONFIGDIR=&quot;$DOT_SAGE/matplotlib&quot;
    fi
    export MPLCONFIGDIR
    # Create the directory, because matplotlib doesn&#039;t seem to be happy otherwise.
    mkdir -p &quot;$MPLCONFIGDIR&quot;
fi

# Add some directories to $LD_LIBRARY_PATH:
# * lib/openmpi is needed for openmpi.
# * lib/R/lib is needed for R in case the Sage install is moved.
# * lib32 and lib64 are needed for GCC, see #12405.
for d in lib/openmpi lib/R/lib lib32 lib64 lib; do
    libdir=&quot;$SAGE_LOCAL/$d&quot;
    # Add only existing directories
    if [ -d &quot;$libdir&quot; ]; then
        LD_LIBRARY_PATH=&quot;$libdir:$LD_LIBRARY_PATH&quot;
    fi
done
export LD_LIBRARY_PATH

# The following is needed for OS X (especially for the
# Singular install).
if [ `uname` = &quot;Darwin&quot; ]; then
    if [ -z &quot;${SAGE_ORIG_DYLD_LIBRARY_PATH_SET}&quot; ]; then
        SAGE_ORIG_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH &amp;&amp; export SAGE_ORIG_DYLD_LIBRARY_PATH
        SAGE_ORIG_DYLD_LIBRARY_PATH_SET=True &amp;&amp; export SAGE_ORIG_DYLD_LIBRARY_PATH_SET
    fi
    DYLD_LIBRARY_PATH=&quot;$LD_LIBRARY_PATH:$DYLD_LIBRARY_PATH:$SAGE_LOCAL/lib/R/lib&quot; &amp;&amp; export DYLD_LIBRARY_PATH
fi

if [ &quot;$1&quot; = &quot;-short&quot; ]; then
    return 0
fi

if [ -z &quot;$RHOME&quot; ]; then
    RHOME=&quot;$SAGE_LOCAL/lib/R&quot; &amp;&amp; export RHOME
fi

MAXIMA_PREFIX=&quot;$SAGE_ROOT/local&quot; &amp;&amp; export MAXIMA_PREFIX

# PKG_CONFIG_PATH is used by &#039;pkg-config&#039; on Solaris and Linux, 
# but at least some versions of OS X do not have the pkg-config 
# command, so relying on this is not wise on OS X. 

if [ -z &quot;$PKG_CONFIG_PATH&quot; ]; then
    PKG_CONFIG_PATH=&quot;$SAGE_LOCAL/lib/pkgconfig&quot;
else
    PKG_CONFIG_PATH=&quot;$SAGE_LOCAL/lib/pkgconfig:$PKG_CONFIG_PATH&quot;
fi
export PKG_CONFIG_PATH


############ compilation flags

UNAME=`uname`
if [ `uname | sed -e &#039;s/WIN.\+/WIN/&#039;` = &quot;CYGWIN&quot; ]; then
    UNAME=&quot;CYGWIN&quot;
fi
export UNAME

# Setting Sage-related compilation flags.
# This could be used in code to make special changes only when
# code is being built as part of Sage.
export __sage__=&quot;&quot;

# Set the C and C++ compilers
if [ -z &quot;$CC&quot; ]; then
    # On OS X 10.7 (Lion) or later when building GCC, use clang as
    # default C compiler as some older versions of XCode 4 ship broken
    # versions of GCC which fail to bootstrap GCC-4.6.3.
    # See http://trac.sagemath.org/sage_trac/ticket/12820
    if [ &quot;$SAGE_BUILD_TOOLCHAIN&quot; = yes ] &amp;&amp; [ &quot;$UNAME&quot; = Darwin ] &amp;&amp; [ `uname -r | cut -d. -f1` -ge 11 ]; then
        CC=`which clang 2&gt;/dev/null`
    fi
fi
if [ -z &quot;$CC&quot; ]; then
    CC=gcc
fi
if [ -z &quot;$CXX&quot; ]; then
    CXX=g++
fi

# An Objective-C compiler is needed for R on Darwin.
# On Darwin, /usr/bin/cc supports Objective-C.  The gcc shipped with
# Sage doesn&#039;t.
if [ &quot;$UNAME&quot; = &quot;Darwin&quot; ]; then
    if [ -z &quot;$OBJC&quot; -a -x &quot;/usr/bin/cc&quot; ]; then
        export OBJC=/usr/bin/cc
    fi
    if [ -z &quot;$OBJCXX&quot; -a -x &quot;/usr/bin/c++&quot; ]; then
        export OBJCXX=/usr/bin/c++
    fi
fi

# Override CC and CXX if the gcc spkg was installed.
if [ -x &quot;$SAGE_LOCAL/bin/gcc&quot; ]; then
    CC=gcc
fi
if [ -x &quot;$SAGE_LOCAL/bin/g++&quot; ]; then
    CXX=g++
fi
export CC CXX


if [ &quot;$LD&quot; = &quot;&quot; ]; then
    LD=&quot;ld&quot;  &amp;&amp; export LD
fi
if [ &quot;$AR&quot; = &quot;&quot; ]; then
    AR=&quot;ar&quot;  &amp;&amp; export AR
fi
if [ &quot;$AS&quot; = &quot;&quot; ]; then
    AS=&quot;as&quot;  &amp;&amp; export AS
fi

if [ &quot;$LDFLAGS&quot; = &quot;&quot; ]; then
    LDFLAGS=&quot;&quot;          &amp;&amp; export LDFLAGS
fi

if [ &quot;$SAGE64&quot; = &quot;&quot; ]; then
    SAGE64=&quot;no&quot;
fi 

if [ &quot;$SAGE64&quot; != &quot;yes&quot; -a &quot;$SAGE64&quot; != &quot;no&quot; ]; then
    echo &quot;The environment variable SAGE64 (=$SAGE64) must be either unset, yes or no.&quot;
    return 1
fi

# In case SAGE64 has been set to yes before re-inject it into the environment
# This is only done on OSX and Solaris since those are the only real multi lib
# arches we support. Eventually Linux PPC on the PS3 might need to be added here
source &quot;$SAGE_LOCAL/bin/sage-check-64&quot; 1&gt; /dev/null 2&gt; /dev/null
export SAGE64

if [ &quot;$CXXFLAGS&quot; = &quot;&quot; ]; then
    export CXXFLAGS=&quot;$CFLAGS&quot;
fi

if [ &quot;$CP&quot; = &quot;&quot; ]; then
    CP=&quot;cp&quot;  &amp;&amp; export CP
fi

if [ &quot;$MV&quot; = &quot;&quot; ]; then
    MV=&quot;mv&quot;  &amp;&amp; export MV
fi

if [ &quot;$RANLIB&quot; = &quot;&quot; ]; then
    RANLIB=&quot;ranlib&quot;  &amp;&amp; export RANLIB
fi
 
if [ &quot;$LN&quot; = &quot;&quot; ]; then
    LN=&quot;ln&quot;  &amp;&amp; export LN
fi
 
if [ &quot;$MKDIR&quot; = &quot;&quot; ]; then
    MKDIR=&quot;mkdir&quot;  &amp;&amp; export MKDIR
fi
 
if [ &quot;$CHMOD&quot; = &quot;&quot; ]; then
    CHMOD=&quot;chmod&quot;  &amp;&amp; export CHMOD
fi
 
if [ &quot;$TOUCH&quot; = &quot;&quot; ]; then
    TOUCH=&quot;touch&quot;  &amp;&amp; export TOUCH
fi

if [ &quot;$UNAME&quot; = &quot;CYGWIN&quot; ]; then
    PATH=&quot;$PATH:$SAGE_LOCAL/lib&quot; &amp;&amp; export PATH
fi

# See trac 7186 -- this is needed if ecl is moved
ECLDIR=&quot;$SAGE_LOCAL/lib/ecl/&quot; &amp;&amp; export ECLDIR

# Handle parallel building/testing/...
# See Trac Ticket #12016
# First, figure out the right values for SAGE_NUM_THREADS (default
# number of threads) and SAGE_NUM_THREADS_PARALLEL (default number of
# threads when parallel execution is asked explicitly).
sage_num_threads_array=(`sage-num-threads.py 2&gt;/dev/null || echo 1 2 1`)
SAGE_NUM_THREADS=${sage_num_threads_array[0]}
SAGE_NUM_THREADS_PARALLEL=${sage_num_threads_array[1]}
export SAGE_NUM_THREADS
export SAGE_NUM_THREADS_PARALLEL

if [ &quot;$MAKE&quot; = &quot;&quot; ]; then
    MAKE=&quot;make&quot;
fi

# If MAKEFLAGS exists, assume it got set by make.
# Therefore, remove all flags from $MAKE
if [ &quot;${MAKEFLAGS-__unset__}&quot; != &quot;__unset__&quot; ]; then
    MAKE=`echo &quot;$MAKE&quot; | sed &#039;s/ .*//&#039;`
fi
export MAKE


# You can set environment variables in $SAGE_RC_FILE
# (by default, this is the file $DOT_SAGE/sagerc).  For example,
# setting PS1 there will set your prompt when you run &quot;sage --sh&quot;.
if [ -z &quot;$SAGE_RC_FILE&quot; ]; then
    SAGE_RC_FILE=&quot;$DOT_SAGE/sagerc&quot;
fi

if [ -r &quot;$SAGE_RC_FILE&quot; ]; then
    source &quot;$SAGE_RC_FILE&quot;
    if [ $? -ne 0 ]; then
        echo &gt;&amp;2 &quot;Error sourcing $SAGE_RC_FILE&quot;
        exit 1
    fi
fi</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (frodonsfr)]]></author>
			<pubDate>Sat, 08 Sep 2012 14:43:35 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10685011#p10685011</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  mise à jour sageMath]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10683751#p10683751</link>
			<description><![CDATA[<p>lol tu peux déjà poster le résultat de ce cat <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Bouib)]]></author>
			<pubDate>Sat, 08 Sep 2012 12:41:03 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10683751#p10683751</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  mise à jour sageMath]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10683051#p10683051</link>
			<description><![CDATA[<p>En fait, j&#039;arrive à lire le contenu de ce fichier, mais je ne vois pas quoi faire.<br />Je vais essayer ton groupe, mais c&#039;est en anglais.</p>]]></description>
			<author><![CDATA[dummy@example.com (frodonsfr)]]></author>
			<pubDate>Sat, 08 Sep 2012 11:29:29 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10683051#p10683051</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  mise à jour sageMath]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10682731#p10682731</link>
			<description><![CDATA[<p>bonjour,<br />un petit :<br />cat /usr/lib/sage/spkg/bin/sage-env<br />dans un terminal, sinon tu peux aussi demandeer des précisions à <a href="https://groups.google.com/forum/?fromgroups#!forum/sage-devel">https://groups.google.com/forum/?fromgr … sage-devel</a> <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Bouib)]]></author>
			<pubDate>Sat, 08 Sep 2012 10:58:42 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10682731#p10682731</guid>
		</item>
		<item>
			<title><![CDATA[mise à jour sageMath]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10682521#p10682521</link>
			<description><![CDATA[<p>Bonjour,<br />depuis l&#039;installation de sagemath sous Ubuntu 12.04 j&#039;ai une mise à jour qui renvoie un message d&#039;erreur</p><div class="codebox"><pre><code>installArchives() failed: Setting up sagemath-upstream-binary (5.0.1) ...
Running Sage once as root to set paths
Error: environment variable $HOME is not set.
Error setting environment variables by sourcing &#039;/usr/lib/sage/spkg/bin/sage-env&#039;;
possibly contact sage-devel (see http://groups.google.com/group/sage-devel).
dpkg: error processing sagemath-upstream-binary (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
 sagemath-upstream-binary
Error in function: 
Setting up sagemath-upstream-binary (5.0.1) ...
Running Sage once as root to set paths
Error: environment variable $HOME is not set.
Error setting environment variables by sourcing &#039;/usr/lib/sage/spkg/bin/sage-env&#039;;
possibly contact sage-devel (see http://groups.google.com/group/sage-devel).
dpkg: error processing sagemath-upstream-binary (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 sagemath-upstream-binary</code></pre></div><p>J&#039;ai essayé d&#039;aller voir le fichier /usr/lib/sage/spkg/bin/sage-env, mais cela dépasse mes (maigres) compétences.<br />Si vous pouviez m&#039;aider, merci d&#039;avance.</p>]]></description>
			<author><![CDATA[dummy@example.com (frodonsfr)]]></author>
			<pubDate>Sat, 08 Sep 2012 10:37:26 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10682521#p10682521</guid>
		</item>
	</channel>
</rss>
