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
Questions or comments? Send email to support@wolfram.com.
|