Ask Your Question
1

./sage -i pyopenssl fails to compile

asked 2016-05-04 05:45:30 +0100

cenobyte gravatar image

I've tried multiple times to get this to work. I've tried with a clean install of the latest version of sage and the latest version of ubuntu. I've run make install build essentials, make install m4. I've spent hours on google with no answers. This is the result ./sage -i pyopenssl (relevant output)

Using cached cffi-1.6.0.tar.gz Complete output from command python setup.py egg_info: /usr/SageMath/local/bin/pkg-config: line 16: /home/buildbot/slave/binary_pkg/build/tools/binary-pkg/bin/pkg-config: No such file or directory /usr/SageMath/local/bin/pkg-config: line 16: /home/buildbot/slave/binary_pkg/build/tools/binary-pkg/bin/pkg-config: No such file or directory /usr/SageMath/local/bin/pkg-config: line 16: /home/buildbot/slave/binary_pkg/build/tools/binary-pkg/bin/pkg-config: No such file or directory /usr/SageMath/local/bin/pkg-config: line 16: /home/buildbot/slave/binary_pkg/build/tools/binary-pkg/bin/pkg-config: No such file or directory /usr/SageMath/local/bin/pkg-config: line 16: /home/buildbot/slave/binary_pkg/build/tools/binary-pkg/bin/pkg-config: No such file or directory gcc: error: /usr/SageMath/local/lib/gcc/: Is a directory gcc: error: /usr/SageMath/local/lib/gcc/: Is a directory

    No working compiler found, or bogus compiler options
    passed to the compiler from Python's distutils module.
    See the error messages above.
    (If they are about -mno-fused-madd and you are on OS/X 10.8,
    see 

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

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-i0j969/cffi/ Makefile:2083: recipe for target 'pyopenssl' failed make[1]: * [pyopenssl] Error 1 make[1]: Leaving directory '/usr/SageMath/build/make'

real 0m10.091s user 0m7.088s sys 0m2.300s


Error building Sage.

The following package(s) may have failed to build (not necessarily during this run of 'make pyopenssl'):

  • package: openssl-1.0.2g log file: /usr/SageMath/logs/pkgs/openssl-1.0.2g.log build directory: /usr/SageMath/local/var/tmp/sage/build/openssl-1.0.2g

The build directory may contain configuration files and other potentially helpful information. WARNING: if you now run 'make' again, the build directory will, by default, be deleted. Set the environment variable SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

Makefile:16: recipe for target 'pyopenssl' failed make: * [pyopenssl] Error 1

Does anyone have a clue how to fix this? I've run out of ideas, and have basically given up on making a secure sage server.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-05-05 15:00:32 +0100

kcrisman gravatar image

I think you may want to build Sage from scratch in this instance: note

/home/buildbot/slave/binary_pkg/build/tools/binary-pkg/bin/pkg-config:

suggests you are using a binary, which may not be able to deal with all compiling issues.

edit flag offensive delete link more

Comments

I tried to build from source, now I get a new error: line 14, in <module> from . import multiarray ImportError: libsatlas.so: cannot open shared object file: No such file or directory


Error building the Sage library


Please email sage-devel (http://groups.google.com/group/sage-devel (http://groups.google.com/group/sage-d...)) explaining the problem and including the relevant part of the log file /usr/SageMath/logs/pkgs/sage-7.1.log Describe your computer, operating system, etc.


Makefile:6: recipe for target 'sage' failed make[3]: * [sage] Error 1 make[3]: Leaving directory '/usr/SageMath/src'

cenobyte gravatar imagecenobyte ( 2016-05-05 21:01:15 +0100 )edit

Huh, maybe you don't even have ATLAS on your computer, though it should compile then... I think this is not a discussion that will work well on this medium (it's a Q&A forum), can you try sage-support@googlegroups.com?

kcrisman gravatar imagekcrisman ( 2016-05-10 16:20:13 +0100 )edit
0

answered 2016-07-14 11:36:11 +0100

I have the solution.

wget "https://pypi.python.org/packages/a9/5b/a383b3a778609fe8177bd51307b5ebeee369b353550675353f46cb99c6f0/cryptography-1.4.tar.gz#md5=a9763e3831cc7cdb402c028fac1ceb39"

tar zxvf cryptography-1.4.tar.gz cd cryptography-1.4/ ../local/bin/python setup.py install cd .. ./sage -i pyopenssl

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-05-04 05:45:30 +0100

Seen: 811 times

Last updated: May 05 '16