Linux系统下源码安装错误-CentOS-7

Linux系统下源码安装错误-CentOS-7

错误一:

[root@study tengine-2.3.2]# ./configure --user=www --group=www --prefix=/usr/local/nginx
checking for OS
 + Linux 3.10.0-957.el7.x86_64 x86_64
checking for C compiler ... found
 + using GNU C compiler
 ………………省略部分输出信息………………
 ./configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl=<path> option.

解决方案:
yum -y install openssl-devel

[root@study tengine-2.3.2]# yum -y install openssl-devel
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.ustc.edu.cn
 * epel: ftp.iij.ad.jp
 * extras: mirrors.ustc.edu.cn
 * updates: mirrors.ustc.edu.cn
正在解决依赖关系
………………省略部分输出信息………………

错误二:

[root@study tengine-2.3.2]# ./configure --user=www --group=www --prefix=/usr/local/nginx
checking for OS
 + Linux 3.10.0-957.el7.x86_64 x86_64
checking for C compiler ... not found

./configure: error: C compiler cc is not found

解决方案:
yum -y install gcc gcc-c++ make

错误三:

[root@study tengine-2.3.2]# ./configure --user=www --group=www --prefix=/usr/local/nginx
checking for OS
 + Linux 3.10.0-957.el7.x86_64 x86_64
checking for C compiler ... found
 + using GNU C compiler
 + gcc version: 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) 
checking for gcc -pipe switch ... found
………………省略部分输出信息………………
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.

解决方案:
yum -y install pcre-devel

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在CentOS 7上安装wireless-tools,您可以按照以下步骤进行操作: 1. 首先,确保您的系统已连接到互联网,并且具有管理员权限。 2. 打开终端,并使用以下命令执行更新操作,以确保您的系统是最新的: ``` sudo yum update ``` 3. 接下来,使用以下命令安装wireless-tools: ``` sudo yum install wireless-tools ``` 4. 安装过程将自动下载并安装所需的软件包。完成后,您就可以使用wireless-tools了。 请注意,如果通过yum安装时遇到问题,您可以尝试手动安装wireless-tools。根据您提供的引用,似乎在某些情况下无法通过yum安装。以下是手动安装的步骤: 1. 下载wireless-tools的源码包。您可以通过访问以下链接下载: [http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz](http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz) 2. 打开终端,导航到下载目录,并执行以下命令解压源码包: ``` tar -zxvf wireless_tools.29.tar.gz ``` 3. 导航到解压后的目录: ``` cd wireless_tools.29 ``` 4. 运行以下命令进行编译和安装: ``` make && make install ``` 完成后,wireless-tools将安装到您的系统上。您可以使用iwconfig等命令来配置和管理无线网络。 请注意,如果在执行iwconfig命令时出现`libiw.so.29: cannot open shared object file: No such file or directory`错误,可能是由于缺少libiw.so.29库文件导致的。您可以尝试使用以下命令解决该问题: ``` sudo ldconfig ``` 这将更新共享库缓存并解决缺少库文件的问题。 希望这可以帮助您成功安装wireless-tools。如果您还有其他问题,请随时提问。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [centos7 安装无线工具包wireless-tools(包括iwlist,iwconfig等命令)](https://blog.csdn.net/a9073b/article/details/102596622)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [centos7安装wireless-tools](https://blog.csdn.net/ppwwp/article/details/102789881)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值