Hi,

I would rather install it from pip

 $ sage - i pip
 $ sage -sh -c "pip install pyzmq"

see http://trac.sagemath.org/ticket/16897 for a proposal that just
remove pyzmq from the list of packages.

Vincent

2014-09-05 0:29 UTC+01:00, Anthony Savagar <asava...@gmail.com>:
> Log file attached. Thanks for any help. I want to be able to do sage
> -ipython notebook. I gather pyzmq is a necessary condition.
>
>
> anthony@anthony-VPCZ12V9E:~/Downloads$ sudo sage -i pyzmq-2.1.11.p1.spkg
> [sudo] password for anthony:
> sys:1: RuntimeWarning: not adding directory '' to sys.path since it's not
> owned by a trusted user.
> Untrusted users could put files in this directory which might then be
> imported by your Python code. As a general precaution from similar
> exploits, you should not execute Python code from this directory
> pyzmq-2.1.11.p1
> ====================================================
> Extracting package /home/anthony/Downloads/pyzmq-2.1.11.p1.spkg
> -rw-rw-r-- 1 anthony anthony 464880 Sep  1 23:02
> /home/anthony/Downloads/pyzmq-2.1.11.p1.spkg
> Finished extraction
> ****************************************************
> Host system:
> Linux anthony-VPCZ12V9E 3.2.0-68-generic-pae #102-Ubuntu SMP Tue Aug 12
> 22:23:54 UTC 2014 i686 i686 i386 GNU/Linux
> ****************************************************
> C compiler: gcc
> C compiler version:
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
> Target: i686-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
> --enable-targets=all --disable-werror --with-arch-32=i686
> --with-tune=generic --enable-checking=release --build=i686-linux-gnu
> --host=i686-linux-gnu --target=i686-linux-gnu
> Thread model: posix
> gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
> ****************************************************
> patching file buildutils.py
> running configure
> ******************************************
> Configure: Autodetecting ZMQ settings...
>     Custom ZMQ dir:       /usr/local/src/sage-6.3-i686-Linux/local
> gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
> -I/usr/local/src/sage-6.3-i686-Linux/local/include -Izmq/utils -Izmq/core
> -Izmq/devices -c detect/vers.c -o detect/vers.o
> detect/vers.c:3:17: fatal error: zmq.h: No such file or directory
> compilation terminated.
> Fatal:
>     Failed to compile ZMQ test program.  Please check to make sure:
>
>     * You have a C compiler installed
>     * A development version of Python is installed (including header files)
>     * A development version of ZMQ >= 2.1.4 is installed (including header
> files)
>     * If ZMQ is not in a default location, supply the argument --zmq=<path>
>     * If you did recently install ZMQ to a default location,
>       try rebuilding the ld cache with `sudo ldconfig`
>       or specify zmq's location with `--zmq=/usr/local`
>
> error: command 'gcc' failed with exit status 1
> ******************************************
> running install
> running build
> running build_py
> creating build
> creating build/lib.linux-i686-2.7
> creating build/lib.linux-i686-2.7/zmq
> copying zmq/__init__.py -> build/lib.linux-i686-2.7/zmq
> creating build/lib.linux-i686-2.7/zmq/eventloop
> copying zmq/eventloop/__init__.py -> build/lib.linux-i686-2.7/zmq/eventloop
> copying zmq/eventloop/zmqstream.py ->
> build/lib.linux-i686-2.7/zmq/eventloop
> copying zmq/eventloop/stack_context.py -> build/lib.linux-i686-2.7/zmq/
> eventloop
> copying zmq/eventloop/ioloop.py -> build/lib.linux-i686-2.7/zmq/eventloop
> creating build/lib.linux-i686-2.7/zmq/eventloop/platform
> copying zmq/eventloop/platform/posix.py -> build/lib.linux-i686-2.7/zmq/
> eventloop/platform
> copying zmq/eventloop/platform/__init__.py -> build/lib.linux-i686-2.7/zmq/
> eventloop/platform
> copying zmq/eventloop/platform/windows.py -> build/lib.linux-i686-2.7/zmq/
> eventloop/platform
> copying zmq/eventloop/platform/auto.py -> build/lib.linux-i686-2.7/zmq/
> eventloop/platform
> creating build/lib.linux-i686-2.7/zmq/ssh
> copying zmq/ssh/forward.py -> build/lib.linux-i686-2.7/zmq/ssh
> copying zmq/ssh/__init__.py -> build/lib.linux-i686-2.7/zmq/ssh
> copying zmq/ssh/tunnel.py -> build/lib.linux-i686-2.7/zmq/ssh
> creating build/lib.linux-i686-2.7/zmq/devices
> copying zmq/devices/basedevice.py -> build/lib.linux-i686-2.7/zmq/devices
> copying zmq/devices/__init__.py -> build/lib.linux-i686-2.7/zmq/devices
> copying zmq/devices/monitoredqueuedevice.py ->
> build/lib.linux-i686-2.7/zmq/
> devices
> creating build/lib.linux-i686-2.7/zmq/utils
> copying zmq/utils/__init__.py -> build/lib.linux-i686-2.7/zmq/utils
> copying zmq/utils/jsonapi.py -> build/lib.linux-i686-2.7/zmq/utils
> copying zmq/utils/strtypes.py -> build/lib.linux-i686-2.7/zmq/utils
> creating build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_zmqstream.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_pubsub.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/__init__.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_imports.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_context.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_reqrep.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_version.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_monqueue.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_log.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_error.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_multipart.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_socket.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_ioloop.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_poll.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_stopwatch.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_message.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_device.py -> build/lib.linux-i686-2.7/zmq/tests
> copying zmq/tests/test_pair.py -> build/lib.linux-i686-2.7/zmq/tests
> creating build/lib.linux-i686-2.7/zmq/log
> copying zmq/log/__init__.py -> build/lib.linux-i686-2.7/zmq/log
> copying zmq/log/handlers.py -> build/lib.linux-i686-2.7/zmq/log
> creating build/lib.linux-i686-2.7/zmq/core
> copying zmq/core/__init__.py -> build/lib.linux-i686-2.7/zmq/core
> copying zmq/devices/monitoredqueue.pxd -> build/lib.linux-i686-2.7/zmq/
> devices
> copying zmq/utils/buffers.pxd -> build/lib.linux-i686-2.7/zmq/utils
> copying zmq/utils/zmq_compat.h -> build/lib.linux-i686-2.7/zmq/utils
> copying zmq/utils/pyversion_compat.h -> build/lib.linux-i686-2.7/zmq/utils
> copying zmq/utils/allocate.h -> build/lib.linux-i686-2.7/zmq/utils
> copying zmq/core/context.pxd -> build/lib.linux-i686-2.7/zmq/core
> copying zmq/core/libzmq.pxd -> build/lib.linux-i686-2.7/zmq/core
> copying zmq/core/stopwatch.pxd -> build/lib.linux-i686-2.7/zmq/core
> copying zmq/core/socket.pxd -> build/lib.linux-i686-2.7/zmq/core
> copying zmq/core/message.pxd -> build/lib.linux-i686-2.7/zmq/core
> running build_ext
> ******************************************
> Configure: Autodetecting ZMQ settings...
>     Custom ZMQ dir:       /usr/local/src/sage-6.3-i686-Linux/local
> gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/
> local/src/sage-6.3-i686-Linux/local/include -Izmq/utils -Izmq/core
> -Izmq/devices
> -c detect/vers.c -o detect/vers.o
> detect/vers.c:3:17: fatal error: zmq.h: No such file or directory
> compilation terminated.
> Fatal:
>     Failed to compile ZMQ test program.  Please check to make sure:
>
>     * You have a C compiler installed
>     * A development version of Python is installed (including header files)
>     * A development version of ZMQ >= 2.1.4 is installed (including header
> files)
>     * If ZMQ is not in a default location, supply the argument --zmq=<path>
>     * If you did recently install ZMQ to a default location,
>       try rebuilding the ld cache with `sudo ldconfig`
>       or specify zmq's location with `--zmq=/usr/local`
>
> error: command 'gcc' failed with exit status 1
> ******************************************
>
> real    0m0.374s
> user    0m0.184s
> sys    0m0.100s
> ************************************************************************
> Error installing package pyzmq-2.1.11.p1
> ************************************************************************
> Please email sage-devel (http://groups.google.com/group/sage-devel)
> explaining the problem and including the relevant part of the log file
>   /usr/local/src/sage-6.3-i686-Linux/logs/pkgs/pyzmq-2.1.11.p1.log
> Describe your computer, operating system, etc.
> If you want to try to fix the problem yourself, *don't* just cd to
> /usr/local/src/sage-6.3-i686-Linux/local/var/tmp/sage/build/pyzmq-2.1.11.p1
>
> and type 'make' or whatever is appropriate.
> Instead, the following commands setup all environment variables
> correctly and load a subshell for you to debug the error:
>   (cd
> '/usr/local/src/sage-6.3-i686-Linux/local/var/tmp/sage/build/pyzmq-2.1.11.p1'
>
> && '/usr/local/src/sage-6.3-i686-Linux/sage' --sh)
> When you are done debugging, you can type "exit" to leave the subshell.
> ************************************************************************
>
>
>
>
>
> --
> 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 http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to