I've tried installing pyopenssl to a linux server running CENTOS on Sage 
7.2.beta2 (and beta3).
I used one of two commands 
./sage -i pyopenssl
./sage -pip install pyopenssl

Both are terminating because of a missing header file: ffi.h
Is there something that I should have installed that is missing?

-Mike


[sageuser@algebra sage]$ ./sage -pip install pyopenssl

Collecting pyopenssl

  Using cached pyOpenSSL-16.0.0-py2.py3-none-any.whl

Collecting cryptography>=1.3 (from pyopenssl)

  Using cached cryptography-1.3.1.tar.gz

Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in 
./local/lib/python2.7/site-packages/six-1.10.0-py2.7.egg (from pyopenssl)

Requirement already satisfied (use --upgrade to upgrade): idna>=2.0 in 
./local/lib/python2.7/site-packages (from cryptography>=1.3->pyopenssl)

Requirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.8 in 
./local/lib/python2.7/site-packages (from cryptography>=1.3->pyopenssl)

Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 
in ./local/lib/python2.7/site-packages/setuptools-20.3.1-py2.7.egg (from 
cryptography>=1.3->pyopenssl)

Requirement already satisfied (use --upgrade to upgrade): enum34 in 
./local/lib/python2.7/site-packages (from cryptography>=1.3->pyopenssl)

Requirement already satisfied (use --upgrade to upgrade): ipaddress in 
./local/lib/python2.7/site-packages (from cryptography>=1.3->pyopenssl)

Collecting cffi>=1.4.1 (from cryptography>=1.3->pyopenssl)

  Using cached cffi-1.5.2.tar.gz

Requirement already satisfied (use --upgrade to upgrade): pycparser in 
./local/lib/python2.7/site-packages (from 
cffi>=1.4.1->cryptography>=1.3->pyopenssl)

Installing collected packages: cffi, cryptography, pyopenssl

  Running setup.py install for cffi ... error

    Complete output from command /usr/local/sage-7.2.beta3/local/bin/python 
-u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-qYgPpy/cffi/setup.py';exec(compile(getattr(tokenize,
 
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" 
install --record /tmp/pip-kgVvmG-record/install-record.txt 
--single-version-externally-managed --compile:

    Package libffi was not found in the pkg-config search path.

    Perhaps you should add the directory containing `libffi.pc'

    to the PKG_CONFIG_PATH environment variable

    No package 'libffi' found

    Package libffi was not found in the pkg-config search path.

    Perhaps you should add the directory containing `libffi.pc'

    to the PKG_CONFIG_PATH environment variable

    No package 'libffi' found

    Package libffi was not found in the pkg-config search path.

    Perhaps you should add the directory containing `libffi.pc'

    to the PKG_CONFIG_PATH environment variable

    No package 'libffi' found

    Package libffi was not found in the pkg-config search path.

    Perhaps you should add the directory containing `libffi.pc'

    to the PKG_CONFIG_PATH environment variable

    No package 'libffi' found

    Package libffi was not found in the pkg-config search path.

    Perhaps you should add the directory containing `libffi.pc'

    to the PKG_CONFIG_PATH environment variable

    No package 'libffi' found

    running install

    running build

    running build_py

    creating build

    creating build/lib.linux-x86_64-2.7

    creating build/lib.linux-x86_64-2.7/cffi

    copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/commontypes.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/__init__.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/lock.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/cparser.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/verifier.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/api.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/recompiler.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/ffiplatform.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/model.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/vengine_gen.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/gc_weakref.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/_cffi_include.h -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/parse_c_type.h -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/_embedding.h -> build/lib.linux-x86_64-2.7/cffi

    running build_ext

    building '_cffi_backend' extension

    creating build/temp.linux-x86_64-2.7

    creating build/temp.linux-x86_64-2.7/c

    gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wno-unused -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi 
-I/usr/local/sage-7.2.beta3/local/include/python2.7 -c c/_cffi_backend.c -o 
build/temp.linux-x86_64-2.7/c/_cffi_backend.o

    c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory

     #include <ffi.h>

                     ^

    compilation terminated.

    error: command 'gcc' failed with exit status 1

    

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

Command "/usr/local/sage-7.2.beta3/local/bin/python -u -c "import 
setuptools, 
tokenize;__file__='/tmp/pip-build-qYgPpy/cffi/setup.py';exec(compile(getattr(tokenize,
 
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" 
install --record /tmp/pip-kgVvmG-record/install-record.txt 
--single-version-externally-managed --compile" failed with error code 1 in 
/tmp/pip-build-qYgPpy/cffi/





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

[zabrocki@algebra sage-git]$ ./sage -i pyopenssl

make build/make/Makefile

make[1]: Entering directory `/home/zabrocki/sage-git'

rm -f config.log

mkdir -p logs/pkgs

ln -s logs/pkgs/config.log config.log

running CONFIG_SHELL=/bin/sh /bin/sh ./configure --no-create --no-recursion

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking whether to disable maintainer-specific portions of Makefiles... yes

checking for root user... no

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking for ar... yes

checking for m4... yes

checking for ranlib... yes

checking for strip... yes

checking for GNU or BSD tar... /bin/tar

checking for GNU make... /usr/bin/make

checking for latex... yes

checking for perl... /usr/bin/perl

checking for Perl version 5.8.0 or later... yes

checking for gcc... gcc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables... 

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

checking for style of include used by make... GNU

checking dependency style of gcc... none

checking how to run the C preprocessor... gcc -E

checking for g++... g++

checking whether we are using the GNU C++ compiler... yes

checking whether g++ accepts -g... yes

checking dependency style of g++... none

checking for gfortran... gfortran

checking whether we are using the GNU Fortran compiler... yes

checking whether gfortran accepts -g... yes

checking how to run the C++ preprocessor... g++ -E

checking for grep that handles long lines and -e... /bin/grep

checking for egrep... /bin/grep -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking complex.h usability... yes

checking complex.h presence... yes

checking for complex.h... yes

checking whether g++ supports C++11 features by default... no

checking whether g++ supports C++11 features with -std=gnu++11... no

checking whether g++ supports C++11 features with -std=gnu++0x... no

checking whether g++ supports C++11 features with -std=c++11... no

checking whether g++ supports C++11 features with -std=c++0x... no

checking whether g++ supports C++11 features with +std=c++11... no

checking whether g++ supports C++11 features with -h std=c++11... no

configure: No compiler with C++11 support was found

checking for gcc option to accept ISO C99... -std=gnu99

checking for Fortran flag needed to accept free-form source... -ffree-form

checking if gcc accepts -dumpversion option... yes

checking gcc version... 4.4.7

checking if g++ accepts -dumpversion option... yes

checking g++ version... 4.4.7

checking for sqrt in -lm... yes

checking package versions... 

    4ti2-1.6.7

    arb-2.8.1.p0

    atlas-3.10.2.p2

    autotools-20141105

    backports_abc-0.4

    backports_ssl_match_hostname-3.5.0.1

    benzene-20130630

    bliss-0.73

    boost_cropped-1.58.0

    brial-0.8.4.3

    buckygen-1.0

    bzip2-1.0.6-20150304

    cbc-2.9.4

    ccache-3.2.2

    cddlib-094g.p0

    cephes-2.8.p1

    certifi-2016.2.28

    cliquer-1.21.p3

    cmake-3.2.3

    combinatorial_designs-20140630

    compilerwrapper-1.2

    configure-156

    conway_polynomials-0.4.p0

    coxeter3-1.1

    cryptominisat-2.9.6

    csdp-6.2

    cvxopt-1.1.8.p1

    cycler-0.10.0

    cysignals-1.1.0

    cython-0.23.5

    d3js-3.4.8

    database_cremona_ellcurve-20160211

    database_gap-4.8.3

    database_jones_numfield-4

    database_odlyzko_zeta-20061209

    database_pari-20140908

    database_stein_watkins-20110713

    database_stein_watkins_mini-20070827

    database_symbolic_data-20070206

    dateutil-2.2

    decorator-4.0.6

    docutils-0.12

    dot2tex-2.9.0.p0

    ecl-15.3.7.p1

    eclib-20150827

    ecm-6.4.4

    elliptic_curves-0.8

    fflas_ffpack-1.6.0.p2

    flint-2.5.2.p0

    flintqs-1.0

    freetype-2.6

    fricas-1.2.4

    functools32-3.2.3-2

    gambit-14.1.0

    gap-4.8.3

    gap_packages-4.8.3

    gc-7.2f.p0

    gcc-4.9.3.p1 not installed (configure check)

    gdb-7.8

    gf2x-1.1.p1

    gfan-0.5.p0

    giac-1.2.0.19

    giacpy-0.5.1

    git-2.6.2

    git_trac-20150522

    givaro-3.7.1

    glpk-4.55.p1

    gmp-5.1.3

    gp2c-0.0.9pl5

    graphs-20151224

    gsl-2.1

    iconv-1.14

    igraph-0.7.1

    iml-1.0.4p1.p1

    ipykernel-4.3.1

    ipython-4.1.2

    ipython_genutils-0.1.0

    ipywidgets-4.1.1

    jinja2-2.8

    jmol-14.2.11_2015.01.20

    jsonschema-2.5.1

    jupyter_client-4.2.2

    jupyter_core-4.1.0

    latte_int-1.7.3

    lcalc-1.23.p14

    libfplll-20160107

    libgap-4.8.3

    libgd-2.1.1.1.p0

    libogg-1.3.1

    libpng-1.2.51.p0

    libtheora-1.1.1

    lidia-2.3.0+latte-patches-2014-10-04

    lie-2.2.2

    linbox-1.3.2.p1

    lrcalc-1.2.p0

    lrslib-051

    m4ri-20140914

    m4rie-20150908

    markupsafe-0.23

    mathjax-2.5

    matplotlib-1.5.1

    maxima-5.35.1.p2

    mcqd-1.0

    meataxe-2.4.24.p1

    mistune-0.7.2

    modular_decomposition-20100607

    mpc-1.0.3.p0

    mpfi-1.5.1

    mpfr-3.1.4

    mpir-2.7.2

    mpmath-0.19

    nauty-26r1

    nbconvert-4.1.0

    nbformat-4.0.1

    ncurses-5.9.20131221

    networkx-1.11

    normaliz-3.1.0

    nose-1.3.3

    notebook-4.1.0

    ntl-9.6.2.p1

    numpy-1.10.4.p1

    openblas-0.2.15

    openssl-1.0.2g

    ore_algebra-0.2

    palp-2.1.p1

    pari-2.8-2341-g61b65cc.p0

    pari_galdata-20080411

    pari_jupyter-1.1.0

    pari_seadata_small-20090618

    patch-2.7.5

    patchbot-2.5.3

    pathpy-7.1

    pexpect-4.0.1.p1

    pickleshare-0.6

    pillow-3.1.1

    pip-8.1.1

    pkgconf-0.9.7

    pkgconfig-1.1.0

    planarity-2.2.0

    plantri-4.5

    polytopes_db-20120220

    ppl-1.1

    ptyprocess-0.5.1

    pycrypto-2.6.1.p0

    pygments-2.1.3

    pynac-0.6.4

    pyparsing-2.1.1

    python2-2.7.10.p1

    python3-3.4.3

    python_igraph-0.7.0

    pyzmq-15.2.0

    qepcad-B.1.69.p0

    r-3.2.3.p1

    ratpoints-2.1.3.p3

    readline-6.3.008

    rpy2-2.7.8

    rubiks-20070912.p18

    rw-0.7

    saclib-2.2.6

    sage_mode-0.14

    sagenb-0.11.7

    sagetex-2.3.4

    scipy-0.17.0.p1

    scons-1.2.0

    setuptools-20.3.1

    setuptools_scm-1.10.1

    simplegeneric-0.8.1

    singledispatch-3.4.0.3

    singular-3.1.7p1.p0

    six-1.10.0

    sphinx-1.2.2.p0

    sqlite-3.8.4.3

    symmetrica-2.0.p9

    sympow-1.018.1.p11

    sympy-1.0.p0

    tachyon-0.98.9.p5

    tdlib-0.3.1

    termcap-1.3.1.p3

    threejs-r70

    tides-2.0

    topcom-0.17.4.p0

    tornado-4.3

    traitlets-4.2.1

    valgrind-3.10.0

    vcversioner-2.14.0.0

    zeromq-4.0.5

    zlib-1.2.8.p0

    zn_poly-0.9.p11

checking multiprecision library... MPIR

configure: creating ./config.status

config.status: creating build/make/Makefile-auto

config.status: executing depfiles commands

config.status: executing mkdirs commands

config.status: creating directory /home/zabrocki/sage-git/logs/pkgs

config.status: creating directory /home/zabrocki/sage-git/local

config.status: creating directory /home/zabrocki/sage-git/local/bin

config.status: creating directory /home/zabrocki/sage-git/local/etc

config.status: creating directory /home/zabrocki/sage-git/local/include

config.status: creating directory /home/zabrocki/sage-git/local/lib

config.status: creating directory /home/zabrocki/sage-git/local/share

config.status: creating directory 
/home/zabrocki/sage-git/local/var/lib/sage/installed

make[1]: Leaving directory `/home/zabrocki/sage-git'

build/bin/sage-logger \

"cd build/make && ./install 'all-toolchain'" logs/install.log

*** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***

}

BASH_FUNC_module()=() {  eval `/usr/bin/modulecmd bash $*`

_=/bin/env

CVS_RSH=ssh

G_BROKEN_FILENAMES=1

HISTCONTROL=ignoredups

HISTSIZE=1000

HOME=/home/zabrocki

HOSTNAME=algebra.math.yorku.ca

LANG=en_US.UTF-8

LESSOPEN=||/usr/bin/lesspipe.sh %s

LOADEDMODULES=

LOGNAME=zabrocki

LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lz=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.bz=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.rar=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:

MAIL=/var/spool/mail/zabrocki

MAKEFLAGS=

MAKELEVEL=1

MAKE=make

MFLAGS=

MODULEPATH=/usr/share/Modules/modulefiles:/etc/modulefiles

MODULESHOME=/usr/share/Modules

PATH=/home/zabrocki/sage-git/build/bin:/home/zabrocki/sage-git/src/bin:/home/zabrocki/sage-git/local/bin:.:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/openv/netbackup/bin:/opt/dell/srvadmin/bin:/opt/webwork/webwork2/bin:/home/zabrocki/bin

PG_ROOT=/opt/webwork/pg

PWD=/home/zabrocki/sage-git/build/make

PYTHONPATH=/home/zabrocki/sage-git/local

QTDIR=/usr/lib64/qt-3.3

QTINC=/usr/lib64/qt-3.3/include

QTLIB=/usr/lib64/qt-3.3/lib

SAGE_BROWSER=firefox

SAGE_EXTCODE=/home/zabrocki/sage-git/local/share/sage/ext

SAGE_LOCAL=/home/zabrocki/sage-git/local

SAGE_LOGS=/home/zabrocki/sage-git/logs/pkgs

SAGE_ORIG_PATH_SET=True

SAGE_ORIG_PATH=.:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/openv/netbackup/bin:/opt/dell/srvadmin/bin:/opt/webwork/webwork2/bin:/home/zabrocki/bin

SAGE_ROOT=/home/zabrocki/sage-git

SAGE_SHARE=/home/zabrocki/sage-git/local/share

SAGE_SPKG_INST=/home/zabrocki/sage-git/local/var/lib/sage/installed

SAGE_SRC=/home/zabrocki/sage-git/src

SAGE_VERSION=7.2.beta2

SELINUX_LEVEL_REQUESTED=

SELINUX_ROLE_REQUESTED=

SELINUX_USE_CURRENT_RANGE=

SHELL=/bin/bash

SHLVL=5

SSH_CLIENT=50.101.37.126 46282 2029

SSH_CONNECTION=50.101.37.126 46282 130.63.76.137 2029

SSH_TTY=/dev/pts/43

TERM=xterm-256color

USER=zabrocki

WEBWORK_ROOT=/opt/webwork/webwork2

***********************************************

make[1]: Entering directory `/home/zabrocki/sage-git/build/make'

make base

make[2]: Entering directory `/home/zabrocki/sage-git/build/make'

make[2]: Nothing to be done for `base'.

make[2]: Leaving directory `/home/zabrocki/sage-git/build/make'

env SAGE_BUILD_TOOLCHAIN=yes make toolchain

make[2]: Entering directory `/home/zabrocki/sage-git/build/make'

touch /home/zabrocki/sage-git/local/var/lib/sage/installed/.dummy

make[2]: Leaving directory `/home/zabrocki/sage-git/build/make'

make toolchain-deps

make[2]: Entering directory `/home/zabrocki/sage-git/build/make'

make /home/zabrocki/sage-git/local/var/lib/sage/installed/zlib-1.2.8.p0

make[3]: Entering directory `/home/zabrocki/sage-git/build/make'

make[3]: 
`/home/zabrocki/sage-git/local/var/lib/sage/installed/zlib-1.2.8.p0' is up 
to date.

make[3]: Leaving directory `/home/zabrocki/sage-git/build/make'

make /home/zabrocki/sage-git/local/var/lib/sage/installed/mpir-2.7.2

make[3]: Entering directory `/home/zabrocki/sage-git/build/make'

make[3]: `/home/zabrocki/sage-git/local/var/lib/sage/installed/mpir-2.7.2' 
is up to date.

make[3]: Leaving directory `/home/zabrocki/sage-git/build/make'

make /home/zabrocki/sage-git/local/var/lib/sage/installed/mpfr-3.1.4

make[3]: Entering directory `/home/zabrocki/sage-git/build/make'

make[3]: `/home/zabrocki/sage-git/local/var/lib/sage/installed/mpfr-3.1.4' 
is up to date.

make[3]: Leaving directory `/home/zabrocki/sage-git/build/make'

make /home/zabrocki/sage-git/local/var/lib/sage/installed/mpc-1.0.3.p0

make[3]: Entering directory `/home/zabrocki/sage-git/build/make'

make[3]: 
`/home/zabrocki/sage-git/local/var/lib/sage/installed/mpc-1.0.3.p0' is up 
to date.

make[3]: Leaving directory `/home/zabrocki/sage-git/build/make'

make[2]: Leaving directory `/home/zabrocki/sage-git/build/make'

make[1]: Leaving directory `/home/zabrocki/sage-git/build/make'


real 0m0.133s

user 0m0.117s

sys 0m0.012s

Sage build/upgrade complete!


make build/make/Makefile

make[1]: Entering directory `/home/zabrocki/sage-git'

make[1]: `build/make/Makefile' is up to date.

make[1]: Leaving directory `/home/zabrocki/sage-git'

build/bin/sage-logger \

"cd build/make && ./install 'pyopenssl'" logs/install.log

*** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***

}

BASH_FUNC_module()=() {  eval `/usr/bin/modulecmd bash $*`

_=/bin/env

CVS_RSH=ssh

G_BROKEN_FILENAMES=1

HISTCONTROL=ignoredups

HISTSIZE=1000

HOME=/home/zabrocki

HOSTNAME=algebra.math.yorku.ca

LANG=en_US.UTF-8

LESSOPEN=||/usr/bin/lesspipe.sh %s

LOADEDMODULES=

LOGNAME=zabrocki

LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lz=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.bz=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.rar=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:

MAIL=/var/spool/mail/zabrocki

MAKEFLAGS=SAGE_SPKG=sage-spkg\ 

MAKELEVEL=1

MAKE=make

MAKEOVERRIDES=${-*-command-variables-*-}

MFLAGS=

MODULEPATH=/usr/share/Modules/modulefiles:/etc/modulefiles

MODULESHOME=/usr/share/Modules

PATH=/home/zabrocki/sage-git/build/bin:/home/zabrocki/sage-git/src/bin:/home/zabrocki/sage-git/local/bin:.:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/openv/netbackup/bin:/opt/dell/srvadmin/bin:/opt/webwork/webwork2/bin:/home/zabrocki/bin

PG_ROOT=/opt/webwork/pg

PWD=/home/zabrocki/sage-git/build/make

PYTHONPATH=/home/zabrocki/sage-git/local

QTDIR=/usr/lib64/qt-3.3

QTINC=/usr/lib64/qt-3.3/include

QTLIB=/usr/lib64/qt-3.3/lib

SAGE_BROWSER=firefox

SAGE_EXTCODE=/home/zabrocki/sage-git/local/share/sage/ext

SAGE_LOCAL=/home/zabrocki/sage-git/local

SAGE_LOGS=/home/zabrocki/sage-git/logs/pkgs

SAGE_ORIG_PATH_SET=True

SAGE_ORIG_PATH=.:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/openv/netbackup/bin:/opt/dell/srvadmin/bin:/opt/webwork/webwork2/bin:/home/zabrocki/bin

SAGE_ROOT=/home/zabrocki/sage-git

SAGE_SHARE=/home/zabrocki/sage-git/local/share

SAGE_SPKG_INST=/home/zabrocki/sage-git/local/var/lib/sage/installed

SAGE_SPKG=sage-spkg 

SAGE_SRC=/home/zabrocki/sage-git/src

SAGE_VERSION=7.2.beta2

SELINUX_LEVEL_REQUESTED=

SELINUX_ROLE_REQUESTED=

SELINUX_USE_CURRENT_RANGE=

SHELL=/bin/bash

SHLVL=5

SSH_CLIENT=50.101.37.126 46282 2029

SSH_CONNECTION=50.101.37.126 46282 130.63.76.137 2029

SSH_TTY=/dev/pts/43

TERM=xterm-256color

USER=zabrocki

WEBWORK_ROOT=/opt/webwork/webwork2

***********************************************

make[1]: Entering directory `/home/zabrocki/sage-git/build/make'

sage-logger 'sage --pip install pyopenssl' 
/home/zabrocki/sage-git/logs/pkgs/pyopenssl.log

Collecting pyopenssl

  Using cached pyOpenSSL-16.0.0-py2.py3-none-any.whl

Collecting cryptography>=1.3 (from pyopenssl)

  Using cached cryptography-1.3.1.tar.gz

Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in 
/home/zabrocki/sage-git/local/lib/python2.7/site-packages/six-1.10.0-py2.7.egg 
(from pyopenssl)

Collecting idna>=2.0 (from cryptography>=1.3->pyopenssl)

  Using cached idna-2.1-py2-none-any.whl

Collecting pyasn1>=0.1.8 (from cryptography>=1.3->pyopenssl)

  Using cached pyasn1-0.1.9-py2.py3-none-any.whl

Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 
in 
/home/zabrocki/sage-git/local/lib/python2.7/site-packages/setuptools-20.3.1-py2.7.egg
 
(from cryptography>=1.3->pyopenssl)

Collecting enum34 (from cryptography>=1.3->pyopenssl)

  Using cached enum34-1.1.2.tar.gz

Collecting ipaddress (from cryptography>=1.3->pyopenssl)

  Using cached ipaddress-1.0.16-py27-none-any.whl

Collecting cffi>=1.4.1 (from cryptography>=1.3->pyopenssl)

  Using cached cffi-1.5.2.tar.gz

Collecting pycparser (from cffi>=1.4.1->cryptography>=1.3->pyopenssl)

  Using cached pycparser-2.14.tar.gz

Installing collected packages: idna, pyasn1, enum34, ipaddress, pycparser, 
cffi, cryptography, pyopenssl

  Running setup.py install for enum34: started

    Running setup.py install for enum34: finished with status 'done'

  Running setup.py install for pycparser: started

    Running setup.py install for pycparser: finished with status 'done'

  Running setup.py install for cffi: started

    Running setup.py install for cffi: finished with status 'error'

    Complete output from command /home/zabrocki/sage-git/local/bin/python 
-u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-e6DZ4j/cffi/setup.py';exec(compile(getattr(tokenize,
 
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" 
install --record /tmp/pip-_zv9Rn-record/install-record.txt 
--single-version-externally-managed --compile:

    Package libffi was not found in the pkg-config search path.

    Perhaps you should add the directory containing `libffi.pc'

    to the PKG_CONFIG_PATH environment variable

    No package 'libffi' found

    Package libffi was not found in the pkg-config search path.

    Perhaps you should add the directory containing `libffi.pc'

    to the PKG_CONFIG_PATH environment variable

    No package 'libffi' found

    Package libffi was not found in the pkg-config search path.

    Perhaps you should add the directory containing `libffi.pc'

    to the PKG_CONFIG_PATH environment variable

    No package 'libffi' found

    Package libffi was not found in the pkg-config search path.

    Perhaps you should add the directory containing `libffi.pc'

    to the PKG_CONFIG_PATH environment variable

    No package 'libffi' found

    Package libffi was not found in the pkg-config search path.

    Perhaps you should add the directory containing `libffi.pc'

    to the PKG_CONFIG_PATH environment variable

    No package 'libffi' found

    running install

    running build

    running build_py

    creating build

    creating build/lib.linux-x86_64-2.7

    creating build/lib.linux-x86_64-2.7/cffi

    copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/commontypes.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/__init__.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/lock.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/cparser.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/verifier.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/api.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/recompiler.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/ffiplatform.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/model.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/vengine_gen.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/gc_weakref.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/_cffi_include.h -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/parse_c_type.h -> build/lib.linux-x86_64-2.7/cffi

    copying cffi/_embedding.h -> build/lib.linux-x86_64-2.7/cffi

    running build_ext

    building '_cffi_backend' extension

    creating build/temp.linux-x86_64-2.7

    creating build/temp.linux-x86_64-2.7/c

    gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wno-unused -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi 
-I/home/zabrocki/sage-git/local/include/python2.7 -c c/_cffi_backend.c -o 
build/temp.linux-x86_64-2.7/c/_cffi_backend.o

    c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory

     #include <ffi.h>

                     ^

    compilation terminated.

    error: command 'gcc' failed with exit status 1

    

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

Command "/home/zabrocki/sage-git/local/bin/python -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-e6DZ4j/cffi/setup.py';exec(compile(getattr(tokenize,
 
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" 
install --record /tmp/pip-_zv9Rn-record/install-record.txt 
--single-version-externally-managed --compile" failed with error code 1 in 
/tmp/pip-build-e6DZ4j/cffi/

make[1]: *** [pyopenssl] Error 1

make[1]: Leaving directory `/home/zabrocki/sage-git/build/make'


real 0m6.745s

user 0m4.979s

sys 0m1.479s

***************************************************************

Error building Sage.


The following package(s) may have failed to build (not necessarily

during this run of 'make pyopenssl'):


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.


make: *** [pyopenssl] Error 1

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to