I have a jailbroken (evasi0n) 4th generation iPad, with iOS 6.1.2 firmware.
Following this tutorial, I've tried to install R on the iPad.
I've added this repository in Cydia
http://leafmoon.users.sourceforge.net/cydia/./
and I've installed R the statistical language package.
Installation completes successfully, without any problem.
But when in Mobile Terminal I type:
R
I get
Illegal instruction: 4
I'm quite sure the problem is the same type of the one explained here, that is the package does not provide ARMv7s support.
Clearly, R can be installed manually, but I don't know how this can be done in this specific case.
Following documentation cited above, I read the build dependencies that have to be installed for R are:
gettext, pcre, readline, png, tiff, x11
and
com.ech0chrome.libbz2, com.ech0chrome.libjpeg, com.ech0chrome.xzutils, com.ech0chrome.libgfortran, com.ech0chrome.iphone-gccplus
I think the Illegal instruction: 4 error is due to (at least) one of these last .deb files, that has to be re-compiled for ARMv7s. But unfortunately my knowledge for this issue ends here: that's why I'm asking your help.
How can I re-compile this .deb files?
Are there other solutions in order to install R on iOS devices with Apple A6/A6X Chip?
P.S.
1) I've GNU C Compiler correctly installed on iPad.
2) I'm an iOS developer, so I've XCode (v. 4.5) installed on my machine.
3) In my iPhone 4S (iOS 5.1.1) R is working properly.
Thanks for any help.
If you have gnu sed in iOS, you should patch R 2.x (after installation in A6/A6X CPU such as iPhone 5 / iPad 4 and also A7 CPU such as iPhone 5s / iPad Air / iPad Mini Retina) as below
sed -i'' 's/\x00\x30\x93\xe4/\x00\x30\x93\xe5/g;s/\x00\x30\xd3\xe4/\x00\x30\xd3\xe5/g;' /usr/local/lib/R/bin/exec/R
R 3.0.2 package is now here http://code.google.com/p/apiexplorer/downloads/detail?name=RPackage.tgz