[yt-users] Syntax error in install_script.sh
Aldo Alberto Batta Marquez
abatta at astro.unam.mx
Fri Oct 10 15:26:52 PDT 2014
Hi all,
I'm not yet in the mailing list but I was trying to install yt yesterday
and got this message during installation:
Installing yt
install_script.sh: line 992: syntax error near unexpected token `fi'
install_script.sh: line 992: ` fi'
I looked at the install_script.sh and found there was a missing "then" in
the script. I'll send the details in case you need to change the
install_script.
The problem is corrected by adding a then at line 990 replacing:
============================================================
if !( ( ${DEST_DIR}/bin/python2.7 -c "import readline" 2>&1 )>> ${LOG_FILE})
then
if !( ( ${DEST_DIR}/bin/python2.7 -c "import gnureadline" 2>&1 )>>
${LOG_FILE})
echo "Installing pure-python readline"
( ${DEST_DIR}/bin/pip install gnureadline 2>&1 ) 1>> ${LOG_FILE}
fi
fi
============================================================
with:
============================================================
if !( ( ${DEST_DIR}/bin/python2.7 -c "import readline" 2>&1 )>> ${LOG_FILE})
then
if !( ( ${DEST_DIR}/bin/python2.7 -c "import gnureadline" 2>&1 )>>
${LOG_FILE})
then
echo "Installing pure-python readline"
( ${DEST_DIR}/bin/pip install gnureadline 2>&1 ) 1>> ${LOG_FILE}
fi
fi
============================================================
Bests
Aldo Batta
--
Aldo Alberto Batta Márquez
Instituto de Astronomia
Universidad Nacional Autonoma de Mexico (UNAM)
http://www.astroscu.unam.mx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20141010/b580d56b/attachment.htm>
More information about the yt-users
mailing list