자습서 http://www.tellurian.com.au/whitepapers/multiplegcc.php에 따라 gcc 4.7.0을 우분투 10.04에 설치하려고합니다. 종속성을 설치 한 후 오류없이 make를 실행할 수 있었지만 마지막 단계 인 make install이 성공하기를 원하지 않는다면 결국 거부 된 권한으로 끝납니다.gcc를 설치하려고 할 때 권한이 거부되었습니다.
는 여기에 내가했던 일이야 :
../gcc-4.7.0/configure --prefix=/usr/local/gcc/4.7.7 --enable-languages=c,c++
make
su -l
cd /groups/gobj
make install
마지막 명령에 대한 결과 : 이미 스와 루트, su를 시도했습니다
make[1]: Entering directory `/groups/gobj'
/bin/bash ../gcc-4.7.0/mkinstalldirs /usr/local/gcc/4.7.7 /usr/local/gcc/4.7.7
make[2]: Entering directory `/groups/gobj/fixincludes'
rm -rf /usr/local/gcc/4.7.7/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/install-tools
/bin/bash ../../gcc-4.7.0/fixincludes/../mkinstalldirs /usr/local/gcc/4.7.7/libexec
...
rm -f /usr/local/gcc/4.7.7/share/info/gccinstall.info
if [ -f doc/gccinstall.info ]; then \
for f in doc/gccinstall.info*; do \
realfile=`echo $f | sed -e 's|.*/\([^/]*\)$|\1|'`; \
/usr/bin/install -c -m 644 $f /usr/local/gcc/4.7.7/share/info/$realfile; \
chmod a-x /usr/local/gcc/4.7.7/share/info/$realfile; \
done; \
else true; fi
if /bin/bash -c 'install-info --version' >/dev/null 2>&1; then \
if [ -f /usr/local/gcc/4.7.7/share/info/gccinstall.info ]; then \
install-info --dir-file=/usr/local/gcc/4.7.7/share/info/dir /usr/local/gcc/4.7.7/share/info/gccinstall.info; \
else true; fi; \
else true; fi;
build/genhooks -d \
../../gcc-4.7.0/gcc/doc/tm.texi.in > tmp-tm.texi
/bin/bash: tmp-tm.texi: Permission denied
make[2]: *** [s-tm-texi] Error 1
make[2]: Leaving directory `/groups/gobj/gcc'
make[1]: *** [install-gcc] Error 2
make[1]: Leaving directory `/groups/gobj'
make: *** [install] Error 2
- succes에없이, 스와. 일부 파일은 효과적으로 /usr/local/gcc/4.7.0에 복사되지만 프로세스가 중지되고 루트로 로그인 할 때 그 이유를 알 수 없습니다. 내가 확인한 파일 /groups/gcc-4.7.0/gcc/doc/tm.texi.in이있다. 어떤 도움이 필요합니까?
'/ groups/gcc-4.7.0/gcc/doc/tmp-tm.texi' 또는'/ groups/gcc-4.7.0/gcc/doc /'의 권한은 무엇입니까? –
/groups/gcc-4.7.0/gcc/doc/tmp-tm.texi는 존재하지 않으며 /groups/gcc-4.7.0/gcc/doc/ : drwxr-xr-x 3 명의 사용자 laurencew users 10240 2012-03 -22 09:30 doc – Ote
/groups의 서브 디렉토리에 설치했지만,/usr/local에있는 설치로 어떤 일이 벌어지고 있는지 알고 싶습니다. – Ote