On 2014-09-04, Anthony Savagar <asava...@gmail.com> wrote: > 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 This looks like an old spkg. sudo sage -i pyzmq
this should get the latest version. Having said this, I also get the same error, more or less: /sage -i pyzmq Found local metadata for pyzmq-14.3.0 Attempting to download package pyzmq-14.3.0 >>> Trying to download >>> http://www.sagemath.org/packages/upstream/pyzmq/pyzmq-14.3.0.tar.gz [............................................................] Checksum: 85ea779755374e3f0188b5cabfc8b7143562f912 vs 85ea779755374e3f0188b5cabfc8b7143562f912 pyzmq-14.3.0 ==================================================== Setting up build directory for pyzmq-14.3.0 Finished set up **************************************************** Host system: Linux nash 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux **************************************************** C compiler: gcc C compiler version: Using built-in specs. COLLECT_GCC=/home/dima/sage/sage-6.3.beta7/local/bin/gcc COLLECT_LTO_WRAPPER=/home/dima/sage/sage-6.3.beta7/local/libexec/gcc/x86_64-unknown-linux-gnu/4.7.3/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../src/configure --prefix=/home/dima/sage/sage-6.3.beta7/local --with-local-prefix=/home/dima/sage/sage-6.3.beta7/local --with-gmp=/home/dima/sage/sage-6.3.beta7/local --with-mpfr=/home/dima/sage/sage-6.3.beta7/local --with-mpc=/home/dima/sage/sage-6.3.beta7/local --with-system-zlib --disable-multilib --disable-nls Thread model: posix gcc version 4.7.3 (GCC) **************************************************** running configure gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/dima/sage/sage-6.3.beta7/local/include -c build/temp.linux-x86_64-2.7/scratch/check_sys_un.c -o build/temp.linux-x86_64-2.7/scratch/check_sys_un.o gcc build/temp.linux-x86_64-2.7/scratch/check_sys_un.o -L/home/dima/sage/sage-6.3.beta7/local/lib -Wl,-R/home/dima/sage/sage-6.3.beta7/local/lib -o build/temp.linux-x86_64-2.7/scratch/check_sys_un Configure: Autodetecting ZMQ settings... Custom ZMQ dir: /home/dima/sage/sage-6.3.beta7/local ************************************************ creating build/temp.linux-x86_64-2.7/scratch/tmp cc -c /tmp/timer_creategWRiH6.c -o build/temp.linux-x86_64-2.7/scratch/tmp/timer_creategWRiH6.o cc build/temp.linux-x86_64-2.7/scratch/tmp/timer_creategWRiH6.o -o build/temp.linux-x86_64-2.7/scratch/a.out build/temp.linux-x86_64-2.7/scratch/tmp/timer_creategWRiH6.o: In function `main': timer_creategWRiH6.c:(.text+0x15): undefined reference to `timer_create' collect2: error: ld returned 1 exit status gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/dima/sage/sage-6.3.beta7/local/include -Izmq/utils -Izmq/backend/cython -Izmq/devices -c build/temp.linux-x86_64-2.7/scratch/vers.c -o build/temp.linux-x86_64-2.7/scratch/vers.o build/temp.linux-x86_64-2.7/scratch/vers.c:4:17: fatal error: zmq.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1 Can you instead try > [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.