+ -
当前位置:首页 → 问答吧 → 编译vpnc没通过[已解决 感谢zhllg]

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

时间:2007-09-02

来源:互联网

学校无线网络要用vpn认证
错误提示信息
代码:
kcfv yangke # emerge vpnc
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

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

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

!!! Incorrect kernel configuration options
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! 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
代码:
yangke@kcfv ~ $ emerge --info
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)
=================================================================
System uname: 2.6.20-suspend2-r6 i686 AMD Turion(tm) 64 Mobile Technology ML-30
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 01 Sep 2007 11:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61
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
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.23b
virtual/os-headers: 2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
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"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

yangke@kcfv ~ $

作者: 杨珂   发布时间: 2007-09-02

直接.config 里找 到CONFIG_TUN没? 选中也不行?

作者: limon   发布时间: 2007-09-02

Universal TUN/TAP device driver support
search the above option in "make menuconfig"
know how to search? type "/"

作者: zhllg   发布时间: 2007-09-02

修改.config后,还需要进行
代码:
# make prepare && make modules_prepare

作者: orphen   发布时间: 2007-09-02

呵呵,我是在用vbox网络时候用到这个选项的,没想到还挺好用……

作者: jjj311   发布时间: 2007-09-02

qemu也需要,所以我的内核配置里一直留着这个

作者: zhllg   发布时间: 2007-09-02