在 Linux 服务器上安装 ZLIB [英] Installing ZLIB in Linux Server

查看:42
本文介绍了在 Linux 服务器上安装 ZLIB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Linux 服务器中安装 ZLIB.我的服务器帐户是:/home/myname .我在我的帐户中正确下载并提取了 ZLIB.然后,我进入 ZLIB1.2.6 文件夹并运行命令:

I want to install ZLIB in the Linux server. My server account is: /home/myname . I download and extract ZLIB on my account properly. Then, I enter to ZLIB1.2.6 folder and run the command:

./configure --prefix=/home/myname/zlib

./configure --prefix=/home/myname/zlib

但是,它给出了错误:

-bash: ./configure: 权限被拒绝

-bash: ./configure: Permission denied

谁能帮助我为什么会这样?

Can anybody help me why is this happening ?

推荐答案

好的,如果你使用的是 Debian,你应该这样做:

Ok, if you are using Debian, you should do:

su

成为root

apt-get update

刷新包列表,然后

apt-cache search zlib

检查你刚刚更新的列表中的相关包,然后

to check the relevant packages in the lists you have just updated, then

apt-get install <whatever_package_you_found_earlier>

<小时>

我建议使用正则表达式作为 apt-cache 的搜索字符串,因为它们更准确,如


I suggest using regular expression as search strings for apt-cache, since they are more accurate, as in

apt-cache search ^zlib

只返回包名以zlib开头

这篇关于在 Linux 服务器上安装 ZLIB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆