使找不到curses.h [英] Make can't find curses.h

查看:48
本文介绍了使找不到curses.h的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个名为 samtools(1.3 版)的程序,用于处理您从 DNA 测序实验中获得的文件.

I have this program called samtools (version 1.3) that is used for manipulating the files that you get from DNA sequencing experiments.

下载的程序包含在一个文件夹中.为了设置程序,我在终端(在 ubuntu 计算机上)输入该文件夹.我输入突击队制造".

The downloaded program is contained in a folder. To set the program up I enter that folder in the terminal (on an ubuntu computer). I enter the commando "make".

它运行并打印它所做的事情,但以错误消息终止:

it runs an prints what it does but terminates with the error message:

bam_tview_curses.o bam_tview_curses.c
bam_tview_curses.c:41:20: fatal error: curses.h: No such file or directory
 #include <curses.h>
                    ^
compilation terminated.
make: *** [bam_tview_curses.o] Error 1

我最初的反应(在互联网上搜索后)是没有安装 curses,我尝试使用 sudo 解决这个问题(显然我的用户不在 sudoers 列表中.

My initial response (after searching the Internet) was that curses was not installed, and I tried to remedy that using sudo (apparently my user was not in the list of sudoers though.

所以我尝试看看curses是否已经安装,在查阅互联网后我尝试了

So I tried to see if curses was already installed, after consulting the Internet I tried

ldconfig -p | grep ncurses

给出了输出:

libncursesw.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/libncursesw.so.5
libncurses.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/libncurses.so.5

我认为这是因为安装了curses.但这让我不知所措.但这至少应该意味着存在诅咒,对吗?我对使用 ubuntu 或 C 程序的经验不是很丰富(很久以前我参加了一个较小的 C 课程,虽然我使用了相当多的 linux 计算机,但我主要使用终端进行导航)

I took this as curses was installed. But that leaves me at a loss what could have happened. But this should at least mean that curses are there right? I'm not very experianced using ubuntu or C programs (I took a smaller course in C long ago and whil I've used linux computers quite some I've mostly used the terminal for navigation)

乐于助人!

推荐答案

only

sudo apt-get install libncurses-dev

为我工作.

这篇关于使找不到curses.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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