LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1168|回复: 5

编译vpnc没通过[已解决 感谢zhllg]

[复制链接]
发表于 2007-9-1 22:41:58 | 显示全部楼层 |阅读模式
学校无线网络要用vpn认证
错误提示信息

  1. kcfv yangke # emerge vpnc
  2. Calculating dependencies... done!
  3. >>> Verifying ebuild Manifests...

  4. >>> Emerging (1 of 1) net-misc/vpnc-0.4.0-r3 to /
  5. * vpnc-0.4.0.tar.gz RMD160 ;-) ...                                       [ ok ]
  6. * vpnc-0.4.0.tar.gz SHA1 ;-) ...                                         [ ok ]
  7. * vpnc-0.4.0.tar.gz SHA256 ;-) ...                                       [ ok ]
  8. * vpnc-0.4.0.tar.gz size ;-) ...                                         [ ok ]
  9. * checking ebuild checksums ;-) ...                                      [ ok ]
  10. * checking auxfile checksums ;-) ...                                     [ ok ]
  11. * checking miscfile checksums ;-) ...                                    [ ok ]
  12. * checking vpnc-0.4.0.tar.gz ;-) ...                                     [ ok ]
  13. * Determining the location of the kernel source code
  14. * Found kernel source directory:
  15. *     /usr/src/linux
  16. * Found kernel object directory:
  17. *     /lib/modules/2.6.20-suspend2-r6/build
  18. * Found sources for kernel version:
  19. *     2.6.20-suspend2-r6
  20. * Checking for suitable kernel configuration options...
  21. *   CONFIG_TUN:         is not set when it should be.
  22. * Please check to make sure these options are set correctly.
  23. * Failure to do so may cause unexpected problems.
  24. * Once you have satisfied these options, please try merging
  25. * this package again.

  26. !!! ERROR: net-misc/vpnc-0.4.0-r3 failed.
  27. Call stack:
  28.   ebuild.sh, line 1654:   Called dyn_setup
  29.   ebuild.sh, line 714:   Called qa_call 'pkg_setup'
  30.   ebuild.sh, line 44:   Called pkg_setup
  31.   vpnc-0.4.0-r3.ebuild, line 21:   Called check_extra_config
  32.   linux-info.eclass, line 471:   Called die

  33. !!! Incorrect kernel configuration options
  34. !!! If you need support, post the topmost build error, and the call stack if relevant.
  35. !!! A complete build log is located at '/var/tmp/portage/net-misc/vpnc-0.4.0-r3/temp/build.log'.
复制代码


我把config文件save该后再load 但编译后问题如故
不知道该修改哪个文件 内核编译这块没有细看 请大家指点


emerge --info
  1. yangke@kcfv ~ $ emerge --info
  2. Portage 2.1.2.12 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.20-suspend2-r6 i686)
  3. =================================================================
  4. System uname: 2.6.20-suspend2-r6 i686 AMD Turion(tm) 64 Mobile Technology ML-30
  5. Gentoo Base System release 1.12.9
  6. Timestamp of tree: Sat, 01 Sep 2007 11:20:01 +0000
  7. ccache version 2.4 [enabled]
  8. app-shells/bash:     3.2_p17
  9. dev-java/java-config: 1.3.7, 2.0.33-r1
  10. dev-lang/python:     2.4.4-r4
  11. dev-python/pycrypto: 2.0.1-r6
  12. dev-util/ccache:     2.4-r7
  13. sys-apps/baselayout: 1.12.9-r2
  14. sys-apps/sandbox:    1.2.17
  15. sys-devel/autoconf:  2.13, 2.61
  16. sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
  17. sys-devel/binutils:  2.17
  18. sys-devel/gcc-config: 1.3.16
  19. sys-devel/libtool:   1.5.23b
  20. virtual/os-headers:  2.6.21
  21. ACCEPT_KEYWORDS="x86"
  22. CBUILD="i686-pc-linux-gnu"
  23. CFLAGS="-march=athlon64 -msse3 -O2 -pipe -fomit-frame-pointer"
  24. CHOST="i686-pc-linux-gnu"
  25. CONFIG_PROTECT="/etc /usr/share/X11/xkb"
  26. CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
  27. CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe -fomit-frame-pointer"
  28. DISTDIR="/usr/portage/distfiles"
  29. FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
  30. GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
  31. LANG="en_US.UTF-8"
  32. LDFLAGS="-Wl,-O1"
  33. MAKEOPTS="-j2"
  34. PKGDIR="/usr/portage/packages"
  35. PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
  36. PORTAGE_TMPDIR="/var/tmp"
  37. PORTDIR="/usr/portage"
  38. SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
  39. USE="3dnow 7zip X a52 aac aalib accessibility ace acl acpi alsa apm asf avahi avi berkdb bitmap-fonts cairo cdparanoia cdr cjk clamav cli cpudetection cracklib crypt cups dbus divx dri dvd dvdr dvdread eds emacs emboss encode esd evo fam ffmpeg firefox flac fortran gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv ieee1394 isdnlog jabber java jpeg kerberos ldap mad midi mikmod mmx mp3 mp4 mpeg mplayer msn mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcmcia pcre pdf perl png pppd python qq qt3support quicktime rar readline real reflection rpm samba sdl session spell spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode usb vorbis wifi win32codecs wma x264 x86 xine xml xorg xv xvid zlib" ALSA_CARDS="IXP SB400" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx radeon"
  40. Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

  41. yangke@kcfv ~ $
复制代码
发表于 2007-9-1 22:57:43 | 显示全部楼层
直接.config 里找 到CONFIG_TUN没? 选中也不行?
回复 支持 反对

使用道具 举报

发表于 2007-9-1 23:01:44 | 显示全部楼层
Universal TUN/TAP device driver support
search the above option in "make menuconfig"
know how to search? type "/"
回复 支持 反对

使用道具 举报

发表于 2007-9-1 23:06:58 | 显示全部楼层
修改.config后,还需要进行
  1. # make prepare && make modules_prepare
复制代码
回复 支持 反对

使用道具 举报

发表于 2007-9-2 08:37:11 | 显示全部楼层
呵呵,我是在用vbox网络时候用到这个选项的,没想到还挺好用……
回复 支持 反对

使用道具 举报

发表于 2007-9-2 13:28:06 | 显示全部楼层
qemu也需要,所以我的内核配置里一直留着这个
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表