:관련 게시물을 확인한 후에도 루트 권한없이 GCC 4.7을 Linux에 설치할 수 없습니까? 게시물을 확인한 후
는Install gcc on linux with no root privilege
https://stackoverflow.com/questions/9316118/installing-gcc-as-non-root
내 문제가 여전히 해결되지 않는 난 여기를 게시 할 수 있습니다.
gcc 버전 4.1.2 20080704 (Red Hat 4.1.2-52)로 Linux에 GCC 4.7을 설치하려고합니다.
prefix를 사용하여 configure를 실행하여 홈 디렉토리로 사용합니다.
./configure \
--with-gmp=/remote/home/gcc_4_7_2012_5_28/gmp505 \
--with-mpfr=/remote/home/gcc_4_7_2012_5_28/mpfr242 \
--with-mpc=/remote/home/gcc_4_7_2012_5_28/mpc081 \
--disable-libjava
그런 다음 확인하십시오. 하지만 확인이 안된다. 오류가 발생했다.
make[1]: Entering directory `/remote/home/gcc_4_7_2012_5_28/trunk'
make[2]: Entering directory `/remote/gcc_4_7_2012_5_28/trunk/host-x86_64-unknown-linux-gnu/fixincludes'
autogen -T ../.././fixincludes/check.tpl ../.././fixincludes/inclhack.def
make[2]: execvp: autogen: Permission denied
make install is not ok.
make[1]: Entering directory `/remote/home/gcc_4_7_2012_5_28/trunk'
/bin/sh ./mkinstalldirs /usr/local /usr/local
make[2]: Entering directory `/remote/home/gcc_4_7_2012_5_28/trunk/host-x86_64-unknown-linux-gnu/fixincludes'
rm -rf /usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/install-tools
/bin/sh ../.././fixincludes/../mkinstalldirs /usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/install-tools
mkdir -p -- /usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/install-tools
mkdir: cannot create directory `/usr/local/libexec/gcc': Permission denied
루트 권한을 얻을 수 없다.
도움을 주시면 감사하겠습니다.
감사합니다.
구성을 실행할 때'--prefix' 인수가없는 것 같습니다. – nos