Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ntop compilation issue... old python??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
xtlosx
Apprentice
Apprentice


Joined: 14 Jan 2006
Posts: 219
Location: Chicago

PostPosted: Thu Feb 28, 2013 3:03 pm    Post subject: [SOLVED] ntop compilation issue... old python?? Reply with quote

I have a question guys.... I'm trying to compile a new version of ntop (5.x) because the ebuild is just terribly old and outdated... I'm having an issue when running the autogen.sh script with ntop source.... It's complaining about an old python version, but I can't seem to find what version it's complaining about.. I'm seeing Python 3.2.3 (default, Oct 17 2012, 04:00:23) and it's telling me I have 2.x..

Any idea what is going on? This is my autogen.sh output...

Code:
hecking for strtok_r... yes

Now, let's check for problems with what we've found...

   Testing Required libraries and headers**

checking for required C headers... ok
checking for crypt... ok
checking for dynamic load module... ok

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

   **Testing Optional libraries and headers**

checking for Multithreading... ok
checking for openSSL... ok
checking for zlib... ok
checking for python-config... python-config
checking Checking python version... Old python installed

Please install python 2.6 or newer.


Any idea how to resolve this?
_________________
Linux cebula 3.5.7-gentoo #3 SMP Fri Nov 9 15:26:37 CST 2012 i686 Genuine Intel(R) CPU 1300 @ 1.66GHz GenuineIntel GNU/Linux


Last edited by xtlosx on Thu Feb 28, 2013 5:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Advocate
Advocate


Joined: 07 Jun 2012
Posts: 2167

PostPosted: Thu Feb 28, 2013 5:21 pm    Post subject: Reply with quote

xtlosx ...

for an up-to-date install you would have two python slots dev-lang/python:2.7 and dev-lang/python:3.2 (you might also have dev-lang/python:3.1 but you should probably unmerge that) with 2.7 most probably set as the default eg:

Code:
# eselect python list
  [1]   python2.7 *
  [2]   python3.2

So, the > 2.6 requirement should be met. Perhaps in your case python3.2 is set as default and the ./configure sees this as being out of its scope when checking. I imagine this is probably whats happening. If this is the case you might switch to python2.7 and try again with the emerge.

I assume you know this ... but anyhow here is the method:

Code:
# eselect python set 1

HTH & best ... khay
Back to top
View user's profile Send private message
xtlosx
Apprentice
Apprentice


Joined: 14 Jan 2006
Posts: 219
Location: Chicago

PostPosted: Thu Feb 28, 2013 5:24 pm    Post subject: Reply with quote

khayyam wrote:
xtlosx ...

for an up-to-date install you would have two python slots dev-lang/python:2.7 and dev-lang/python:3.2 (you might also have dev-lang/python:3.1 but you should probably unmerge that) with 2.7 most probably set as the default eg:

Code:
# eselect python list
  [1]   python2.7 *
  [2]   python3.2

So, the > 2.6 requirement should be met. Perhaps in your case python3.2 is set as default and the ./configure sees this as being out of its scope when checking. I imagine this is probably whats happening. If this is the case you might switch to python2.7 and try again with the emerge.

I assume you know this ... but anyhow here is the method:

Code:
# eselect python set 1

HTH & best ... khay


Wow that was it... I thought of doing that but it just didn't make any sense to me, why a higher version wouldn't work... Thank you!
_________________
Linux cebula 3.5.7-gentoo #3 SMP Fri Nov 9 15:26:37 CST 2012 i686 Genuine Intel(R) CPU 1300 @ 1.66GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum