NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
On Sun, Aug 7, 2016 at 9:33 PM, Steve <beforewisdom@xxxxxxxxx> wrote: > > /usr/bin/ld: cannot find -lpython2.7 > collect2: error: ld returned 1 exit status > make[5]: *** [sfctime] Error 1 > > I made some adjustments such that when I echo my $LD_LIBRARY_PATH I get > this output from the terminal: > > Mint17QianaCinnamonBIOSF10$ echo $LD_LIBRARY_PATH > /lib64:/usr/lib64:/home/gempak/GEMPAK7/os/linux64/lib: > /usr/lib/python2.7/config-x86_64-linux-gnu > Mint17QianaCinnamonBIOSF10$ > > When I try compiling I keep getting many of the same error message > regardless. > > Does anyone have any ideas of what I might need to do to make that error > message go away? > Determine where the file libpython2.7.so is located ("find / -name libpython2.7.so") and ensure that the path is in $LD_LIBRARY_PATH. You'll need some other environmental variables set for the build as well, from the last section in Gemenviron.profile (or Gemenviron): this should get you there, or close: export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib64:/usr/lib64:${OS_LIB} export PYINC="-I/usr/include/python2.7" export PYLIB="-L/usr/lib64 -lpython2.7" export WITHPY="-DWITHPYTHON" export PYDEP="-lpthread -ldl -lutil" export PYTHONPATH="/usr/lib64/python2.7/site-packages:/usr/lib/python2.7/site-packages:${NAWIPS}/scripts/python" You have the option to not build against Python at all, simply remove the last block from Gemenviron.profile (below) and source the file again (. Gemenviron.profile) and run make. ## ## PYTHON for GEMPAK ## COMMAND=`rpm -q awips2-python` if [ $? -eq 0 ]; then # use AWIPS Python export PYHOME="/awips2/python" pv="`${PYHOME}/bin/python -V 2>&1 | cut -c8- | cut -d. -f1`" pr="`${PYHOME}/bin/python -V 2>&1 | cut -c8- | cut -d. -f2`" export PYTHONPATH="${PYHOME}/lib/python${pv}.${pr}/site-packages:${NAWIPS}/scripts/python" else # use system Python export PYHOME="/usr" pv="`${PYHOME}/bin/python -V 2>&1 | cut -c8- | cut -d. -f1`" pr="`${PYHOME}/bin/python -V 2>&1 | cut -c8- | cut -d. -f2`" if [[ ${pv}${pr} -lt 27 ]] ; then echo "python${pv}.${pr} is not supported for GEMPAK. Install python2.7+" return fi export PYTHONPATH="${PYHOME}/lib64/python${pv}.${pr}/site-packages:${PYHOME}/lib/python${pv}.${pr}/site-packages:${NAWIPS}/scripts/python" MACHTEST=${MACHTYPE:=`uname -m`} IS64=`echo $MACHTEST | grep -c "_64"` if [ ${IS64} -gt 0 ] ; then ARCH="64" fi fi # this is needed for the build, and not required at runtime export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib${ARCH}:/usr/lib${ARCH}:${OS_LIB} export PYINC="-I${PYHOME}/include/python${pv}.${pr}" export PYLIB="-L${PYHOME}/lib${ARCH} -lpython${pv}.${pr}" export WITHPY="-DWITHPYTHON" export PYDEP="-lpthread -ldl -lutil"
gembud
archives: