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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -