linux - How can I obtain a newer GCC? I don't have root, and can't compile it (memory error) -
i have shared account on machine running older version of gcc. not have root. when try compile gcc, build process gets killed due memory usage following command:
build/genattrtab ../../../work/gcc-6.1.0/gcc/common.md ../../../work/gcc-6.1.0/gcc/config/i386/i386.md insn-conditions.md \ -atmp-attrtab.c -dtmp-dfatab.c -ltmp-latencytab.c
i'd able compile software on machine requires newer gcc. suggestions appreciated.
you can manually unpack 1 of gcc packages major distribution, try use package closely matches distribution. these installable packages tar files meta data , install script. can unpack them , extract binaries you'll need. keep in mind might need more gcc package. distributions chop devtools tons of small packages ( gcc, g++, binutils, gdb)
another source use pre-build gcc toolchain used embedded vendors, these vendors include host version of gcc cross-compiler. example android ndk 1 of such distributions.
finally, can compile gcc on machine not restrictive , copy resulting binaries restrictive machine. in case of first approach of unpacking installable package, try find machine resembles restrictive machine close possible. can use tools vagrant , docker set-up close replica of target machine. vagrant , docker have lot of pre-built templates can use jump start create machine need.
Comments
Post a Comment