Compilation of sage 5.2 fails: Error installing package sagenb-0.9.1

170 views
Skip to first unread message

Stan

unread,
Aug 15, 2012, 3:01:09 AM8/15/12
to sage-...@googlegroups.com
Dear all,

Here is another failure to compile sage 5.2, this time on Ubuntu 12.04, 64 bit: Error installing package sagenb-0.9.1

Below, I pasted the first and last lines of sagenb-0.9.1.log, hope it is helpful:

sagenb-0.9.1
====================================================
Extracting package /home/sschyman/Programs/sage-upgrade/spkg/standard/sagenb-0.9.1.spkg
-rw-r--r-- 1 sschyman sschyman 26763319 Jul 25 16:47 /home/sschyman/Programs/sage-upgrade/spkg/standard/sagenb-0.9.1.spkg
Finished extraction
****************************************************
Host system:
Linux sppc26 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
****************************************************

[...]

Finished processing dependencies for hg-git==0.3.2
Processing pyOpenSSL-0.12.tar.gz
Running pyOpenSSL-0.12/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Lh1NtB/pyOpenSSL-0.12/egg-dist-tmp-la3Nc9
warning: no files found matching 'COPYING'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
In file included from /home/sschyman/Programs/sage-upgrade/local/include/python2.7/Python.h:8:0,
                 from OpenSSL/crypto/crypto.c:14:
/home/sschyman/Programs/sage-upgrade/local/include/python2.7/pyconfig.h:1183:0: warning: "_XOPEN_SOURCE" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
In file included from OpenSSL/crypto/crypto.h:17:0,
                 from OpenSSL/crypto/crypto.c:16:
OpenSSL/crypto/x509.h:17:25: fatal error: openssl/ssl.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
Error installing pyOpenSSL-0.12.tar.gz.

real    0m30.605s
user    0m11.257s
sys    0m1.808s
************************************************************************
Error installing package sagenb-0.9.1
************************************************************************

[...]

Thanks already for your help!

Cheers
Stan

Jeroen Demeyer

unread,
Aug 15, 2012, 3:24:12 AM8/15/12
to sage-...@googlegroups.com
On 2012-08-15 09:01, Stan wrote:
> Dear all,
>
> Here is another failure to compile sage 5.2, this time on Ubuntu 12.04,
> 64 bit: Error installing package sagenb-0.9.1

You need to install the libssl-dev package on your system.

Stan

unread,
Aug 15, 2012, 7:30:14 AM8/15/12
to sage-...@googlegroups.com
Thanks for the quick reply, Jeroen!
After a long fight with unresolvable dependencies, I finally managed to install libssl-dev and now repeated the make command. Will post later if it worked. If it is not a good idea to re-run make in the failed folder and making a fresh copy of the code files would be better, please let me know.

Andrea Lazzarotto

unread,
Aug 15, 2012, 7:48:22 AM8/15/12
to sage-...@googlegroups.com


2012/8/15 Stan <schy...@gmail.com>

If it is not a good idea to re-run make in the failed folder and making a fresh copy of the code files would be better, please let me know.

AFAIK that shouldn't cause problems, however you should save a bit of time because of some already compiled files.

--
Andrea Lazzarotto - http://andrealazzarotto.com

Stan

unread,
Aug 15, 2012, 9:15:24 AM8/15/12
to sage-...@googlegroups.com
Great, thanks, it worked!

Could someone change the README.txt from

"On recent Debian or Ubuntu systems (in particular Ubuntu 12.04
   "Precise"), you need the dpkg-dev package."

to

"On recent Debian or Ubuntu systems (in particular Ubuntu 12.04
   "Precise"), you need the dpkg-dev and libssl-dev packages."

Cheers
Stan



On Wednesday, August 15, 2012 9:24:12 AM UTC+2, Jeroen Demeyer wrote:
Reply all
Reply to author
Forward
0 new messages