我如何让 UUENCODE 工作?

use*_*866 7 rpm rhel email utilities

我有一个我继承的服务器,由于软件要求安装了旧版本的 Redhat,现在需要使用 UUENCODE 来允许电子邮件附件。在uuencodeuudecode文件中都没有/usr/bin。我尝试从另一台服务器复制它们,但收到错误消息:

/lib64/tls/libc.so.6:当我们尝试运行它时未找到版本“GLIBC_2.4”。

看来我可能需要安装 sharutils.rpm 但我不确定要下载哪个?任何人都可以指出我要下载的正确 rpm 或处理 uuencode 的替代方法吗?

服务器详情:

$ cat /proc/version
Linux version 2.6.9-42.ELsmp (bhcompile@ls20-bc1-13.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-2)) #1 SMP Wed Jul 12 23:32:02 EDT 2006

$ cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 4)

$ uname -a
Linux <servername> 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

Cal*_*leb 9

您是否尝试使用yum访问 RHEL 存储库并安装与您的发行版匹配的 sharutils 版本?

$ yum update
$ yum install sharutils
Run Code Online (Sandbox Code Playgroud)

CentOS 软件包通常与 RHEL 软件包一一对应,但移除了品牌标识。您可以尝试从他们那里手动下载软件包。看起来你可以在这里得到那个包:

$ wget http://mirror.rackspace.com/CentOS/4/apt/i386/RPMS.os/sharutils-4.2.1-22.2.i386.rpm
Run Code Online (Sandbox Code Playgroud)


Eri*_*ski 6

如何在 Fedora 17 Linux 上获取 uuencode

使用 yum 找出为 uuencode 提供的内容:

yum provides uuencode
Run Code Online (Sandbox Code Playgroud)

阅读 yum 告诉您的内容:

sharutils-4.11.1-3.fc17.x86_64 : The GNU shar utilities for packaging 
                                 and unpackaging shell archives
Repo        : @updates
Matched from:
Filename    : /usr/bin/uuencode
Run Code Online (Sandbox Code Playgroud)

哦,看!'sharutils' 提供 uuencode

安装:

yum install sharutils
Run Code Online (Sandbox Code Playgroud)

你得到这个输出:

[root@defiant el]# yum install sharutils 
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora: ftp.usf.edu
 * rpmfusion-free: mirror.hiwaay.net
 * rpmfusion-free-updates: mirror.hiwaay.net
 * rpmfusion-nonfree: mirror.hiwaay.net
 * rpmfusion-nonfree-updates: mirror.hiwaay.net
 * updates: mirror.hiwaay.net
Resolving Dependencies
--> Running transaction check
---> Package sharutils.x86_64 0:4.11.1-3.fc17 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================================================================================
 Package                                                Arch                                                Version                                                      Repository                                            Size
====================================================================================================================================================================================================================================
Installing:
 sharutils                                              x86_64                                              4.11.1-3.fc17                                                updates                                              176 k

Transaction Summary
====================================================================================================================================================================================================================================
Install  1 Package

Total download size: 176 k
Installed size: 612 k
Is this ok [y/N]: y
Downloading Packages:
sharutils-4.11.1-3.fc17.x86_64.rpm                                                                                                                                                                           | 176 kB     00:00     
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : sharutils-4.11.1-3.fc17.x86_64                                                                                                                                                                                   1/1 
  Verifying  : sharutils-4.11.1-3.fc17.x86_64                                                                                                                                                                                   1/1 

Installed:
  sharutils.x86_64 0:4.11.1-3.fc17                                                                                                                                                                                                  

Complete!
Run Code Online (Sandbox Code Playgroud)

然后测试看看是否有效

[root@defiant el]# which uuencode
/usr/bin/uuencode
[root@defiant el]# uuencode --version
uuencode (GNU sharutils) 4.11.1
Run Code Online (Sandbox Code Playgroud)