Hi everyone, I have been looking into the problem with installing gnuradio on Fedora Core (FC) x86_64, and just wanted to summarize what I found. For reference this mail is based on previous discussions in: http://lists.gnu.org/archive/html/discuss-gnuradio/2006-07/msg00117.html and http://lists.gnu.org/archive/html/discuss-gnuradio/2006-11/msg00042.html
1. On a x86_64, FC installs arch-independent libraries into $PREFIX/lib/python2.4/site-packages, and arch-depended into $PREFIX/lib64/python2.4/site-packages, which is silly, because python does not support this. It has already been discussed on the python-dev mailing list (http://mail.python.org/pipermail/python-dev/2006-March/062462.html), but no solution has been found. There is also a bugreport in FC bugzilla (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=185948). The problem relates back to pythons module loading algorithm. 2. As mentioned earlier, the install path for python scripts are obtained from this automake macro: /usr/share/aclocal-1.9/python.m4. I copied the macro to the config directory in gnuradio, modified it to use the arch dependent path for both scripts and extension modules. This way both the scripts and the modules are installed in $PREFIX/lib64 on x86_64. A patch for the aclocal file is included in this mail. Hope someone might find this useful. -- Trond Danielsen
--- /usr/share/aclocal-1.9/python.m4 2006-07-12 09:00:28.000000000 +0200 +++ python.m4 2006-11-06 16:05:55.000000000 +0100 @@ -117,7 +117,7 @@ dnl doesn't work. AC_CACHE_CHECK([for $am_display_PYTHON script directory], [am_cv_python_pythondir], - [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null || + [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_PREFIX')" 2>/dev/null || echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`]) AC_SUBST([pythondir], [$am_cv_python_pythondir])
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio