Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Services & Resources / Archive
-----
 /
MathReader
*Mathematica
*Network Mathematica
*webMathematica
*gridMathematica
*Personal Grid Edition
*Wolfram Workbench
*Wolfram Education Group
*Application Packages
*Mathematica for Students
*Mathematica CalcCenter
*Publicon
*A New Kind of Science Explorer
*Mathematical Explorer
*Mathematica Teacher's Edition
*Calculus WIZ
*Mathematica Player
*Ask about this page
*Print this page
*Email this page
*Give us feedback
*
Sign up for our newsletter:

Why am I unable to install MathReader on Debian Linux?

The MathReader installation script for Linux and some Unix systems, contains code for processing user input that indicates acceptance or declination of the end user license agreement.

The snippet of code responsible for retrieving the first character of the response may be found on line 117:

response=`echo $response | awk '{print substr ($0, 0, 1); }'`

There is a problem in the awk function substr(). The second argument is supposed to indicate the starting index of the substring. String indices in awk begin with 1, not 0.

This problem can be remedied by changing the second 0 in

response=`echo $response | awk '{print substr ($0, 0, 1); }'`

to a 1, as can be seen below:

response=`echo $response | awk '{print substr ($0, 1, 1); }'`

Download this FAQ as a Mathematica 5.2 Notebook






 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy