its-pointless / gcc_termux

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

compiling R: libgomp-10 gcc-10 not found #145

Closed kurokirasama closed 2 years ago

kurokirasama commented 2 years ago

Hello, I'm trying to install R 4.2.0 in termux. After searching around, I got to here. I'm trying to follow the instructions, but the libraries libgomp-10 gcc-10 are not available.

A pkg search tells me that are only available: libgomp-7 y 8, gcc 6-8.

I did follow all steps till here.

EDIT: I still tried to do it with what I had but I got this error:

No Fortran compiler found

EDIT2: I installed lfortran and now I'm getting this error:

configure: error: cannot compile a simple Fortran program

in the log, this is the error:

configure:8499: gfortran -c -g  conftest.f >&5
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/libexec/gcc/aarch64-linux-android/8.3.0/f951": library "libz.so.1" not found: needed by main executable

I checked and zlib is installed and libz.so.1 is in $PREFIX/lib

kurokirasama commented 2 years ago

export LD_LIBRARY_PATH=$PREFIX/lib fixed it.

leechaowen commented 2 years ago

i meet such issue before. need install gcc-8 not gcc-10. run below command.

pkg install   libgomp-8 gcc-8 libgfortran5

termux-setupgcc-8

termux-setupclang-gfort-8
kurokirasama commented 2 years ago

yeah, I forgot to mention that when I closed the issue...