简体   繁体   English

如何检查是否安装了ncurses?

[英]How can I check if ncurses is installed?

How can I check if ncurses is installed in a Red-Hat Linux OS? 如何检查Red Hat Linux操作系统中是否安装了ncurses? One solution is to use 一种解决方案是使用

dpkg -l '*ncurses*' | grep '^ii'

But I don't even have the dpkg package in my system, and since I don't have the administrative rights, I can't install it. 但是我的系统中甚至没有dpkg包,因为我没有管理权限,所以我无法安装它。

On RedHat based systems there is (mostly) no dpkg but you can use rpm -qa | grep ncurse 在基于RedHat的系统上(大多数)没有dpkg但你可以使用rpm -qa | grep ncurse rpm -qa | grep ncurse

on mac: 在mac上:

prompt> ls -la /usr/include/ncurses.h
lrwxr-xr-x  1 root  wheel  8 11 jul 14:24 /usr/include/ncurses.h -> curses.h

The second line being not empty, this means ncurses is installed. 第二行不为空,这意味着安装了ncurses。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM