FREEBSD:make install未知修饰符'u'变量ALL_OPTIONS是递归的

时间:2012-09-24 11:14:21

标签: makefile freebsd

我正在寻找一种方法来删除我得到的make错误消息。如果有任何合适的解决方案,请告诉我。我的uname -a返回以下内容:

FreeBSD SM2-BSD 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:18:52 UTC 2008     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

更新:我的make命令在我的旧linux机器上运行,该机器与我的新机器配置相同,运行FreeBSD 6.3。我没有收到任何错误。我尝试将这个make文件复制到我的新机器上,但它仍然会出现同样的错误。

我刚刚完成了portsnap update,每当我尝试在任何ports包中进行make install时都会遇到错误。我收到以下错误

make install
Unknown modifier 'u'

Variable ALL_OPTIONS is recursive.

我已尝试删除/ usr / ports / Mk和/ usr / ports / lang / tcl84并按http://forums.freebsd.org/showthread.php?t=32376中的建议再次执行portsnap fetch,但我再次收到同样的错误。

我还尝试从我的其他机器上复制一个正在运行的make二进制文件并将其粘贴到/ user / bin / make到我的新机器中但是没有用。

我甚至尝试通过在解压文件夹中运行以下命令来下载Make文件并从http://ftp.gnu.org/gnu/make/make-3.82.tar.gz安装它们:

./configure
make
make check
make install
make distclean

这是我在运行上述命令时得到的输出:

[root@SM2-BSD ~/stuff/make-3.82]# ./configure >> logfile
config.status: WARNING:  'po/Makefile.in.in' seems to ignore the --datarootdir setting
[root@SM2-BSD ~/stuff/make-3.82]# make >> logfile
In file included from glob.c:1377:
glob.c: In function `glob_in_dir':
glob.c:199: warning: passing arg 1 of `my_realloc' from incompatible pointer type
In file included from glob.c:812:
glob.c: In function `glob':
glob.c:199: warning: passing arg 1 of `my_realloc' from incompatible pointer type
In file included from glob.c:931:
glob.c:199: warning: passing arg 1 of `my_realloc' from incompatible pointer type
In file included from glob.c:987:
glob.c:199: warning: passing arg 1 of `my_realloc' from incompatible pointer type
[root@SM2-BSD ~/stuff/make-3.82]# make install >> logfile

我的日志文件是:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for ar... ar
checking for perl... perl
checking build system type... i386-unknown-freebsd6.3
checking host system type... i386-unknown-freebsd6.3
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for strerror in -lcposix... no
checking whether NLS is requested... yes
checking for msgfmt... /usr/local/bin/msgfmt
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... /usr/local/bin/xgettext
checking for msgmerge... /usr/local/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... yes
checking how to link with libiconv... /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking for GNU gettext in libc... no
checking for iconv... yes
checking how to link with libiconv... /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... /usr/local/lib/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for library containing getpwnam... none required
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether stat file-mode macros are broken... no
checking whether time.h and sys/time.h may both be included... yes
checking for stdlib.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for unistd.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking whether gcc and cc understand -c and -o together... yes
checking for an ANSI C-conforming const... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking for uintmax_t... yes
checking for nanoseconds field of struct stat.st_mtim... no
checking whether to use high resolution file timestamps... no
checking whether system uses MSDOS-style paths... no
checking for standard gettimeofday... yes
checking for strdup... yes
checking for strndup... no
checking for mkstemp... yes
checking for mktemp... yes
checking for fdopen... yes
checking for fileno... yes
checking for dup2... yes
checking for getcwd... yes
checking for realpath... yes
checking for sigsetmask... yes
checking for sigaction... yes
checking for getgroups... yes
checking for seteuid... yes
checking for setegid... yes
checking for setlinebuf... yes
checking for setreuid... yes
checking for setregid... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking for setvbuf... yes
checking for pipe... yes
checking for strerror... yes
checking for strsignal... yes
checking for lstat... yes
checking for readlink... yes
checking for atexit... yes
checking whether bsd_signal is declared... no
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strcmpi... no
checking for strncmpi... no
checking for stricmp... no
checking for strnicmp... no
checking for working strcoll... yes
checking for working alloca.h... no
checking for alloca... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for vprintf... yes
checking for _doprnt... no
checking whether closedir returns void... no
checking for getloadavg... yes
checking for pstat_getdynamic... no
checking for kstat_open in -lkstat... no
checking for getloadavg... yes
checking whether getloadavg requires setgid... no
checking whether sys_siglist is declared... yes
checking whether _sys_siglist is declared... no
checking whether __sys_siglist is declared... no
checking for sys/wait.h... yes
checking for waitpid... yes
checking for wait3... yes
checking for union wait... no
checking for SA_RESTART... yes
checking for location of SCCS get command... get
checking if system libc has GNU glob... no; using local copy
checking if malloc debugging is wanted... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating glob/Makefile
config.status: creating po/Makefile.in
config.status: creating config/Makefile
config.status: creating doc/Makefile
config.status: creating w32/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: creating build.sh
make  all-recursive
Making all in glob
gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/local/include  -g -O2 -MT glob.o -MD -MP -MF .deps/glob.Tpo -c -o glob.o glob.c
mv -f .deps/glob.Tpo .deps/glob.Po
gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/local/include  -g -O2 -MT fnmatch.o -MD -MP -MF .deps/fnmatch.Tpo -c -o fnmatch.o fnmatch.c
mv -f .deps/fnmatch.Tpo .deps/fnmatch.Po
rm -f libglob.a
ar cru libglob.a glob.o fnmatch.o 
ranlib libglob.a
Making all in config
Making all in po
Making all in doc
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT ar.o -MD -MP -MF .deps/ar.Tpo -c -o ar.o ar.c
mv -f .deps/ar.Tpo .deps/ar.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT arscan.o -MD -MP -MF .deps/arscan.Tpo -c -o arscan.o arscan.c
mv -f .deps/arscan.Tpo .deps/arscan.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT commands.o -MD -MP -MF .deps/commands.Tpo -c -o commands.o commands.c
mv -f .deps/commands.Tpo .deps/commands.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT default.o -MD -MP -MF .deps/default.Tpo -c -o default.o default.c
mv -f .deps/default.Tpo .deps/default.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT dir.o -MD -MP -MF .deps/dir.Tpo -c -o dir.o dir.c
mv -f .deps/dir.Tpo .deps/dir.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT expand.o -MD -MP -MF .deps/expand.Tpo -c -o expand.o expand.c
mv -f .deps/expand.Tpo .deps/expand.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT file.o -MD -MP -MF .deps/file.Tpo -c -o file.o file.c
mv -f .deps/file.Tpo .deps/file.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT function.o -MD -MP -MF .deps/function.Tpo -c -o function.o function.c
mv -f .deps/function.Tpo .deps/function.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT getopt.o -MD -MP -MF .deps/getopt.Tpo -c -o getopt.o getopt.c
mv -f .deps/getopt.Tpo .deps/getopt.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT getopt1.o -MD -MP -MF .deps/getopt1.Tpo -c -o getopt1.o getopt1.c
mv -f .deps/getopt1.Tpo .deps/getopt1.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT implicit.o -MD -MP -MF .deps/implicit.Tpo -c -o implicit.o implicit.c
mv -f .deps/implicit.Tpo .deps/implicit.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT job.o -MD -MP -MF .deps/job.Tpo -c -o job.o job.c
mv -f .deps/job.Tpo .deps/job.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT misc.o -MD -MP -MF .deps/misc.Tpo -c -o misc.o misc.c
mv -f .deps/misc.Tpo .deps/misc.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT read.o -MD -MP -MF .deps/read.Tpo -c -o read.o read.c
mv -f .deps/read.Tpo .deps/read.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT remake.o -MD -MP -MF .deps/remake.Tpo -c -o remake.o remake.c
mv -f .deps/remake.Tpo .deps/remake.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT remote-stub.o -MD -MP -MF .deps/remote-stub.Tpo -c -o remote-stub.o remote-stub.c
mv -f .deps/remote-stub.Tpo .deps/remote-stub.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT rule.o -MD -MP -MF .deps/rule.Tpo -c -o rule.o rule.c
mv -f .deps/rule.Tpo .deps/rule.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT signame.o -MD -MP -MF .deps/signame.Tpo -c -o signame.o signame.c
mv -f .deps/signame.Tpo .deps/signame.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT strcache.o -MD -MP -MF .deps/strcache.Tpo -c -o strcache.o strcache.c
mv -f .deps/strcache.Tpo .deps/strcache.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT variable.o -MD -MP -MF .deps/variable.Tpo -c -o variable.o variable.c
mv -f .deps/variable.Tpo .deps/variable.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT version.o -MD -MP -MF .deps/version.Tpo -c -o version.o version.c
mv -f .deps/version.Tpo .deps/version.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT vpath.o -MD -MP -MF .deps/vpath.Tpo -c -o vpath.o vpath.c
mv -f .deps/vpath.Tpo .deps/vpath.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I.  -I./glob   -I/usr/local/include  -g -O2 -MT hash.o -MD -MP -MF .deps/hash.Tpo -c -o hash.o hash.c
mv -f .deps/hash.Tpo .deps/hash.Po
gcc  -g -O2   -o make ar.o arscan.o commands.o  default.o dir.o expand.o  file.o function.o getopt.o  getopt1.o implicit.o job.o  main.o misc.o read.o remake.o  remote-stub.o rule.o signame.o  strcache.o variable.o version.o  vpath.o hash.o glob/libglob.a  /usr/local/li
b/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib   
Making install in glob
Making install in config
Making install in po
/bin/sh ../config/mkinstalldirs /usr/local/share
installing be.gmo as /usr/local/share/locale/be/LC_MESSAGES/make.mo
installing da.gmo as /usr/local/share/locale/da/LC_MESSAGES/make.mo
installing de.gmo as /usr/local/share/locale/de/LC_MESSAGES/make.mo
installing es.gmo as /usr/local/share/locale/es/LC_MESSAGES/make.mo
installing fi.gmo as /usr/local/share/locale/fi/LC_MESSAGES/make.mo
installing fr.gmo as /usr/local/share/locale/fr/LC_MESSAGES/make.mo
installing ga.gmo as /usr/local/share/locale/ga/LC_MESSAGES/make.mo
installing gl.gmo as /usr/local/share/locale/gl/LC_MESSAGES/make.mo
installing he.gmo as /usr/local/share/locale/he/LC_MESSAGES/make.mo
installing hr.gmo as /usr/local/share/locale/hr/LC_MESSAGES/make.mo
installing id.gmo as /usr/local/share/locale/id/LC_MESSAGES/make.mo
installing it.gmo as /usr/local/share/locale/it/LC_MESSAGES/make.mo
installing ja.gmo as /usr/local/share/locale/ja/LC_MESSAGES/make.mo
installing ko.gmo as /usr/local/share/locale/ko/LC_MESSAGES/make.mo
installing lt.gmo as /usr/local/share/locale/lt/LC_MESSAGES/make.mo
installing nl.gmo as /usr/local/share/locale/nl/LC_MESSAGES/make.mo
installing pl.gmo as /usr/local/share/locale/pl/LC_MESSAGES/make.mo
installing pt_BR.gmo as /usr/local/share/locale/pt_BR/LC_MESSAGES/make.mo
installing ru.gmo as /usr/local/share/locale/ru/LC_MESSAGES/make.mo
installing sv.gmo as /usr/local/share/locale/sv/LC_MESSAGES/make.mo
installing tr.gmo as /usr/local/share/locale/tr/LC_MESSAGES/make.mo
installing uk.gmo as /usr/local/share/locale/uk/LC_MESSAGES/make.mo
installing vi.gmo as /usr/local/share/locale/vi/LC_MESSAGES/make.mo
installing zh_CN.gmo as /usr/local/share/locale/zh_CN/LC_MESSAGES/make.mo
if test "make" = "gettext-tools"; then  /bin/sh ../config/mkinstalldirs /usr/local/share/gettext/po;  for file in Makefile.in.in remove-potcdate.sin  quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot   Makevars.template; do  /usr/bin/i
nstall -c -m 644 ./$file  /usr/local/share/gettext/po/$file;  done;  for file in Makevars; do  rm -f /usr/local/share/gettext/po/$file;  done;  else  : ;  fi
Making install in doc
test -z "/usr/local/share/info" || ../config/install-sh -c -d "/usr/local/share/info"
 /usr/bin/install -c -m 644 ./make.info ./make.info-1 ./make.info-2 '/usr/local/share/info'
 install-info --info-dir='/usr/local/share/info' '/usr/local/share/info/make.info'
test -z "/usr/local/bin" || config/install-sh -c -d "/usr/local/bin"
  /usr/bin/install -c make '/usr/local/bin'
test -z "/usr/local/share/man/man1" || config/install-sh -c -d "/usr/local/share/man/man1"
 /usr/bin/install -c -m 644 make.1 '/usr/local/share/man/man1'

5 个答案:

答案 0 :(得分:4)

在我看来,您当前的portstree与古老的FreeBSD 6.3中使用的make不兼容。您最好的选择是升级到FreeBSD 8或9,即当前支持的STABLE分支之一。

答案 1 :(得分:3)

通过互联网进行一些研究后,我可以找到问题的解决方案。尽管对问题的解释不是很明确,但它确实有助于解决问题。

只有在执行portsnap更新后,错误才会出现在FreeBSD 6.3中。建议您运行以下命令来检查哪些端口需要降级。

要找出那个使用

make -V ALL_OPTIONS

它将为您提供所有端口,通常会有此端口 / usr / ports / Mk 需要降级。

此文件夹只包含一些bsd。*。mk文件

现在要解决此问题,您需要获取旧的ports文件夹并将其替换为当前的Mk。夹。您可以通过从其他正常运行或尚未运行portsnap update的其他FreeBSD 6.3计算机上复制它来实现这一点。

更新:您还可以从 http://cinto.in/Mk.tar

下载正常工作的Mk文件夹

将旧的Mk文件夹替换为 / usr / ports / Mk 文件夹后,您的make将开始正常运行。

现在您可以转到任何端口文件夹并运行make install,它将根据需要运行。

答案 2 :(得分:2)

替换 / usr / ports / Mk 对我不起作用

最好的方法是运行“sysinstall”

#sysinstall 

然后再次向你的freebsd添加端口。(安装FreeBSD的配置 - >分发 - >端口)

从FTP站点安装

ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/amd64/6.3-RELEASE/

:)

答案 3 :(得分:1)

@ChooChu和@Jens的amswer是正确的,你有一个旧的和不受支持的FreeBSD版本,你可以更新端口树,新的端口树与你当前的旧版本不兼容。

如果你仍然想要使用这个旧的稳定版本,我的想法是你可以将端口树降级到相应的版本,你可以从FreeBSD归档站点下载端口树(这个url仅在此评论的时候有效)已发布,如果没有,您应该为您的6.3版本google" freebsd archive") http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/6.3-RELEASE/ports/

将两个文件下载到非usr目录(不在" / usr"下): install.sh ports.tgz

然后切换到root并执行以下cmds:

su
sh ./install.sh

答案 4 :(得分:0)

如果不能选择升级到支持的FreeBSD Release,则有一个解决方案:

  

编辑文件/usr/ports/Mk/bsd.options.mk(以及,如果需要,/ usr / ports / Mk /中的其他文件)从文件中删除所有“:u”(区分大小写,不含引号) 。 “

它对我有用。