安装gcc-3.0时出现的问题
make: Leaving directory `/home/oracle/lz/gcc-3.0/i686-pc-linux-gnu/libjava'Making install in libltdl
make: Entering directory `/home/oracle/lz/gcc-3.0/i686-pc-linux-gnu/libjava/libltdl'
make: Entering directory `/home/oracle/lz/gcc-3.0/i686-pc-linux-gnu/libjava/libltdl'
/bin/sh ./../../mkinstalldirs /usr/local/lib
./../../mkinstalldirs: ./../../mkinstalldirs: No such file or directory
make: *** Error 127
make: Leaving directory `/home/oracle/lz/gcc-3.0/i686-pc-linux-gnu/libjava/libltdl'
make: *** Error 2
make: Leaving directory `/home/oracle/lz/gcc-3.0/i686-pc-linux-gnu/libjava/libltdl'
make: *** Error 1
make: Leaving directory `/home/oracle/lz/gcc-3.0/i686-pc-linux-gnu/libjava'
make: *** Error 2
有谁遇到过这样的情况,怎么解决呢? 看看你的/home/oracle/lz/gcc-3.0/i686-pc-linux-gnu/有没有mkinstalldirs脚本? 这个脚本是有的
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <[email protected]>
# Created: 1993-05-16
# Last modified: 1994-03-25
# Public domain
errstatus=0
for file in ${1+"$@"} ; do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d in ${1+"$@"} ; do
pathcomp="$pathcomp$d"
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp" 1>&2
mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$?
fi
if test ! -d "$pathcomp"; then
errstatus=$lasterr
fi
pathcomp="$pathcomp/"
done
done
exit $errstatus
# mkinstalldirs ends here 我把这个脚本拷贝到/home/oracle/lz/gcc-3.0/i686-pc-linux-gnu/这个目录下,安装完成了,但重新登陆进来运行gcc -v,显示的版本仍然是老的版本
gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-108.1)
这是为何?另外为什么mkinstalldirs这个脚本没有自动生成,而需要手工cp一份呢?
页:
[1]