小编Ale*_*eev的帖子

使用 7-Zip 从存档中提取特定文件

我运行 Linux Live CD,我需要从位于磁盘驱动器上的 wim-archive 中提取特定文件。我知道存档中文件的完整路径:

xubuntu@xubuntu:~$ 7z l winRE.wim | grep -i bootrec.exe
2009-08-28 15:02:29 ....A       299008       134388  Windows/System32/BootRec.exe
Run Code Online (Sandbox Code Playgroud)

我的磁盘空间不足,无法解压整个存档。

如何从存档中提取该特定文件?

我尝试了该-i选项,但这不起作用:

xubuntu@xubuntu:~$ 7z x -i Windows/System32/BootRec.exe winRE.wim 


Error:
Incorrect command line
Run Code Online (Sandbox Code Playgroud)

linux 7z files p7zip

8
推荐指数
1
解决办法
6960
查看次数

在 FreeBSD 中启用对 AddressSanitizer 的支持

问题本质上是如何在 FreeBSD 中编译使用 AddressSanitizer 的程序。

我使用 FreeBSD 10.0(64 位)。我正在尝试使用-fsanitize=address标志编译以下代码:

int main() {
  return 0;
}
Run Code Online (Sandbox Code Playgroud)

当我用clangas编译时clang -fsanitize=address file.c,我收到以下错误消息:

/tmp/t-tEh7oh.o: In function `main`:
file.c:(.text+0xc4): undefined reference to `__asan_report_store4`
/tmp/t-tEh7oh.o: In function `asan.module_ctor`:
file.c:(.text+0x119): undefined reference to `__asan_init_v3`
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

当我用gcc48as编译时gcc48 -fsanitize=address file.c,我收到以下错误消息:

/usr/local/bin/ld: cannot find -lasan
collect2: error: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)

在我的 GNU/Linux 系统中,我libasan.*在文件系统的某处有文件。但我无法找到那些在FreeBSD中-无论是在/usr/ports …

freebsd gcc

6
推荐指数
1
解决办法
1504
查看次数

标签 统计

7z ×1

files ×1

freebsd ×1

gcc ×1

linux ×1

p7zip ×1