[yt-users] Syntax error in install_script.sh

Nathan Goldbaum nathan12343 at gmail.com
Sun Oct 12 10:07:16 PDT 2014


Hi Aldo,

Thanks for the report.

This was fixed on the dev branch a few days ago, but we didn't backport it
to the stable branch. I've gone ahead and done that now so that others
won't have to deal with this until we do our next scheduled bugfix release.

-Nathan

On Fri, Oct 10, 2014 at 3:26 PM, Aldo Alberto Batta Marquez <
abatta at astro.unam.mx> wrote:

> 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
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20141012/df1aa100/attachment.htm>


More information about the yt-users mailing list