ncview 软件包需要 X 开发头文件和标头。
在 Ubuntu 12.04 上我尝试了以下命令sudo apt-get install xorg-dev
并收到以下错误消息。
这看起来是一个很长的软件包列表。我是否遗漏了什么?
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
xorg-dev : Depends: libdmx-dev but it is not going to be installed
Depends: libfs-dev but it is not going to be installed
Depends: libx11-dev but it is not going to be installed
Depends: libxaw7-dev but it is not going to be installed
Depends: libxcomposite-dev but it is not going to be installed
Depends: libxcursor-dev but it is not going to be installed
Depends: libxdamage-dev but it is not going to be installed
Depends: libxext-dev but it is not going to be installed
Depends: libxfixes-dev but it is not going to be installed
Depends: libxfont-dev but it is not going to be installed
Depends: libxft-dev but it is not going to be installed
Depends: libxi-dev but it is not going to be installed
Depends: libxinerama-dev but it is not going to be installed
Depends: libxkbfile-dev but it is not going to be installed
Depends: libxmu-dev but it is not going to be installed
Depends: libxmuu-dev but it is not going to be installed
Depends: libxpm-dev but it is not going to be installed
Depends: libxrandr-dev but it is not going to be installed
Depends: libxrender-dev but it is not going to be installed
Depends: libxres-dev but it is not going to be installed
Depends: libxss-dev but it is not going to be installed
Depends: libxt-dev but it is not going to be installed
Depends: libxtst-dev but it is not going to be installed
Depends: libxv-dev but it is not going to be installed
Depends: libxvmc-dev but it is not going to be installed
Depends: libxxf86dga-dev but it is not going to be installed
Depends: libxxf86vm-dev but it is not going to be installed
Depends: xserver-xorg-dev but it is not going to be installed
答案1
引自Ubuntu 上的 Ncview(格式和大小写有几处变化):
你的提示很好,但是你仍然需要先安装一些软件包:
sudo apt-get install libxt-dev xaw3dg-dev sudo apt-get install libnetpbm10-dev # ppm support
除此之外,还需要两个链接:
cd /usr/include/X11 ; ln -s Xaw3d Xaw cd /usr/lib/ ; ln -s libXaw.so.7 libXaw.so
您还应该安装xorg-dev
:
sudo apt-get install xorg-dev
继续那些指令:
(这看起来不一致,因为我们将 Xaw3d 标头与 Xaw 库混合在一起,但无论如何)之后
./configure --x-libraries=/usr/X11R6/lib make make install
完成工作!