[email protected] wrote:

Hello,

 I am trying to build sage 4.3.2 from source on my desktop OpenSuSE 11.2 x64,
 Intel Core2 Duo, but the installation stops at this point :

 ------------------------------------------------------
 cc version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux)
 ****************************************************
 bash: symbol lookup error:
/home/jeloaica/sage-4.3.2/local/lib/libreadline.so.6:
 undefined symbol: PC

 real    0m0.001s
 user    0m0.000s
 sys     0m0.001s
 sage: An error occurred while installing sqlite-3.6.19.p0

 ..............
 make[1]: *** [installed/sqlite-3.6.19.p0] Error 1
 make[1]: Leaving directory `/home/jeloaica/sage-4.3.2/spkg'

 real    0m48.920s
 user    0m14.657s
 sys     0m4.640s
 Error building Sage


 Any ideas? Is this version of gcc ok?
 Thank you in advance for any help.

 Leonard


Looking in the Sage package for readline, there is some specific things that are executed on SUSE 11.1. The particular bit of code is:

-------------------------------------------------------
# First we check for OpenSUSE 11.1 since bash is linked dynamically with a
# readline that breaks when we build Sage's readline, so we work around this
# for now.

if [ -f /etc/SuSE-release ]; then
    if [ `grep 11.1 /etc/SuSE-release > /dev/null; echo $?` -eq 0 ]; then
        echo "OpenSUSE 11.1 detected"
        if [ -d /usr/include/readline/ ]; then
            echo "The development version of libreadline is installed -> 
copying"
            if [ `uname -p` = "x86_64" ]; then
                cp /lib64/libreadline.so.* "$SAGE_LOCAL"/lib
            else
                cp /lib/libreadline.so.* "$SAGE_LOCAL"/lib
            fi
            cp -r /usr/include/readline  "$SAGE_LOCAL"/include
            exit 0
        else
            echo "No headers found, building library."
            # # This variable is only set to "true" on openSUSE 11.1.
            # OVERWRITE_READLINE="true"; export OVERWRITE_READLINE
        fi
    fi
fi

---------------------------------------------------------


It might be worth your while running

$ uname -p

seeing if it prints "x86_64" or not (which I assume it will in your case), then running

$  cp /lib64/libreadline.so.* /home/jeloaica/sage-4.3.2/local/lib/

*AFTER* first backing up the readline files in that directory.

It is possible that code which is executed automatically on SUSE 11.1 needs to be executed on 11.2 too. But I do not know this for sure. I'm not a SUSE user.

Dave

--
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
URL: http://www.sagemath.org

Reply via email to