discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] OSX configure error


From: Josef Vukovic
Subject: Re: [Discuss-gnuradio] OSX configure error
Date: Fri, 7 Aug 2009 11:01:46 +0200



2009/8/7 Colin Stagner <address@hidden>
Josef Vukovic wrote:
> Probably the error is in the PYTHONPATH variable,  I installed python
> 2.5 and in the environmentvariable is mentioned python2.3
>
> How can I fix this ?
Look in ~/.bashrc (if it exists) or ~/.bash_login. You can view these
files in TextEdit with:

$ open -e ~/.bash_login

or use the pico text editor from the command line:

$ pico -w ~/.bash_login

Don't despair: I'm running 10.4.11, and GNU Radio installs and works
just fine. If you're like me, you probably ended up with two builds of
Python on your system: Python 2.3 at /usr/bin/python, and MacPython 2.5
at /Library/Frameworks/Python.framework/Versions/Current/bin/python. I
compiled GNU radio for MacPython 2.5. What is the output of

$ which python

If it is
/Library/Frameworks/Python.framework/Versions/Current/bin/python, then
try running configure with the following options:

$ ./configure
--with-pythondir=/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages

We might be able to help you better if you include the last several
lines of ./configure's output verbatim.


_______________________________________________
Yes, please help me ......

Here are the last lines of output from runing ./configure:

checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... no
checking whether gfortran accepts -g... no
checking whether we are using the GNU Fortran 77 compiler... (cached) no
checking whether gfortran accepts -g... (cached) no
checking for python... /opt/local/bin/python
checking for python version... 2.5
checking for python platform... darwin
checking for python script directory... ${prefix}/lib/python2.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for Python include path... /opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
checking Python.h usability... no
checking Python.h presence... no
checking for Python.h... no
configure: error: cannot find usable Python headers
q6a61:~/gnuradio josefvukovic$ which
q6a61:~/gnuradio josefvukovic$ which python
/opt/local/bin/python
q6a61:~/gnuradio josefvukovic$

which python reports:

q6a61:~/gnuradio josefvukovic$ which python
/opt/local/bin/python
q6a61:~/gnuradio josefvukovic$ which python
/opt/local/bin/python
q6a61:~/gnuradio josefvukovic$

also I have looked on my .bashrc. It seems to be good :-)

export LANG=de_DE.ISO8859-1
PATH=$PATH:/usr/local/bin

export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
export MANPATH=/usr/local/share/man:/usr/share/man:/usr/X11R6/man
export INFOPATH=/usr/local/share/info:/usr/share/info
export LDFLAGS=

# for DARWINPORTS

if [ -x /opt/local/bin/port ]; then
    export LDFLAGS="-L/opt/local/lib ${LDFLAGS}"
    export PATH=/opt/local/bin:${PATH}
    export MANPATH=/opt/local/share/man:${MANPATH}
    export INFOPATH=/opt/local/share/info:${INFOPATH}
    export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:${PKG_CONFIG_PATH}
fi

# now setup PYTHON variables, depending on what's first in the $path

export PYTHON_VERSION=`python -V 2>&1 | sed -e 'address@hidden@ @2' | awk '{ print $2 }'`
export PYTHON_ROOT=`which python | sed -e 's@/bin/python@@g'`
export PYTHONPATH=${PYTHON_ROOT}/lib/python${PYTHON_VERSION}/site-packages
if [ ${PYTHON_ROOT} != "/usr/include" ]; then
    export PYTHONPATH=${PYTHONPATH}:/usr/local/lib/python${PYTHON_VERSION}/site-packages
fi

and finally printenv reports know:

q6a61:~/gnuradio josefvukovic$ printenv
LDFLAGS=-L/opt/local/lib
MANPATH=/opt/local/share/man:/usr/local/share/man:/usr/share/man:/usr/X11R6/man
TERM_PROGRAM=Apple_Terminal
TERM=xterm-color
SHELL=/bin/bash
TERM_PROGRAM_VERSION=133-1
OLDPWD=/Users/josefvukovic
USER=josefvukovic
__CF_USER_TEXT_ENCODING=0x1F5:0:0
PYTHON_VERSION=2.5
PATH=/opt/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin
PWD=/Users/josefvukovic/gnuradio
LANG=de_DE.ISO8859-1
SHLVL=1
HOME=/Users/josefvukovic
PYTHON_ROOT=/opt/local
PYTHONPATH=/opt/local/lib/python2.5/site-packages:/usr/local/lib/python2.5/site-packages
PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
INFOPATH=/opt/local/share/info:/usr/local/share/info:/usr/share/info
SECURITYSESSIONID=406700
_=/usr/bin/printenv
q6a61:~/gnuradio josefvukovic$

I don't know how to go further :-(

PS: Is a soundcard which has a maximum  sampling rate of 96kHz enough for hearing middlewave Broadcatingstations
       and Ham ssb emissions with gnuradio in combination with the right RF-frontend connectet to it?

cu
Josef Vukovic

reply via email to

[Prev in Thread] Current Thread [Next in Thread]