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
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[gzip](ubuntu)

Martin Hope
Rob
Asked: 2020-10-17 17:19:40 +0800 CST

如何安装 xfe-1.43.2.tar.gz?

  • 1

我正在运行 Ubuntu 18.04.5 LTS 我安装了 xfe 文件管理器:sudo apt install xfe version 1.42。我想将它升级到版本 1.43.2。我下载了 xfe-1.43.2.tar.gz 并解压。我为我尝试在下面运行的文件授予了执行权限。我不知道我必须做什么才能执行升级?我已经尝试过了:我将路径更改为将其提取到的目录并运行:

rob@rob-MS-7721:~/Ub18/File-Mangers/xfe/xfe-1.43.2$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
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 we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... no
checking whether NLS is requested... yes
./configure: line 6350: intltool-update: command not found
checking for intltool-update... no
checking for intltool-merge... no
checking for intltool-extract... no
configure: error: The intltool scripts were not found. Please install intltool.
rob@rob-MS-7721:~/Ub18/File-Mangers/xfe/xfe-1.43.2$ 

我注意到一些不,但认为它可能会安装?我猜想 intltool 代表我不需要的国际工具。

所以我跑了:安装并得到:

rob@rob-MS-7721:~/Ub18/File-Mangers/xfe/xfe-1.43.2$ ./INSTALL
./INSTALL: line 1: Installation: command not found
./INSTALL: line 2: ABOUT-NLS: command not found
./INSTALL: line 4: syntax error near unexpected token `C'
./INSTALL: line 4: `Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free'
rob@rob-MS-7721:~/Ub18/File-Mangers/xfe/xfe-1.43.2$ 

跑 /autogensh 并得到:

rob@rob-MS-7721:~$ /home/rob/Ub18/File-Mangers/xfe/xfe-1.43.2/autogen.sh
/home/rob/Ub18/File-Mangers/xfe/xfe-1.43.2/autogen.sh: 7: /home/rob/Ub18/File-Mangers/xfe/xfe-1.43.2/autogen.sh: aclocal: not found
/home/rob/Ub18/File-Mangers/xfe/xfe-1.43.2/autogen.sh: 8: /home/rob/Ub18/File-Mangers/xfe/xfe-1.43.2/autogen.sh: autoconf: not found
/home/rob/Ub18/File-Mangers/xfe/xfe-1.43.2/autogen.sh: 9: /home/rob/Ub18/File-Mangers/xfe/xfe-1.43.2/autogen.sh: automake: not found
rob@rob-MS-7721:~$

我对 ltmain.sh 文件做了同样的事情,得到:

rob@rob-MS-7721:~/Ub18/File-Mangers/xfe/xfe-1.43.2$ /home/rob/Ub18/File-Mangers/xfe/xfe-1.43.2/ltmain.sh
/bin/bash: warning: shell level (1000) too high, resetting to 1
It repeated the above several times and a whole bunch of other errors before I canceled it.
rob@rob-MS-7721:~/Ub18/File-Mangers/xfe/xfe-1.43.2$

没有其他 .sh 文件,我不知道要运行哪些其他可执行文件,或者如果我这样做了我需要给他们什么信息。我不知道从这里去哪里。如何安装下载的 xfe-1.43.2.tar.gz?谢谢,罗伯

upgrade bash gzip tar
  • 1 个回答
  • 123 Views
Martin Hope
kikibobo
Asked: 2020-07-17 00:16:44 +0800 CST

压缩某些文件名的字母数字大于其他文件

  • 3

我在 slurm 工作中压缩了文件。但是工作在完成之前被取消了。它需要很长时间(一个文件约 10 分钟,有 200 个文件)。如何仅压缩尚未压缩的剩余文件?

$ ls
 
SRR7121484_1.fastq
SRR7121484_1.fastq.gz
SRR7121484_2.fastq
SRR7121484_2.fastq.gz
SRR7121485_1.fastq
SRR7121485_2.fastq
SRR7121488_1.fastq
SRR7121488_2.fastq
....

如您所见,所有剩余文件都大于数字7121485。我试图提取这个值并使用条件,但是还没有成功。

提前致谢!

command-line bash gzip filename
  • 1 个回答
  • 167 Views
Martin Hope
Werner Raath
Asked: 2020-04-22 23:26:09 +0800 CST

压缩任何符号链接后的文件夹

  • 0

我将大量数据存储在一个平面结构中,并创建指向不同文件夹的符号链接,我的客户可以通过 OwnCloud 访问它们。

我需要压缩其中一个包含符号链接的文件夹并通过 ftp 将其发送给客户端,但我根本无法让我的压缩器跟随我的符号链接。

例如,data.tar从文件夹创建文件,符号链接/data在哪里,因此我需要是压缩成的文件/data/a.txt/home/data/a.txt/home/data/a.txtdata.tar

我怎样才能做到这一点?

ftp gzip compression tar symbolic-link
  • 2 个回答
  • 181 Views
Martin Hope
Juan
Asked: 2020-03-04 11:29:08 +0800 CST

如何控制gzip和sed进程

  • 0

我使用 Ubuntu Studio 19.10、Linux 5.3.0-40-lowlatency (x86_64)。

一段时间以来,我的一台 PC 正在与一些我从未编程过的进程(应用程序)一起工作:“GZIP”和“SED”(当 gzip 和 sed 工作时,还有其他应用程序占用 CPU 时间,也)。

这些“隐形”工作正在减慢 PC 中的某些内容,例如音频/视频播放或鼠标移动,因为它们会占用 25% 的 CPU 时间(我可以在任务管理器 GUI 中看到它)。

这些不受欢迎的工作可以运行 15 分钟或更长,一天两到三次!

我怎样才能控制和/或完全禁用所有那些不受欢迎的工作?

gzip sed task-management
  • 1 个回答
  • 55 Views
Martin Hope
Gerold Broser
Asked: 2019-12-12 05:05:12 +0800 CST

为什么从 Engrampa(*.tar.gz 内容)拖放到 Thunar 不起作用?

  • 1

拖动时有一个工具提示(请参见下面的屏幕截图),但在放下时它飞回 Engrampa 并且什么也没做:没有解压缩,没有解压缩,没有 mkdir(s),没有复制,没有 sudo 密码对话框,没有任何信息/错误消息.

XFCE 拖放

$ uname -v
#40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:25 UTC 2019

图纳尔 1.6.15

恩格拉帕 1.20.0

drag-and-drop gzip xfce xubuntu thunar
  • 2 个回答
  • 180 Views
Martin Hope
W.M.
Asked: 2019-10-27 09:38:31 +0800 CST

制作tar存档时如何按名称递归排除文件夹?

  • 7

我知道可以通过如下命令排除特定文件夹:

tar --exclude='/srv/www/project/node_modules' -zcvf /backup/project.tgz .

我的问题是如何排除node_modules整个/srv/www目录中任何位置命名的任何文件夹,以排除它并排除它下的所有文件夹?

backup gzip tar
  • 1 个回答
  • 6414 Views
Martin Hope
Jesus Ruiz Guirado
Asked: 2019-05-11 02:14:09 +0800 CST

压缩文件前端的问题

  • 1

我需要为压缩文件做一个前端,这个想法是如果你收到一个 gz 或 bz2 文件,用 gunzip 和 bunzip2 解压缩它。

如果您收到的是 tar.gz 或 tar.b2,您应该使用 tar xzf 或 xjf 解压并解压缩一次。我的代码如下

#!/bin/bash

if test $# -ne 1
then
    echo "Numero de parametros incorrecto"
    echo "Uso del programa: $0 archivo"
    exit 1;
fi

case "$1" in
    *.gz)
        echo "gzip"
        echo "Descomprimiendo"
        `gunzip $1`
    ;;
    *.bz2)
        echo "bzip2"
        echo "Descomprimiendo"
        `bunzip2 $1`
    ;;
    *.tar.gz)
        `tar xzvf $1`
    ;;
    *.bzip2.gz)
        `tar xjvf $1`
    ;;
esac

问题是,即使我传递了一个扩展名为 .tar.gz 的文件,我输入了案例的第一个条件,我试图添加美元以严格限制它以这样的方式结束,但它不起作用

bash gzip compression tar bzip2
  • 1 个回答
  • 53 Views
Martin Hope
Paul Benson
Asked: 2019-03-17 11:46:59 +0800 CST

存档文件夹 /usr/share/man

  • 3

我有 Ubuntu 18.04 LTS。似乎有数千个 gzip 存档文件,例如存储在/usr/share/man文件夹及其子文件夹下,我想摆脱它们,因为它们只会弄乱我的驱动器。/usr/share/doc除了这些示例之外,文件夹和子文件夹以及许多其他地方还列出了更多内容。

删除所有这些 gz 文件是否安全,或者系统是否需要它们?

gzip delete
  • 1 个回答
  • 1744 Views
Martin Hope
Mohammad Kholghi
Asked: 2018-12-19 22:48:11 +0800 CST

gzip 2 个文件为一个文件

  • 10

我想将两个或多个文件压缩到一个文件中,我检查了这个和这个,但两者都有类似的文件:n1.txt,,n2.txt......但我的文件名完全不同,比如:,,file.mp4我想将它们全部压缩并放置输出到一个文件中。这也没有帮助:bar.txtfoo.jpeg

gzip -c file.mp4 > test.gz
gzip -c bar.txt >> test.gz

我必须先将它们焦油吗?

还有一个问题:在 tar 文件中,我们可以在不解压的情况下观看内部文件:

tar -tvf filename.tar

无论如何用gzip或bzip2来做到这一点?

command-line gzip tar bzip2
  • 2 个回答
  • 15193 Views
Martin Hope
user423047
Asked: 2018-10-27 10:44:21 +0800 CST

在 Apache 中自动启用 Gzip 和缓存过期

  • 3

apache2.conf相反,我每次创建新的服务器环境时都必须复制粘贴以下代码以启用 Gzip 压缩和缓存过期,有没有办法通过一些 CLI 命令使它们从 Apache 本身出现?

## ENABLE GZIP
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
## ENABLE GZIP ##

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##

更新

没有其他方法可以在/etc/apache2/apache2.conf不粘贴或includes 的情况下自动添加这些内容吗?

drivers apache2 lamp gzip cache
  • 1 个回答
  • 220 Views

Sidebar

Stats

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

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve