its-pointless / gcc_termux

Gcc for termux with fortran scipy etc... Use apt for newest updates instructions in README.txt
463 stars 75 forks source link

install.packages("fs") fail in android(termux) #120

Closed manikaran1993 closed 3 years ago

manikaran1993 commented 3 years ago

Latest R ~ $ pkg list-all r-base Listing... Done r-base/termux,now 4.0.3-1 aarch64 [installed]

Latest libicu

~ $ pkg list-all libicu Listing... Done libicu/stable,now 68.2-1 aarch64 [installed]

I am still getting error:

The downloaded source packages are in ‘/data/data/com.termux/files/usr/tmp/RtmpY154DW/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done Warning message: In install.packages("fs") : installation of package ‘fs’ had non-zero exit status

its-pointless commented 3 years ago

Yeah i have to patch fs to get it to work. Its required for use in tidyverse. So there is a version of it in that package.

its-pointless commented 3 years ago

I will upload the patch i use.

manikaran1993 commented 3 years ago

Can you please update once its done. Thanks alot

manikaran1993 commented 3 years ago

Hey, Any update on this issue?

its-pointless commented 3 years ago

apply these patches to fs. https://github.com/its-pointless/gcc_termux/blob/master/R-patches/rcran-fs-Makevars.patch https://github.com/its-pointless/gcc_termux/blob/master/R-patches/rcran-fs-id.cc.patch

kurokirasama commented 2 years ago

apply these patches to fs. https://github.com/its-pointless/gcc_termux/blob/master/R-patches/rcran-fs-Makevars.patch https://github.com/its-pointless/gcc_termux/blob/master/R-patches/rcran-fs-id.cc.patch

Hi, I tried applying those patches, but I got errors:

git apply rcran-fs-Makevars.patch --verbose --ignore-whitespace

rcran-fs-Makevars.patch:5: trailing whitespace.
HOST := 
error: corrupt patch at line 29

and

git apply rcran-fs-id.cc.patch --verbose --ignore-whitespace

error: corrupt patch at line 11

Can you help please?