AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-195112

Eric's questions

Martin Hope
Eric
Asked: 2015-11-10 10:40:33 +0800 CST

yum“事务检查错误”指向不存在的文件

  • 1

我正在尝试安装 boost148 软件包。这是与我已安装的 boost 不同的包,版本为 1.41。

yum install boost
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Package boost-1.41.0-18.el6.x86_64 already installed and latest version
Nothing to do

但是当我尝试使用安装 Boost148 时,yum install boost148 -y我收到以下信息

Transaction Check Error:
  file /usr/lib64/libboost_chrono-mt.so.1.48.0 from install of boost148-chrono-1.48.0-7.el6.x86_64 conflicts with file from package boost-chrono-1.48.0-14.el6.x86_64
  file /usr/lib64/libboost_chrono.so.1.48.0 from install of boost148-chrono-1.48.0-7.el6.x86_64 conflicts with file from package boost-chrono-1.48.0-14.el6.x86_64
  file /usr/lib64/libboost_date_time-mt.so.1.48.0 from install of boost148-date-time-1.48.0-7.el6.x86_64 conflicts with file from package boost-date-time-1.48.0-14.el6.x86_64
  file /usr/lib64/libboost_date_time.so.1.48.0 from install of boost148-date-time-1.48.0-7.el6.x86_64 conflicts with file from package boost-date-time-1.48.0-14.el6.x86_64

所以我检查了boost148是否部分安装

yum list installed | grep boost148

什么都没有出现。

此外,如果我尝试 ls 事务检查错误中的任何文件,它们都不存在。

# ls /usr/lib64/libboost_chrono-mt.so.1.48.0
ls: cannot access /usr/lib64/libboost_chrono-mt.so.1.48.0: No such file or directory

我认为这是某种类型的 yum 数据库问题,所以我做了 ayum-complete-transaction和 ayum clean all但我仍然无法安装 boost145 软件包。关于如何说服 yum 继续安装的任何想法?

评论中要求的信息

@孟加拉

$yum repolist all Loaded plugins: refresh-packagekit, security repo id repo name status adobe-linux-i386 Adobe Systems Incorporated enabled: 2 elrepo ELRepo.org Community Enterprise Linux Reposi enabled: 304 elrepo-extras ELRepo.org Community Enterprise Linux Extras disabled elrepo-kernel ELRepo.org Community Enterprise Linux Kernel disabled elrepo-testing ELRepo.org Community Enterprise Linux Testin disabled epel Extra Packages for Enterprise Linux 6 - x86_ enabled: 11,750 epel-debuginfo Extra Packages for Enterprise Linux 6 - x86_ disabled epel-source Extra Packages for Enterprise Linux 6 - x86_ disabled epel-testing Extra Packages for Enterprise Linux 6 - Test disabled epel-testing-debuginfo Extra Packages for Enterprise Linux 6 - Test disabled epel-testing-source Extra Packages for Enterprise Linux 6 - Test disabled rpmforge RHEL 6.5 - RPMforge.net - dag enabled: 4,718 rpmforge-extras RHEL 6.5 - RPMforge.net - extras disabled rpmforge-testing RHEL 6.5 - RPMforge.net - testing disabled sl Scientific Linux 6.5 - x86_64 enabled: 6,524 sl-debuginfo Scientific Linux Debuginfo enabled: 10,255 sl-fastbugs Scientific Linux 6.5 - x86_64 - fastbug upda enabled: 1,016 sl-security Scientific Linux 6.5 - x86_64 - security upd enabled: 2,377 sl-source Scientific Linux 6.5 - Source disabled sl-testing Scientific Linux Testing - x86_64 disabled sl-testing-source Scientific Linux Testing - Source disabled repolist: 36,946

@迈克尔汉普顿

rpm -qi boost-chrono
Name        : boost-chrono                 Relocations: (not relocatable)
Version     : 1.48.0                            Vendor: (none)
Release     : 14.el6                        Build Date: Mon 03 Jun 2013 04:20:53 AM EDT
Install Date: Fri 06 Nov 2015 03:09:26 PM EST      Build Host: localhost
Group       : System Environment/Libraries   Source RPM: boost-1.48.0-14.el6.src.rpm
Size        : 628796                           License: Boost and MIT and Python
Signature   : RSA/SHA1, Mon 03 Jun 2013 05:01:38 AM EDT, Key ID fcc2e6fe304dba4d
Packager    : .sroycode
URL         : http://www.boost.org
Summary     : Run-Time component of boost chrono library
Description :

Run-Time support for Boost.Chrono, a set of useful time utilities.
yum
  • 1 个回答
  • 4934 Views
Martin Hope
Eric
Asked: 2015-10-23 08:32:06 +0800 CST

如何获取有关不会执行的二进制文件的信息?

  • 10

当我运行名为“myfile”的用户应用程序之一时。

$ ./myfile

我收到以下输出

bash: ./myfile: cannot execute binary file

我的用户希望二进制文件能够运行。我认为这是一个编译错误,但无法确认。我运行了文件命令

$ file myfile
myfile: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped

我的 RHEL6 操作系统是 64 位的

$ uname -p -o
x86_64 GNU/Linux

所以在我看来,它是为正确的架构而设计的。我不明白文件命令输出中的“可重定位”是什么意思,也无法从手册页中得到解释。

为了更好地衡量,我检查了共享库依赖项

$ ldd myfile 
not a dynamic executable

有什么方法可以让这个文件运行,或者给我的用户一些关于它为什么不能运行的建设性信息(比如他需要使用 x 重新编译)?

追踪

$ strace ./myfile
execve("./myfile", ["./myfile"], [/* 22 vars */]) = -1 ENOEXEC (Exec format error)
dup(2)                                  = 3
fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7a9fc93000
lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: Exec format error\n", 32strace: exec: Exec format error
) = 32
close(3)                                = 0
munmap(0x7f7a9fc93000, 4096)            = 0
exit_group(1)                           = ?

自述输出

readelf -S ./myfile    There are 13 section headers, starting at offset 0x1e8:

Section Headers:
  [Nr] Name              Type             Address           Offset
       Size              EntSize          Flags  Link  Info  Align
  [ 0]                   NULL             0000000000000000  00000000
       0000000000000000  0000000000000000           0     0     0
  [ 1] .text             PROGBITS         0000000000000000  00000040
       0000000000000098  0000000000000000  AX       0     0     4
  [ 2] .rela.text        RELA             0000000000000000  000006e0
       0000000000000120  0000000000000018          11     1     8
  [ 3] .data             PROGBITS         0000000000000000  000000d8
       0000000000000010  0000000000000000  WA       0     0     4
  [ 4] .bss              NOBITS           0000000000000000  000000e8
       0000000000000000  0000000000000000  WA       0     0     4
  [ 5] .rodata           PROGBITS         0000000000000000  000000e8
       0000000000000033  0000000000000000   A       0     0     1
  [ 6] .comment          PROGBITS         0000000000000000  0000011b
       000000000000002d  0000000000000001  MS       0     0     1
  [ 7] .note.GNU-stack   PROGBITS         0000000000000000  00000148
       0000000000000000  0000000000000000           0     0     1
  [ 8] .eh_frame         PROGBITS         0000000000000000  00000148
       0000000000000038  0000000000000000   A       0     0     8
  [ 9] .rela.eh_frame    RELA             0000000000000000  00000800
       0000000000000018  0000000000000018          11     8     8
  [10] .shstrtab         STRTAB           0000000000000000  00000180
       0000000000000061  0000000000000000           0     0     1
  [11] .symtab           SYMTAB           0000000000000000  00000528
       0000000000000180  0000000000000018          12     9     8
  [12] .strtab           STRTAB           0000000000000000  000006a8
       0000000000000037  0000000000000000           0     0     1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings)
  I (info), L (link order), G (group), x (unknown)
  O (extra OS processing required) o (OS specific), p (processor specific)
linux
  • 1 个回答
  • 40478 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve