It is currently Tue Sep 29, 2020 9:20 am


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [SOLVED] Alpha 5 server (compilation terminated)
PostPosted: Tue May 27, 2014 5:55 pm 
Offline

Joined: Sun Apr 20, 2014 7:55 pm
Posts: 5
Hello

Getting error when installing the Alpha 5 server.

Seems to be a problem with PIP i think have followed the link below; on Debain Jessie
http://pip.readthedocs.org/en/latest/installing.html


Any ideas?

gets as far as this when running : python3 setup.py install

Processing pyzmq-14.3.0.zip
Writing /tmp/easy_install-p_u4_z/pyzmq-14.3.0/setup.cfg
Running pyzmq-14.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-p_u4_z/pyzmq-14.3.0/egg-dist-tmp-36y8vc
no previously-included directories found matching 'docs/build'
no previously-included directories found matching 'docs/gh-pages'
warning: no previously-included files found matching 'bundled/zeromq/src/Makefile*'
warning: no previously-included files found matching 'bundled/zeromq/src/platform.hpp'
warning: no previously-included files found matching 'zmq/libzmq*'
warning: no previously-included files matching '.deps/*' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '.mailmap' found anywhere in distribution
warning: no previously-included files matching 'Makefile.am' found anywhere in distribution
warning: no previously-included files matching 'Makefile.in' found anywhere in distribution
pkg-config not found
build/temp.linux-i686-3.3/scratch/check_sys_un.c: In function ‘main’:
build/temp.linux-i686-3.3/scratch/check_sys_un.c:6:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘unsigned int’ [-Wformat=]
printf("%lu\n", sizeof(dummy->sun_path) - 1);
^
************************************************
Configure: Autodetecting ZMQ settings...
Custom ZMQ dir:
build/temp.linux-i686-3.3/scratch/tmp/easy_install-p_u4_z/pyzmq-14.3.0/temp/timer_createg2rm00.o: In function `main':
timer_createg2rm00.c:(.text+0x7): undefined reference to `timer_create'
collect2: error: ld returned 1 exit status
build/temp.linux-i686-3.3/scratch/vers.c:4:17: fatal error: zmq.h: No such file or directory
#include "zmq.h"
^
compilation terminated.

error: command 'i486-linux-gnu-gcc' failed with exit status 1

Failed with default libzmq, trying again with /usr/local
************************************************
Configure: Autodetecting ZMQ settings...
Custom ZMQ dir: /usr/local
Assembler messages:
Fatal error: can't create build/temp.linux-i686-3.3/scratch/tmp/easy_install-p_u4_z/pyzmq-14.3.0/temp/timer_create59khq0.o: No such file or directory
build/temp.linux-i686-3.3/scratch/vers.c:4:17: fatal error: zmq.h: No such file or directory
#include "zmq.h"
^
compilation terminated.

error: command 'i486-linux-gnu-gcc' failed with exit status 1

************************************************
Warning: Failed to build or run libzmq detection test.

If you expected pyzmq to link against an installed libzmq, please check to make sure:

* You have a C compiler installed
* A development version of Python is installed (including headers)
* A development version of ZMQ >= 2.1.4 is installed (including headers)
* 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`

You can skip all this detection/waiting nonsense if you know
you want pyzmq to bundle libzmq as an extension by passing:

`--zmq=bundled`

I will now try to build libzmq as a Python extension
unless you interrupt me (^C) in the next 10 seconds...

1...
************************************************
Using bundled libzmq
already have bundled/zeromq
attempting ./configure to generate platform.hpp
Warning: failed to configure libzmq:
b'/bin/sh: 1: ./configure: not found\n'
staging platform.hpp from: /tmp/easy_install-p_u4_z/pyzmq-14.3.0/buildutils/include_linux
************************************************
checking for timer_create
build/temp.linux-i686-3.3/tmp/easy_install-p_u4_z/pyzmq-14.3.0/temp/timer_createz4yogh.o: In function `main':
timer_createz4yogh.c:(.text+0x7): undefined reference to `timer_create'
collect2: error: ld returned 1 exit status
no timer_create, linking librt
************************************************
Using bundled libsodium
already have bundled/libsodium
staging /tmp/easy_install-p_u4_z/pyzmq-14.3.0/buildutils/include_sodium/crypto_stream_salsa20.h to bundled/libsodium/src/libsodium/include/sodium/crypto_stream_salsa20.h
staging /tmp/easy_install-p_u4_z/pyzmq-14.3.0/buildutils/include_sodium/version.h to bundled/libsodium/src/libsodium/include/sodium/version.h
staging /tmp/easy_install-p_u4_z/pyzmq-14.3.0/buildutils/include_sodium/crypto_scalarmult_curve25519.h to bundled/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h
************************************************
buildutils/initlibsodium.c:10:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: Setup script exited with error: command 'i486-linux-gnu-gcc' failed with exit status 1
[email protected]:~/Downloads/gns3-server-1.0-alpha5#


Processing pyzmq-14.3.0.zip
Writing /tmp/easy_install-p_u4_z/pyzmq-14.3.0/setup.cfg
Running pyzmq-14.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-p_u4_z/pyzmq-14.3.0/egg-dist-tmp-36y8vc
no previously-included directories found matching 'docs/build'
no previously-included directories found matching 'docs/gh-pages'
warning: no previously-included files found matching 'bundled/zeromq/src/Makefile*'
warning: no previously-included files found matching 'bundled/zeromq/src/platform.hpp'
warning: no previously-included files found matching 'zmq/libzmq*'
warning: no previously-included files matching '.deps/*' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '.mailmap' found anywhere in distribution
warning: no previously-included files matching 'Makefile.am' found anywhere in distribution
warning: no previously-included files matching 'Makefile.in' found anywhere in distribution
pkg-config not found
build/temp.linux-i686-3.3/scratch/check_sys_un.c: In function ‘main’:
build/temp.linux-i686-3.3/scratch/check_sys_un.c:6:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘unsigned int’ [-Wformat=]
printf("%lu\n", sizeof(dummy->sun_path) - 1);
^
************************************************
Configure: Autodetecting ZMQ settings...
Custom ZMQ dir:
build/temp.linux-i686-3.3/scratch/tmp/easy_install-p_u4_z/pyzmq-14.3.0/temp/timer_createg2rm00.o: In function `main':
timer_createg2rm00.c:(.text+0x7): undefined reference to `timer_create'
collect2: error: ld returned 1 exit status
build/temp.linux-i686-3.3/scratch/vers.c:4:17: fatal error: zmq.h: No such file or directory
#include "zmq.h"
^
compilation terminated.

error: command 'i486-linux-gnu-gcc' failed with exit status 1

Failed with default libzmq, trying again with /usr/local
************************************************
Configure: Autodetecting ZMQ settings...
Custom ZMQ dir: /usr/local
Assembler messages:
Fatal error: can't create build/temp.linux-i686-3.3/scratch/tmp/easy_install-p_u4_z/pyzmq-14.3.0/temp/timer_create59khq0.o: No such file or directory
build/temp.linux-i686-3.3/scratch/vers.c:4:17: fatal error: zmq.h: No such file or directory
#include "zmq.h"
^
compilation terminated.

error: command 'i486-linux-gnu-gcc' failed with exit status 1

************************************************
Warning: Failed to build or run libzmq detection test.

If you expected pyzmq to link against an installed libzmq, please check to make sure:

* You have a C compiler installed
* A development version of Python is installed (including headers)
* A development version of ZMQ >= 2.1.4 is installed (including headers)
* 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`

You can skip all this detection/waiting nonsense if you know
you want pyzmq to bundle libzmq as an extension by passing:

`--zmq=bundled`

I will now try to build libzmq as a Python extension
unless you interrupt me (^C) in the next 10 seconds...

1...
************************************************
Using bundled libzmq
already have bundled/zeromq
attempting ./configure to generate platform.hpp
Warning: failed to configure libzmq:
b'/bin/sh: 1: ./configure: not found\n'
staging platform.hpp from: /tmp/easy_install-p_u4_z/pyzmq-14.3.0/buildutils/include_linux
************************************************
checking for timer_create
build/temp.linux-i686-3.3/tmp/easy_install-p_u4_z/pyzmq-14.3.0/temp/timer_createz4yogh.o: In function `main':
timer_createz4yogh.c:(.text+0x7): undefined reference to `timer_create'
collect2: error: ld returned 1 exit status
no timer_create, linking librt
************************************************
Using bundled libsodium
already have bundled/libsodium
staging /tmp/easy_install-p_u4_z/pyzmq-14.3.0/buildutils/include_sodium/crypto_stream_salsa20.h to bundled/libsodium/src/libsodium/include/sodium/crypto_stream_salsa20.h
staging /tmp/easy_install-p_u4_z/pyzmq-14.3.0/buildutils/include_sodium/version.h to bundled/libsodium/src/libsodium/include/sodium/version.h
staging /tmp/easy_install-p_u4_z/pyzmq-14.3.0/buildutils/include_sodium/crypto_scalarmult_curve25519.h to bundled/libsodium/src/libsodium/include/sodium/crypto_scalarmult_curve25519.h
************************************************
buildutils/initlibsodium.c:10:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: Setup script exited with error: command 'i486-linux-gnu-gcc' failed with exit status 1
[email protected]:~/Downloads/gns3-server-1.0-alpha5#


PIP3 Install seems unable to download files...
---------------------------------------------------------------------
[email protected]:~/Downloads/gns3-server-1.0-alpha5# apt-get install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libexpat1-dev libpython3-dev libpython3.3-dev python3-dev python3.3-dev
The following NEW packages will be installed:
libexpat1-dev libpython3-dev libpython3.3-dev python3-dev python3-pip python3.3-dev
0 upgraded, 6 newly installed, 0 to remove and 14 not upgraded.
Need to get 248 kB/26.4 MB of archives.
After this operation, 38.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] yes
WARNING: The following packages cannot be authenticated!
libexpat1-dev libpython3.3-dev libpython3-dev python3.3-dev python3-dev python3-pip
Install these packages without verification? [y/N] yes
Err http://ftp.uk.debian.org/debian/ jessie/main python3-pip all 1.4.1-2
404 Not Found [IP: 83.142.228.128 80]
E: Failed to fetch http://ftp.uk.debian.org/debian/pool/ma ... -2_all.deb 404 Not Found [IP: 83.142.228.128 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

thanks




Top
 Profile  
 
 Post subject: Re: Alpha 5 server (compilation terminated)
PostPosted: Tue May 27, 2014 7:51 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
If my memory servers me right... all you need to do is to upgrade the installed version of python3-zmq

Run:
Code:
apt-get install python3-zmq


This happens because the version of zmq that gns3-server requires was recently bumped... and a version >= 14 only entered Jessie (testing) on 10/04/2014
(http://packages.qa.debian.org/p/pyzmq.html)

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: Alpha 5 server (compilation terminated)
PostPosted: Wed May 28, 2014 9:30 am 
Offline

Joined: Sun Apr 20, 2014 7:55 pm
Posts: 5
Thanks; It was due to the package manger not having the latest refresh.




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO