首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Gentoo上安装忍者有问题

在Gentoo上安装忍者有问题
EN

Unix & Linux用户
提问于 2018-04-26 19:48:24
回答 1查看 1K关注 0票数 1

我正在尝试安装忍者(作为YouCompleteMe的先决条件),我得到了错误。这是我的=dev-util/ninja-1.8.2::gentoo的总结

代码语言:javascript
复制
    Portage 2.3.31 (python 3.5.5-final-0, default/linux/amd64/17.0/no-multilib/prefix/kernel-2.6.32+, gcc-7.3.0, glibc-2.25-r11, 2.6.32-504.16.2.el6.x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.32-504.16.2.el6.x86_64-x86_64-Intel-R-_Xeon-R-_CPU_E5-2630_v3_@_2.40GHz-with-centos-6.6-Final
KiB Mem:   132052796 total,  24015248 free
KiB Swap:    8388604 total,    935832 free
Timestamp of repository gentoo: Thu, 19 Apr 2018 06:00:01 +0000
Head commit of repository gentoo: 9cc1a3f648766c962e7a465020db4820b6ba6e01
sh bash 4.4_p19
ld GNU ld (Gentoo 2.30 p1) 2.30.0
app-shells/bash:          4.4_p19::gentoo
dev-lang/perl:            5.26.1-r2::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r1::gentoo
sys-devel/gcc:            7.3.0-r1::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r11::gentoo
Repositories:

gentoo
    location: /home/******/gentoo/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/sandbox.d /etc/terminfo /home/*****/gentoo/etc/gentoo-release"
CXXFLAGS="-O2 -pipe -O2 -pipe"
DISTDIR="/home/******/gentoo/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/home/*****/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/******/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/home/******/gentoo/var/tmp"
USE="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pcre prefix readline seccomp ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, ENV_UNSET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

下面是vim-app/youcompleteme的输出:

代码语言:javascript
复制
 * IMPORTANT: 11 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


 * IMPORTANT: 3 config files in '/home/******/gentoo/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
Calculating dependencies... done!

>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-libs/libomp-6.0.0
 * Determining the location of the kernel source code
 * Unable to find kernel sources at /usr/src/linux
 * Please make sure that /usr/src/linux points at your running kernel, 
 * (or the kernel you wish to build against).
 * Alternatively, set the KERNEL_DIR environment variable to the kernel sources location
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * Found kernel object directory:
 *     /usr/src/kernels/2.6.32-504.16.2.el6.x86_64
 * Found sources for kernel version:
 *     2.6.32-504.16.2.el6.x86_64
>>> Running pre-merge checks for sys-libs/compiler-rt-6.0.0
>>> Running pre-merge checks for sys-libs/compiler-rt-sanitizers-6.0.0

>>> Emerging (1 of 15) dev-util/ninja-1.8.2::gentoo
 * ninja-1.8.2.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking ninja-1.8.2.tar.gz to /home/******/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/work
>>> Source unpacked in /home/*******/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/work
>>> Preparing source in /home/******/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/work/ninja-1.8.2 ...
>>> Source prepared.
>>> Configuring source in /home/*****/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/work/ninja-1.8.2 ...
>>> Source configured.
>>> Compiling source in /home/******/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/work/ninja-1.8.2 ...
bootstrapping ninja...
"./src/inline.sh" kBrowsePy < ./src/browse.py > build/browse_py.h
x86_64-pc-linux-gnu-g++ -MMD -MT build/browse.o -MF build/browse.o.d -g -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility=hidden -pipe '-DNINJA_PYTHON="python3.5"' -O2 -DNDEBUG -fdiagnostics-color -DUSE_PPOLL -DNINJA_HAVE_BROWSE -I. -O2 -pipe -O2 -pipe -c ./src/browse.cc -o build/browse.o
re2c: /home/******/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by re2c)
re2c: /home/*******/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by re2c)
Traceback (most recent call last):
  File "configure.py", line 466, in 
    if has_re2c():
  File "configure.py", line 463, in has_re2c
    return int(proc.communicate()[0], 10) >= 1103
ValueError: invalid literal for int() with base 10: b''
 * ERROR: dev-util/ninja-1.8.2::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 2139:  Called die
 * The specific snippet of code:
 *       run_for_build "${PYTHON}" configure.py --bootstrap --verbose || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-util/ninja-1.8.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/ninja-1.8.2::gentoo'`.
 * The complete build log is located at '/home/******/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/temp/build.log'.
 * The ebuild environment file is located at '/home/******/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/temp/environment'.
 * Working directory: '/home/******/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/work/ninja-1.8.2'
 * S: '/home/******/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/work/ninja-1.8.2'

>>> Failed to emerge dev-util/ninja-1.8.2, Log file:

>>>  '/home/*******/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/temp/build.log'

 * Messages for package sys-libs/libomp-6.0.0:

 * Unable to find kernel sources at /usr/src/linux
 * Unable to calculate Linux Kernel version for build, attempting to use running version

 * Messages for package dev-util/ninja-1.8.2:

 * ERROR: dev-util/ninja-1.8.2::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 2139:  Called die
 * The specific snippet of code:
 *       run_for_build "${PYTHON}" configure.py --bootstrap --verbose || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-util/ninja-1.8.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/ninja-1.8.2::gentoo'`.
 * The complete build log is located at '/home/********/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/temp/build.log'.
 * The ebuild environment file is located at '/home/******/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/temp/environment'.
 * Working directory: '/home/*******/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/work/ninja-1.8.2'
 * S: '/home/*******/gentoo/var/tmp/portage/dev-util/ninja-1.8.2/work/ninja-1.8.2'

UPDATE 2:我的GCC:[1] x86_64-pc-linux-gnu-7.3.0 *版本

EN

回答 1

Unix & Linux用户

发布于 2018-06-13 06:56:15

观测1

为什么要将迁移树存储在主目录中??别担心,在写完观察2之后,我明白了原因。看到这让我很害怕。默认位置应该是:/usr/portage。该位置在创建本地覆盖(usr/local/portage将本地树与同步树区分开来)(即带有自定义版本号的包,或主迁移树中不存在的包)时有所帮助。人们普遍认为,Gentoo系统上的树和/或覆盖是系统组件,因此应该位于系统目录中。端口特性由驻留在/etc/portage中的文件控制。见Gentoo Por蒂奇Wiki。您的主目录应该用于您下载或创建的内容。这在系统和用户之间创建了一个边界。That边界是任何*NIX系统的基础。

观测2

虽然您的GCC编译器目前不稳定,但这并不是问题的原因。见Gentoo软件包- sys-devel/gcc。问题是/glibc的版本。波蒂奇相信你有2.25-r11版本,但是你的主机系统(因此也是观察1的原因。我相信你的安装在运行另一个linux版本或发行版的系统中)包含并链接到3.4.20版本。波蒂奇从主机收集链接信息,因为它认为您的主机系统是它自己安装的系统,作为一个正在运行的系统。请参阅意见1。

单个主机上的多个glibc库。简而言之,你有几个选择:

  1. 使用问题I链接中描述的方法1将端口指向正确的环境变量,或
  2. 从您的主目录中删除您的安装,遵循手册(arch是无关的),省略设置引导加载器一章,同时完成安装。始终使用chroot命令输入环境。在chroot中创建一个用户,并在每次输入chroot时使用su userTip:创建/home/username/mnt/gentoo

然后使用Gentoo手册:着色中概述的Chrooting过程,将chroot指向/home/username/mnt/gentoo。在色度之后,观测到1's边界。这将欺骗portage,使人相信它是安装在它自己的主机上的,因为它尊重chroot环境。

  1. 使用这个脚本:安装与现有系统并行的GNU libc版本,可以简化选项1,但是如果您与其他用户共享主机,我会建议您不要这样做,因为如果您将--prefix选项设置为主目录中的某个位置,然后与其他用户共享程序,它将不会运行。
票数 2
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/440269

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档