|
|
本帖最后由 liuzhaoyzz 于 2021-6-3 06:45 编辑
wget https://wimlib.net/downloads/wimlib-1.13.4.tar.gz
tar -xf wimlib-1.13.4.tar.gz
cd wimlib-1.13.4/
sudo apt install pkg-config libxml2-dev ntfs-3g-dev libfuse-dev
./configure
make
Ubuntu 20.10里面,前面都没问题,到了 ./configure出错了,这个需要什么依赖包?我不懂。
ubuntu@ubuntu:~/wimlib-1.13.4$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking whether make supports nested variables... (cached) no
checking whether make supports the include directive... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
checking for clang... no
configure: error: in `/home/ubuntu/wimlib-1.13.4':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ubuntu@ubuntu:~/wimlib-1.13.4$ make
Command 'make' not found, but can be installed with:
sudo apt install make
然后我瞎折腾了一番:需要gawk?
ubuntu@ubuntu:~/wimlib-1.13.4$ sudo apt install gawk
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会同时安装下列软件:
libsigsegv2
建议安装:
gawk-doc
下列【新】软件包将被安装:
gawk libsigsegv2
升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 431 kB 的归档。
解压缩后会消耗 1,756 kB 的额外空间。
您希望继续执行吗? [Y/n] y
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会同时安装下列软件:
libsigsegv2
建议安装:
gawk-doc
下列【新】软件包将被安装:
gawk libsigsegv2
升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 431 kB 的归档。
解压缩后会消耗 1,756 kB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://archive.ubuntu.com/ubuntu groovy/main amd64 libsigsegv2 amd64 2.12-2build1 [13.9 kB]
获取:2 http://archive.ubuntu.com/ubuntu groovy/main amd64 gawk amd64 1:5.0.1+dfsg-1 [418 kB]
已下载 431 kB,耗时 4秒 (113 kB/s)
正在选中未选择的软件包 libsigsegv2:amd64。
(正在读取数据库 ... 系统当前共安装有 196869 个文件和目录。)
准备解压 .../libsigsegv2_2.12-2build1_amd64.deb ...
正在解压 libsigsegv2:amd64 (2.12-2build1) ...
正在设置 libsigsegv2:amd64 (2.12-2build1) ...
正在选中未选择的软件包 gawk。
(正在读取数据库 ... 系统当前共安装有 196876 个文件和目录。)
准备解压 .../gawk_1%3a5.0.1+dfsg-1_amd64.deb ...
正在解压 gawk (1:5.0.1+dfsg-1) ...
正在设置 gawk (1:5.0.1+dfsg-1) ...
正在处理用于 man-db (2.9.3-2) 的触发器 ...
正在处理用于 libc-bin (2.32-0ubuntu3) 的触发器 ...
再安装gcc,好像是成功了:
ubuntu@ubuntu:~/wimlib-1.13.4$ sudo apt install gcc
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会同时安装下列软件:
binutils binutils-common binutils-x86-64-linux-gnu gcc-10 libasan6
libatomic1 libbinutils libctf-nobfd0 libctf0 libgcc-10-dev libitm1 liblsan0
libquadmath0 libtsan0 libubsan1
建议安装:
binutils-doc gcc-multilib make autoconf automake libtool flex bison gcc-doc
gcc-10-multilib gcc-10-doc gcc-10-locales
下列【新】软件包将被安装:
binutils binutils-common binutils-x86-64-linux-gnu gcc gcc-10 libasan6
libatomic1 libbinutils libctf-nobfd0 libctf0 libgcc-10-dev libitm1 liblsan0
libquadmath0 libtsan0 libubsan1
升级了 0 个软件包,新安装了 16 个软件包,要卸载 0 个软件包,有 383 个软件包未被升级。
需要下载 0 B/22.2 MB 的归档。
解压缩后会消耗 91.6 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 binutils-common amd64 2.35.1-1ubuntu1 [212 kB]
获取:2 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libbinutils amd64 2.35.1-1ubuntu1 [481 kB]
获取:3 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libctf-nobfd0 amd64 2.35.1-1ubuntu1 [48.1 kB]
获取:4 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libctf0 amd64 2.35.1-1ubuntu1 [47.6 kB]
获取:5 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 binutils-x86-64-linux-gnu amd64 2.35.1-1ubuntu1 [1,645 kB]
获取:6 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 binutils amd64 2.35.1-1ubuntu1 [3,380 B]
获取:7 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libitm1 amd64 10.2.0-13ubuntu1 [26.3 kB]
获取:8 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libatomic1 amd64 10.2.0-13ubuntu1 [9,288 B]
获取:9 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libasan6 amd64 10.2.0-13ubuntu1 [344 kB]
获取:10 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 liblsan0 amd64 10.2.0-13ubuntu1 [144 kB]
获取:11 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libtsan0 amd64 10.2.0-13ubuntu1 [319 kB]
获取:12 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libubsan1 amd64 10.2.0-13ubuntu1 [136 kB]
获取:13 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libquadmath0 amd64 10.2.0-13ubuntu1 [146 kB]
获取:14 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libgcc-10-dev amd64 10.2.0-13ubuntu1 [2,341 kB]
获取:15 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 gcc-10 amd64 10.2.0-13ubuntu1 [16.3 MB]
获取:16 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 gcc amd64 4:10.2.0-1ubuntu1 [5,208 B]
正在选中未选择的软件包 binutils-common:amd64。
(正在读取数据库 ... 系统当前共安装有 197030 个文件和目录。)
准备解压 .../00-binutils-common_2.35.1-1ubuntu1_amd64.deb ...
正在解压 binutils-common:amd64 (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 libbinutils:amd64。
准备解压 .../01-libbinutils_2.35.1-1ubuntu1_amd64.deb ...
正在解压 libbinutils:amd64 (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 libctf-nobfd0:amd64。
准备解压 .../02-libctf-nobfd0_2.35.1-1ubuntu1_amd64.deb ...
正在解压 libctf-nobfd0:amd64 (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 libctf0:amd64。
准备解压 .../03-libctf0_2.35.1-1ubuntu1_amd64.deb ...
正在解压 libctf0:amd64 (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 binutils-x86-64-linux-gnu。
准备解压 .../04-binutils-x86-64-linux-gnu_2.35.1-1ubuntu1_amd64.deb ...
正在解压 binutils-x86-64-linux-gnu (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 binutils。
准备解压 .../05-binutils_2.35.1-1ubuntu1_amd64.deb ...
正在解压 binutils (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 libitm1:amd64。
准备解压 .../06-libitm1_10.2.0-13ubuntu1_amd64.deb ...
正在解压 libitm1:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libatomic1:amd64。
准备解压 .../07-libatomic1_10.2.0-13ubuntu1_amd64.deb ...
正在解压 libatomic1:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libasan6:amd64。
准备解压 .../08-libasan6_10.2.0-13ubuntu1_amd64.deb ...
正在解压 libasan6:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 liblsan0:amd64。
准备解压 .../09-liblsan0_10.2.0-13ubuntu1_amd64.deb ...
正在解压 liblsan0:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libtsan0:amd64。
准备解压 .../10-libtsan0_10.2.0-13ubuntu1_amd64.deb ...
正在解压 libtsan0:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libubsan1:amd64。
准备解压 .../11-libubsan1_10.2.0-13ubuntu1_amd64.deb ...
正在解压 libubsan1:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libquadmath0:amd64。
准备解压 .../12-libquadmath0_10.2.0-13ubuntu1_amd64.deb ...
正在解压 libquadmath0:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libgcc-10-dev:amd64。
准备解压 .../13-libgcc-10-dev_10.2.0-13ubuntu1_amd64.deb ...
正在解压 libgcc-10-dev:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 gcc-10。
准备解压 .../14-gcc-10_10.2.0-13ubuntu1_amd64.deb ...
正在解压 gcc-10 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 gcc。
准备解压 .../15-gcc_10.2.0-1ubuntu1_amd64.deb ...
正在解压 gcc (4:10.2.0-1ubuntu1) ...
正在设置 binutils-common:amd64 (2.35.1-1ubuntu1) ...
正在设置 libctf-nobfd0:amd64 (2.35.1-1ubuntu1) ...
正在设置 libasan6:amd64 (10.2.0-13ubuntu1) ...
正在设置 libquadmath0:amd64 (10.2.0-13ubuntu1) ...
正在设置 libatomic1:amd64 (10.2.0-13ubuntu1) ...
正在设置 libubsan1:amd64 (10.2.0-13ubuntu1) ...
正在设置 libbinutils:amd64 (2.35.1-1ubuntu1) ...
正在设置 liblsan0:amd64 (10.2.0-13ubuntu1) ...
正在设置 libitm1:amd64 (10.2.0-13ubuntu1) ...
正在设置 libtsan0:amd64 (10.2.0-13ubuntu1) ...
正在设置 libctf0:amd64 (2.35.1-1ubuntu1) ...
正在设置 libgcc-10-dev:amd64 (10.2.0-13ubuntu1) ...
正在设置 binutils-x86-64-linux-gnu (2.35.1-1ubuntu1) ...
正在设置 binutils (2.35.1-1ubuntu1) ...
正在设置 gcc-10 (10.2.0-13ubuntu1) ...
正在设置 gcc (4:10.2.0-1ubuntu1) ...
正在处理用于 man-db (2.9.3-2) 的触发器 ...
正在处理用于 libc-bin (2.32-0ubuntu3) 的触发器 ...
继续瞎折腾:要不要make?
ubuntu@ubuntu:~/wimlib-1.13.4$ sudo apt install make
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
建议安装:
make-doc
下列【新】软件包将被安装:
make
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 383 个软件包未被升级。
需要下载 0 B/167 kB 的归档。
解压缩后会消耗 414 kB 的额外空间。
获取:1 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 make amd64 4.3-4ubuntu1 [167 kB]
正在选中未选择的软件包 make。
(正在读取数据库 ... 系统当前共安装有 197569 个文件和目录。)
准备解压 .../make_4.3-4ubuntu1_amd64.deb ...
正在解压 make (4.3-4ubuntu1) ...
正在设置 make (4.3-4ubuntu1) ...
正在处理用于 man-db (2.9.3-2) 的触发器 ...
然后再次./configure
ubuntu@ubuntu:~/wimlib-1.13.4$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for futimens... yes
checking for utimensat... yes
checking for flock... yes
checking for mempcpy... yes
checking for openat... yes
checking for fstatat... yes
checking for readlinkat... yes
checking for fdopendir... yes
checking for posix_fallocate... yes
checking for llistxattr... yes
checking for lgetxattr... yes
checking for fsetxattr... yes
checking for lsetxattr... yes
checking for getopt_long_only... yes
checking for alloca.h... yes
checking for byteswap.h... yes
checking for endian.h... yes
checking for errno.h... yes
checking for glob.h... yes
checking for machine/endian.h... no
checking for stdarg.h... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for sys/byteorder.h... no
checking for sys/endian.h... no
checking for sys/file.h... yes
checking for sys/syscall.h... yes
checking for sys/sysctl.h... no
checking for sys/times.h... yes
checking for sys/xattr.h... yes
checking for time.h... yes
checking for utime.h... yes
checking for struct stat.st_mtim... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether __NR_getrandom is declared... yes
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBXML2... yes
checking whether to include support for ntfs-3g... yes
checking for LIBNTFS_3G... yes
checking whether to include support for mounting WIMs... yes
checking for LIBFUSE... yes
checking for mq_open in -lrt... yes
checking whether to use SSSE3-accelerated SHA-1... no
checking whether to use SHA-1 implementation from system libcrypto... auto
checking for LIBCRYPTO... no
configure: WARNING: Cannot find libcrypto: using stand-alone SHA-1 code instead
checking whether to include error messages... yes
checking whether to include assertions... yes
checking whether to include support for multi-threaded compression... yes
checking whether to enable supporting code for tests... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Doxyfile
config.status: creating wimlib.pc
config.status: creating programs/mkwinpeimg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make好像是成功了?
ubuntu@ubuntu:~/wimlib-1.13.4$ make
make all-am
make[1]: 进入目录“/home/ubuntu/wimlib-1.13.4”
CC programs/wimlib_imagex-imagex.o
CC src/libwim_la-add_image.lo
CC src/libwim_la-avl_tree.lo
CC src/libwim_la-blob_table.lo
CC src/libwim_la-compress.lo
CC src/libwim_la-compress_common.lo
CC src/libwim_la-compress_parallel.lo
CC src/libwim_la-compress_serial.lo
CC src/libwim_la-decompress.lo
CC src/libwim_la-decompress_common.lo
CC src/libwim_la-delete_image.lo
CC src/libwim_la-dentry.lo
CC src/libwim_la-divsufsort.lo
CC src/libwim_la-encoding.lo
CC src/libwim_la-error.lo
CC src/libwim_la-export_image.lo
CC src/libwim_la-extract.lo
CC src/libwim_la-file_io.lo
CC src/libwim_la-header.lo
CC src/libwim_la-inode.lo
CC src/libwim_la-inode_fixup.lo
CC src/libwim_la-inode_table.lo
CC src/libwim_la-integrity.lo
CC src/libwim_la-iterate_dir.lo
CC src/libwim_la-join.lo
CC src/libwim_la-lcpit_matchfinder.lo
CC src/libwim_la-lzms_common.lo
CC src/libwim_la-lzms_compress.lo
CC src/libwim_la-lzms_decompress.lo
CC src/libwim_la-lzx_common.lo
CC src/libwim_la-lzx_compress.lo
CC src/libwim_la-lzx_decompress.lo
CC src/libwim_la-metadata_resource.lo
CC src/libwim_la-mount_image.lo
CC src/libwim_la-pathlist.lo
CC src/libwim_la-paths.lo
CC src/libwim_la-pattern.lo
CC src/libwim_la-progress.lo
CC src/libwim_la-reference.lo
CC src/libwim_la-registry.lo
CC src/libwim_la-reparse.lo
CC src/libwim_la-resource.lo
CC src/libwim_la-scan.lo
CC src/libwim_la-security.lo
CC src/libwim_la-sha1.lo
CC src/libwim_la-solid.lo
CC src/libwim_la-split.lo
CC src/libwim_la-tagged_items.lo
CC src/libwim_la-template.lo
CC src/libwim_la-textfile.lo
CC src/libwim_la-timestamp.lo
CC src/libwim_la-update_image.lo
CC src/libwim_la-util.lo
CC src/libwim_la-verify.lo
CC src/libwim_la-wim.lo
CC src/libwim_la-write.lo
CC src/libwim_la-x86_cpu_features.lo
CC src/libwim_la-xml.lo
CC src/libwim_la-xml_windows.lo
CC src/libwim_la-xpress_compress.lo
CC src/libwim_la-xpress_decompress.lo
CC src/libwim_la-ntfs-3g_apply.lo
CC src/libwim_la-ntfs-3g_capture.lo
CC src/libwim_la-unix_apply.lo
CC src/libwim_la-unix_capture.lo
CCLD libwim.la
CCLD wimlib-imagex
make[1]: 离开目录“/home/ubuntu/wimlib-1.13.4”
尝试了下wimextract命令,好像没找到,可执行文件在那里?不在path里面?
ubuntu@ubuntu:~/wimlib-1.13.4$ wimextract
wimextract:未找到命令
|
|