[問題] 關於header file的位置
各位板友好
小弟是使用Ubuntu 10.04
目前因為要安裝某一個軟體
但必須要事前安裝 Motif library
sudo apt-get install libmotif-dev 安裝完之後
下./configure之後發現找不到Motif的header file
checking Xm/Xm.h usability... no
checking Xm/Xm.h presence... no
checking for Xm/Xm.h... no
configure: error: Failed to locate the Motif header files.
Use --without-x if you want to build the command-line version of Cluster 3.0.
Otherwise, use CPPFLAGS to add the Motif header directory to the path.
For example, if Xm.h is in /usr/X11R6/include/Xm, use
./configure CPPFLAGS=-I/usr/X11R6/include
到/usr/include/Xm 中有看到Xm.h
但是照著他的解法下了
./configure CPPFLAGS=-I/usr/include
仍然會找不到
請問這是出了什麼樣的問題嘛?
謝謝指教
--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★ (○ ?
╦╦└□ " ○□═ □ □>
║║√√ ╦══╦ ∥ |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.32.197.57
※ 編輯: Arim 來自: 114.32.197.57 (08/29 16:04)
→
08/29 16:12, , 1F
08/29 16:12, 1F
→
08/29 16:13, , 2F
08/29 16:13, 2F
→
08/29 16:13, , 3F
08/29 16:13, 3F
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
XMKMF Path to xmkmf, Makefile generator for X Window System
而我要安裝的軟體是
http://bonsai.hgc.jp/~mdehoon/software/cluster/software.htm#ctv
※ 編輯: Arim 來自: 114.32.197.57 (08/29 16:18)
→
08/29 16:26, , 4F
08/29 16:26, 4F
→
08/29 16:27, , 5F
08/29 16:27, 5F
→
08/29 16:27, , 6F
08/29 16:27, 6F
→
08/29 16:31, , 7F
08/29 16:31, 7F
剛剛google一下
發現有國外朋友也有這問題
指令:
aptitude install x11proto-print-dev
就解決了
※ 編輯: Arim 來自: 114.32.197.57 (08/29 17:06)